Public Member Functions | Public Attributes

JAUS::Date Class Reference

Simple Date structure. Contains methods to read/write date data stored in JAUS messages. More...

#include <date.h>

List of all members.

Public Member Functions

 Date ()
 Date (const Date &d)
 ~Date ()
UShort ToUShort () const
 Creates a UShort of the date information in the format defined by the JAUS Spec.
DateFromUShort (const UShort dstamp)
 Sets the date using a UShort in JAUS Date format.
Dateoperator= (const Date &date)
 Sets equal to.

Public Attributes

UShort mYear
 Year (UTC) [2000, 2127].
UShort mMonth
 Month data (UTC) [1,12].
UShort mDay
 Day (UTC) [1,31].

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]

Definition at line 58 of file date.h.

JAUS::Date::Date ( const Date d ) [inline]

Definition at line 59 of file date.h.

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

Definition at line 60 of file date.h.


Member Function Documentation

Date& JAUS::Date::FromUShort ( const UShort  dstamp ) [inline]

Sets the date using a UShort in JAUS Date format.

Parameters:
dstampBits 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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines