TAO_UTO Class Reference

Universal Time Object Implementation. More...

#include <TAO_UTO.h>

Collaboration diagram for TAO_UTO:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TAO_UTO (TimeBase::TimeT time, TimeBase::InaccuracyT inaccuracy, TimeBase::TdfT tdf)
 Constructor.

 ~TAO_UTO (void)
 Destructor.


Private Attributes

TimeBase::UtcT attr_utc_time_
 For the readonly attribute .


Detailed Description

Universal Time Object Implementation.

This is an encapsulation of the time. It provides the following operations on basic time.

Definition at line 44 of file TAO_UTO.h.


Constructor & Destructor Documentation

TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO_UTO::TAO_UTO TimeBase::TimeT  time,
TimeBase::InaccuracyT  inaccuracy,
TimeBase::TdfT  tdf
 

Constructor.

Definition at line 16 of file TAO_UTO.cpp.

References ACE_U64_TO_U32, attr_utc_time_, TimeBase::UtcT::inacchi, TimeBase::UtcT::inacclo, TimeBase::UtcT::tdf, and TimeBase::UtcT::time.

00019 {
00020 
00021   this->attr_utc_time_.time = time;
00022 
00023   // Extract the lower 32 bits in the inacclo.
00024   this->attr_utc_time_.inacclo = (CORBA::ULong) ACE_U64_TO_U32 (inaccuracy);
00025 
00026   // Extract the lower 16 bits of the remaining bits. 'And'ing with 0xFFFF
00027   // is only a sanity check.
00028 
00029 #if defined (ACE_LACKS_U_LONGLONG_T)
00030   this->attr_utc_time_.inacchi = 0;
00031 #else
00032   this->attr_utc_time_.inacchi =
00033     static_cast<CORBA::UShort> ((inaccuracy >> 32U) & 0xFFFF);
00034 
00035 #endif /* ACE_LACKS_U_LONGLONG_T */
00036 
00037   this->attr_utc_time_.tdf = tdf;
00038 
00039 }

TAO_UTO::~TAO_UTO void   ) 
 

Destructor.

Definition at line 43 of file TAO_UTO.cpp.

00044 {
00045 }


Member Data Documentation

TimeBase::UtcT TAO_UTO::attr_utc_time_ [private]
 

For the readonly attribute .

The readonly attribute structure having the time, inaccuracy and displacement. The get methods for other readonly attributes (time, inaccuracy, tdf) defined in the IDL use the members of this structure and hence need not have separate member variables for them.

Definition at line 102 of file TAO_UTO.h.

Referenced by TAO_UTO().


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 13:58:49 2006 for TAO_CosTime by doxygen 1.3.6