nidas  v1.2-1520
Public Member Functions | Static Public Member Functions | Private Attributes | Static Private Attributes | List of all members
GPS_SetClock Class Reference

Public Member Functions

 GPS_SetClock ()
 
int parseRunstring (int argc, char **argv)
 
int run ()
 

Static Public Member Functions

static int usage (const char *argv0)
 
static const char * skipcommas (const char *cp, int ncomma)
 
static void setSysTime (const n_u::UTime &tgps) throw (n_u::IOException)
 

Private Attributes

string device
 
int dataTimeout
 
int lockTimeout
 
int baudRate
 
int gpsOffsetUsecs
 

Static Private Attributes

static int dataTimeoutDefault = 30
 
static int lockTimeoutDefault = 600
 
static int clockDiffMaxSeconds = CLOCK_DIFF_MAX_DEFAULT
 If the difference between the GPS and system clock is more than this, set the system clock from the GPS. More...
 

Constructor & Destructor Documentation

GPS_SetClock::GPS_SetClock ( )

Member Function Documentation

int GPS_SetClock::parseRunstring ( int  argc,
char **  argv 
)
int GPS_SetClock::run ( )
void GPS_SetClock::setSysTime ( const n_u::UTime tgps)
throw (n_u::IOException
)
static
const char * GPS_SetClock::skipcommas ( const char *  cp,
int  ncomma 
)
static

Referenced by run().

int GPS_SetClock::usage ( const char *  argv0)
static

Member Data Documentation

int GPS_SetClock::baudRate
private

Referenced by parseRunstring(), and run().

int GPS_SetClock::clockDiffMaxSeconds = CLOCK_DIFF_MAX_DEFAULT
staticprivate

If the difference between the GPS and system clock is more than this, set the system clock from the GPS.

Referenced by parseRunstring(), and run().

int GPS_SetClock::dataTimeout
private

Referenced by parseRunstring(), and run().

int GPS_SetClock::dataTimeoutDefault = 30
staticprivate

Referenced by usage().

string GPS_SetClock::device
private

Referenced by parseRunstring(), and run().

int GPS_SetClock::gpsOffsetUsecs
private

Referenced by parseRunstring(), and run().

int GPS_SetClock::lockTimeout
private

Referenced by parseRunstring(), and run().

int GPS_SetClock::lockTimeoutDefault = 600
staticprivate

Referenced by usage().


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