List of all members | Public Types | Public Member Functions | Public Attributes
Parser Class Reference

Public Types

enum  Format {
  eNone, eGPS, eUTC, eMoon,
  eUnix, eMJD
}
 

Public Member Functions

const utl::UTCDateTime epoch (2000, 1, 6, 14, 20, 30)
 
 if (!what.empty())
 
const utl::TimeInterval interval (altLunation *kMeanSynodicMonth *utl::day)
 
const double kMeanSynodicMonth (29.530589)
 
 Parser ()
 
bool ReadStrToTime (std::string &str)
 
utl::TimeStamp result (epoch.GetTimeStamp()+interval)
 
stream seekg (0)
 
result SetGPSTime (result.GetGPSSecond()+(result.GetGPSNanoSecond() > 500e6?1:0), 0)
 
void SetInputFormat (Format expected)
 
void SetOutputFormat (Format expected)
 

Public Attributes

void const
 
bool const
 
utl::TimeStamp const
 
utl::LeapSecondsfLeapSeconds
 
Format fOutputFormat
 
utl::TimeStamp fTime
 
return result
 
return true
 
stream what
 

Detailed Description

Definition at line 29 of file auger-convert-time.cc.

Member Enumeration Documentation

Enumerator
eNone 
eGPS 
eUTC 
eMoon 
eUnix 
eMJD 

Definition at line 32 of file auger-convert-time.cc.

Constructor & Destructor Documentation

Parser::Parser ( )
inline

Definition at line 41 of file auger-convert-time.cc.

Member Function Documentation

const utl::UTCDateTime Parser::epoch ( 2000  ,
,
,
14  ,
20  ,
30   
)
Parser::if ( !what.  empty())
inline

Definition at line 80 of file auger-convert-time.cc.

References ERROR.

const utl::TimeInterval Parser::interval ( altLunation *kMeanSynodicMonth *utl::day  )
const double Parser::kMeanSynodicMonth ( 29.  530589)
bool Parser::ReadStrToTime ( std::string &  str)
inline
utl::TimeStamp Parser::result ( epoch.GetTimeStamp()+  interval)
stream Parser::seekg ( )
result Parser::SetGPSTime ( result.  GetGPSSecond)+(result.GetGPSNanoSecond() > 500e6?1:0,
 
)
void Parser::SetInputFormat ( Format  expected)
inline

Definition at line 117 of file auger-convert-time.cc.

Referenced by main().

void Parser::SetOutputFormat ( Format  expected)
inline

Definition at line 123 of file auger-convert-time.cc.

References fOutputFormat.

Referenced by main().

Member Data Documentation

void Parser::const
Initial value:

Definition at line 50 of file auger-convert-time.cc.

bool Parser::const
Initial value:
{
if ( stream.fail() ) {
ResetStream(stream);
std::string what;
stream >> what;
ERROR("Could not parse " + description + " \"" + what + "\"");
return false;
}
std::string what

Definition at line 67 of file auger-convert-time.cc.

utl::TimeStamp Parser::const
Initial value:
{
const double altLunation(lunation + 0.5 + 49.0)

Definition at line 96 of file auger-convert-time.cc.

utl::LeapSeconds& Parser::fLeapSeconds

Definition at line 303 of file auger-convert-time.cc.

Referenced by ReadStrToTime().

Format Parser::fOutputFormat

Definition at line 301 of file auger-convert-time.cc.

Referenced by ReadStrToTime(), and SetOutputFormat().

utl::TimeStamp Parser::fTime

Definition at line 302 of file auger-convert-time.cc.

Referenced by ReadStrToTime().

return Parser::result

Definition at line 113 of file auger-convert-time.cc.

return Parser::true

Definition at line 85 of file auger-convert-time.cc.

stream Parser::what

Definition at line 79 of file auger-convert-time.cc.

Referenced by ReadStrToTime().


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

, generated on Tue Sep 26 2023.