Public Types | Public Member Functions

JAUS::Time Class Reference

Simple Time structure. Contains methods to read/write time data stored in JAUS messages. More...

#include <time.h>

List of all members.

Public Types

typedef CxUtils::Time::Stamp Stamp

Public Member Functions

 Time (const bool setCurrentTime=false)
 Time (const JAUS::Time &t)
 Time (const CxUtils::Time &t)
 ~Time ()
UInt ToUInt () const
 Creates a UInt of the time information in the format defined by the JAUS RA.
TimeSetTime (const UInt tstamp)
 Sets the time using a UInt in JAUS Standard Time format.
Timeoperator= (const Time &time)
Timeoperator= (const CxUtils::Time &time)
bool operator== (const Time &time) const
bool operator!= (const Time &time) const
bool operator< (const Time &time) const
bool operator<= (const Time &time) const
bool operator> (const Time &time) const
bool operator>= (const Time &time) const

Detailed Description

Simple Time structure. Contains methods to read/write time data stored in JAUS messages.

Definition at line 55 of file time.h.


Member Typedef Documentation

typedef CxUtils::Time::Stamp JAUS::Time::Stamp

Definition at line 58 of file time.h.


Constructor & Destructor Documentation

JAUS::Time::Time ( const bool  setCurrentTime = false ) [inline]

Definition at line 59 of file time.h.

JAUS::Time::Time ( const JAUS::Time t ) [inline]

Definition at line 60 of file time.h.

JAUS::Time::Time ( const CxUtils::Time &  t ) [inline]

Definition at line 61 of file time.h.

JAUS::Time::~Time (  ) [inline]

Definition at line 62 of file time.h.


Member Function Documentation

bool JAUS::Time::operator!= ( const Time time ) const [inline]

Definition at line 139 of file time.h.

bool JAUS::Time::operator< ( const Time time ) const [inline]

Definition at line 151 of file time.h.

bool JAUS::Time::operator<= ( const Time time ) const [inline]

Definition at line 152 of file time.h.

Time& JAUS::Time::operator= ( const CxUtils::Time &  time ) [inline]

Definition at line 118 of file time.h.

Time& JAUS::Time::operator= ( const Time time ) [inline]

Definition at line 109 of file time.h.

bool JAUS::Time::operator== ( const Time time ) const [inline]

Definition at line 127 of file time.h.

bool JAUS::Time::operator> ( const Time time ) const [inline]

Definition at line 153 of file time.h.

bool JAUS::Time::operator>= ( const Time time ) const [inline]

Definition at line 154 of file time.h.

Time& JAUS::Time::SetTime ( const UInt  tstamp ) [inline]

Sets the time using a UInt in JAUS Standard Time format.

Parameters:
tstampBits 0-9: milliseconds, range 0, 9999 Bits 10-15: Seconds, range 0, 59 Bits 16-21: Minutes, range 0, 59 Bits 22-26: Hour (24 hour clock), range 0, 23 Bits 27-31: Day, range 1, 31
Returns:
Current instance of the Time data.

Definition at line 100 of file time.h.

UInt JAUS::Time::ToUInt (  ) const [inline]

Creates a UInt of the time information in the format defined by the JAUS RA.

Bits 0-9: milliseconds, range 0, 999
Bits 10-15: Seconds, range 0, 59
Bits 16-21: Minutes, range 0, 59
Bits 22-26: Hour (24 hour clock), range 0, 23
Bits 27-31: Day, range 1, 31

Returns:
The timestamp data in JAUS RA format.

Definition at line 77 of file time.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines