blob: c9751623aab6f4c95c613e1bf5d29ccb410fd418 [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
7#include <map>
8#include <string>
9
10namespace shill {
11
12using std::string;
13
14GeolocationInfo::GeolocationInfo() {
15}
16
17GeolocationInfo::~GeolocationInfo() {
18}
19
20void GeolocationInfo::AddField(const std::string &key,
21 const std::string &value) {
22 properties_[key] = value;
23}
24
25const std::string &GeolocationInfo::GetFieldValue(
26 const std::string &key) const {
27 return properties_.find(key)->second;
28}
29
30bool GeolocationInfo::Equals(const GeolocationInfo &info) const{
31 return properties_ == info.properties_;
32}
33
34} // namespace shill