1
#ifndef LOCATION_SERVICE_COM_UBUNTU_LOCATION_UPDATE_H_
2
#define LOCATION_SERVICE_COM_UBUNTU_LOCATION_UPDATE_H_
4
#include "com/ubuntu/location/clock.h"
17
bool operator==(const Update<T>& rhs) const
19
return value == rhs.value && when == rhs.when;
22
bool operator!=(const Update<T>& rhs) const
24
return !(value == rhs.value && when == rhs.when);
28
Clock::Timestamp when;
32
inline std::ostream& operator<<(std::ostream& out, const Update<T>& update)
34
out << "Update(" << update.value << ", " << update.when.time_since_epoch().count() << ")";
42
#endif // LOCATION_SERVICE_COM_UBUNTU_LOCATION_UPDATE_H_