OSB_LIB::DateTime::Offset Class Reference

Collaboration diagram for OSB_LIB::DateTime::Offset:

Collaboration graph
[legend]
List of all members.

Detailed Description

Structure to handle the offset of a DateTime from UTC.

The offset from UTC is split into 2 components:

Definition at line 395 of file chrono.h.

Public Member Functions

Private Types

Private Attributes

Friends


Member Enumeration Documentation

enum OSB_LIB::DateTime::Offset::Status [private]

The status of the offset.

Enumerator:
notSet  Undefined: system time.
gmtOnly  Only offGmt_ is valid.
gmtSys  offGmt_ and offSys_ have been computed.

Definition at line 400 of file chrono.h.


Constructor & Destructor Documentation

OSB_LIB::DateTime::Offset::Offset (  )  [inline]

Default constructor.

Definition at line 740 of file chrono.h.

OSB_LIB::DateTime::Offset::Offset ( long  utcOff  )  [inline]

Implicit constructor with seconds east of UTC.

Parameters:
utcOff Timestamp - UTC.

Definition at line 746 of file chrono.h.


Member Function Documentation

bool OSB_LIB::DateTime::Offset::isSet (  )  const [inline]

Flag if the offset to UTC is defined.

Definition at line 752 of file chrono.h.

References notSet, and status_.

Referenced by OSB_LIB::DateTime::DateTime(), and utcOff().

long OSB_LIB::DateTime::Offset::utcOff (  )  const [inline]

Seconds east of UTC: timestamp - UTC.

If the offset is not set the function returns -1.

Definition at line 757 of file chrono.h.

References isSet(), offGmt_, and offSys_.


Friends And Related Function Documentation

friend class DateTime [friend]

Allow to split the offset.

Definition at line 397 of file chrono.h.


Member Data Documentation

long OSB_LIB::DateTime::Offset::offGmt_ [private]

Seconds east of GMT.

Definition at line 429 of file chrono.h.

Referenced by utcOff().

long OSB_LIB::DateTime::Offset::offSys_ [private]

Seconds east of system time.

Definition at line 431 of file chrono.h.

Referenced by utcOff().

Status OSB_LIB::DateTime::Offset::status_ [private]

The status of the offset.

Definition at line 427 of file chrono.h.

Referenced by isSet().


The documentation for this class was generated from the following file:
Generated on Sat Sep 2 14:11:03 2006 for OSB Library by  doxygen 1.4.7