List of all members
gnsstk::SystemTime Class Reference

Detailed Description

This class reads the current system time and stores it in a UnixTime.

Definition at line 54 of file SystemTime.hpp.

#include <SystemTime.hpp>

Inheritance diagram for gnsstk::SystemTime:
Inheritance graph
[legend]

Public Member Functions

SystemTime Basic Operations
 SystemTime ()
 
virtual ~SystemTime ()
 Virtual Destructor. More...
 
 SystemTime (const SystemTime &right)
 
SystemTimeupdate ()
 
- Public Member Functions inherited from gnsstk::UnixTime
 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)
 
UnixTimeoperator= (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
 
- Public Member Functions inherited from gnsstk::TimeTag
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

- Public Types inherited from gnsstk::TimeTag
typedef std::map< char, std::string > IdToValue
 
- Static Public Member Functions inherited from gnsstk::TimeTag
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)
 
- Public Attributes inherited from gnsstk::UnixTime
struct timeval tv
 
- Protected Attributes inherited from gnsstk::TimeTag
TimeSystem timeSystem
 time system (representation) of the data More...
 

Constructor & Destructor Documentation

◆ SystemTime() [1/2]

gnsstk::SystemTime::SystemTime ( )
inline

Default Constructor. Reads the system clock for the current system time.

Definition at line 67 of file SystemTime.hpp.

◆ ~SystemTime()

virtual gnsstk::SystemTime::~SystemTime ( )
inlinevirtual

Virtual Destructor.

Definition at line 74 of file SystemTime.hpp.

◆ SystemTime() [2/2]

gnsstk::SystemTime::SystemTime ( const SystemTime right)
inline

Copy Constructor.

Parameters
righta reference to the SystemTime object to copy.

Definition at line 81 of file SystemTime.hpp.

Member Function Documentation

◆ update()

SystemTime & gnsstk::SystemTime::update ( )

Update this object to the current system time.

Returns
a reference to this SystemTime

Definition at line 46 of file SystemTime.cpp.


The documentation for this class was generated from the following files:


gnsstk
Author(s):
autogenerated on Wed Oct 25 2023 02:40:46