blob: c9751623aab6f4c95c613e1bf5d29ccb410fd418 [file] [log] [blame]
// Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "shill/geolocation_info.h"
#include <map>
#include <string>
namespace shill {
using std::string;
GeolocationInfo::GeolocationInfo() {
}
GeolocationInfo::~GeolocationInfo() {
}
void GeolocationInfo::AddField(const std::string &key,
const std::string &value) {
properties_[key] = value;
}
const std::string &GeolocationInfo::GetFieldValue(
const std::string &key) const {
return properties_.find(key)->second;
}
bool GeolocationInfo::Equals(const GeolocationInfo &info) const{
return properties_ == info.properties_;
}
} // namespace shill