1 #ifndef _utl_LeapSeconds_h_
2 #define _utl_LeapSeconds_h_
7 #include <utl/Singleton.h>
31 typedef std::map<unsigned long, std::pair<int, int> >
GPSToUnixMap;
42 bool ConvertGPSToUnix(
const unsigned long gpsSecond, time_t& unixSecond)
const;
44 void ConvertUnixToGPS(
const time_t unixSecond,
unsigned long& gpsSecond)
const;
GPSToUnixMap fGPSToUnixLeaps
UnixToGPSMap::const_iterator UnixToGPSIterator
std::map< std::time_t, long > UnixToGPSMap
bool ConvertGPSToUnix(const unsigned long gpsSecond, time_t &unixSecond) const
returns true if the GPS second is an UTC leap second
UnixToGPSMap fUnixToGPSLeaps
GPSToUnixMap::const_iterator GPSToUnixIterator
std::time_t fGPSEpochInUnixSeconds
void ConvertUnixToGPS(const time_t unixSecond, unsigned long &gpsSecond) const
Curiously Recurring Template Pattern (CRTP) for Meyers singleton.
std::map< unsigned long, std::pair< int, int > > GPSToUnixMap