This class reads the current system time and stores it in a UnixTime.
Definition at line 54 of file SystemTime.hpp.
#include <SystemTime.hpp>
Public Member Functions | |
SystemTime Basic Operations | |
SystemTime () | |
virtual | ~SystemTime () |
Virtual Destructor. More... | |
SystemTime (const SystemTime &right) | |
SystemTime & | update () |
![]() | |
UnixTime (int sec=0, int usec=0, TimeSystem ts=TimeSystem::Unknown) | |
UnixTime (struct timeval t, TimeSystem ts=TimeSystem::Unknown) | |
UnixTime (const UnixTime &right) | |
UnixTime (const TimeTag &right) | |
UnixTime (const CommonTime &right) | |
UnixTime & | operator= (const UnixTime &right) |
virtual | ~UnixTime () |
Virtual Destructor. More... | |
virtual CommonTime | convertToCommonTime () const |
virtual void | convertFromCommonTime (const CommonTime &ct) |
virtual std::string | printf (const std::string &fmt) const |
virtual std::string | printError (const std::string &fmt) const |
virtual bool | setFromInfo (const IdToValue &info) |
virtual std::string | getPrintChars () const |
virtual std::string | getDefaultFormat () const |
Return a string containing the default format to use in printing. More... | |
virtual bool | isValid () const |
Returns true if this object's members are valid, false otherwise. More... | |
virtual void | reset () |
Reset this object to the default state. More... | |
virtual bool | operator== (const UnixTime &right) const |
virtual bool | operator!= (const UnixTime &right) const |
virtual bool | operator< (const UnixTime &right) const |
virtual bool | operator> (const UnixTime &right) const |
virtual bool | operator<= (const UnixTime &right) const |
virtual bool | operator>= (const UnixTime &right) const |
![]() | |
virtual std::string | asString () const |
bool | changeTimeSystem (TimeSystem timeSys) |
bool | changeTimeSystem (TimeSystem timeSys, TimeSystemConverter *conv) |
TimeSystem | getTimeSystem () const |
Obtain time system info (enum). More... | |
virtual | operator CommonTime () const |
virtual void | scanf (const std::string &str, const std::string &fmt) |
void | setTimeSystem (const TimeSystem &timeSys) |
Set method for internal variable timeSystem (enum). More... | |
TimeTag () | |
Default constructor. More... | |
TimeTag (const TimeSystem &ts) | |
Constructor. More... | |
virtual | ~TimeTag () |
Virtual Destructor. More... | |
Additional Inherited Members | |
![]() | |
typedef std::map< char, std::string > | IdToValue |
![]() | |
static void | checkTimeSystem (TimeSystem ts1, TimeSystem ts2) |
static std::string | getError () |
This returns the default error string for the TimeTag classes. More... | |
static std::string | getFormatPrefixFloat () |
static std::string | getFormatPrefixInt () |
static void | getInfo (const std::string &str, const std::string &fmt, IdToValue &info) |
![]() | |
struct timeval | tv |
![]() | |
TimeSystem | timeSystem |
time system (representation) of the data More... | |
|
inline |
Default Constructor. Reads the system clock for the current system time.
Definition at line 67 of file SystemTime.hpp.
|
inlinevirtual |
Virtual Destructor.
Definition at line 74 of file SystemTime.hpp.
|
inline |
Copy Constructor.
right | a reference to the SystemTime object to copy. |
Definition at line 81 of file SystemTime.hpp.
SystemTime & gnsstk::SystemTime::update | ( | ) |
Update this object to the current system time.
Definition at line 46 of file SystemTime.cpp.