#include #include #include namespace sdet { /** T2 uptime reader. Singleton class. This class is the one that implements the reading of T2Life files. The T2LifeFileManager calls this to do the actual reading. \author Lukas Nellen \author Javier Gonzalez \version $Id$ */ class T2Life { public: const std::vector& GetValidStations(const unsigned int theGPSSecond); /// Get singleton static T2Life& GetT2Life(); private: T2Life(); ~T2Life(); void SetFile(unsigned int theGPSSecond); static T2Life* gfT2Life; unsigned int fCurrentStart; unsigned int fCurrentStop; unsigned int fCurrentFileStart; unsigned int fCurrentFileEnd; std::ifstream* fFile; std::vector fValidStations; std::map > fFiles; }; const std::vector& GetStationsStatusFromT2Files(unsigned int theGPSSecond); }