Simple Date structure. Contains methods to read/write date data stored in JAUS messages.
More...
#include <date.h>
List of all members.
Detailed Description
Simple Date structure. Contains methods to read/write date data stored in JAUS messages.
Definition at line 55 of file date.h.
Constructor & Destructor Documentation
JAUS::Date::Date |
( |
) |
[inline] |
JAUS::Date::Date |
( |
const Date & |
d ) |
[inline] |
JAUS::Date::~Date |
( |
) |
[inline] |
Member Function Documentation
Date& JAUS::Date::FromUShort |
( |
const UShort |
dstamp ) |
[inline] |
Sets the date using a UShort in JAUS Date format.
- Parameters:
-
dstamp | Bits 0-4: Day, range 1, 31 Bits 5-8: Month, range 1, 12 Bits 9-15: Year, range 2000, 2127 where 0 is 2000, 1 is 2001 etc. |
- Returns:
- Current instance of the Date data.
Definition at line 95 of file date.h.
Date& JAUS::Date::operator= |
( |
const Date & |
date ) |
[inline] |
Sets equal to.
Definition at line 107 of file date.h.
UShort JAUS::Date::ToUShort |
( |
) |
const [inline] |
Creates a UShort of the date information in the format defined by the JAUS Spec.
Bits 0-4: Day, range 1, 31
Bits 5-8: Month, range 1, 12
Bits 9-15: Year, range 2000, 2127 where 0 is 2000, 1 is 2001...
- Returns:
- The Date data in JAUS format.
Definition at line 73 of file date.h.
Member Data Documentation
Day (UTC) [1,31].
Definition at line 116 of file date.h.
Month data (UTC) [1,12].
Definition at line 115 of file date.h.
Year (UTC) [2000, 2127].
Definition at line 114 of file date.h.
The documentation for this class was generated from the following file:
- jaus++/2.0/include/jaus/core/date.h