blob: 85bafdc9e8f95281f9f772f1f175abebefd1ffbf [file] [log] [blame]
Gaurav Shah6d2c72d2012-10-16 16:30:44 -07001// Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "shill/geolocation_info.h"
6
Gaurav Shah6d2c72d2012-10-16 16:30:44 -07007#include <string>
8
9namespace shill {
10
11using std::string;
12
13GeolocationInfo::GeolocationInfo() {
14}
15
16GeolocationInfo::~GeolocationInfo() {
17}
18
Gaurav Shahb790aa22012-10-23 12:51:12 -070019void GeolocationInfo::AddField(const string &key,
20 const string &value) {
Gaurav Shah6d2c72d2012-10-16 16:30:44 -070021 properties_[key] = value;
22}
23
Gaurav Shahb790aa22012-10-23 12:51:12 -070024const string &GeolocationInfo::GetFieldValue(
25 const string &key) const {
Gaurav Shah6d2c72d2012-10-16 16:30:44 -070026 return properties_.find(key)->second;
27}
28
29bool GeolocationInfo::Equals(const GeolocationInfo &info) const{
30 return properties_ == info.properties_;
31}
32
33} // namespace shill