TAO::Portable_Server::Creation_Time Class Reference

#include <Creation_Time.h>

List of all members.

Public Member Functions

 Creation_Time (const ACE_Time_Value &creation_time)
 Creation_Time (void)
void creation_time (const void *creation_time)
const void * creation_time (void) const
bool operator== (const Creation_Time &rhs) const
bool operator!= (const Creation_Time &rhs) const
bool operator== (const Temporary_Creation_Time &rhs) const
bool operator!= (const Temporary_Creation_Time &rhs) const

Static Public Member Functions

CORBA::ULong creation_time_length (void)

Protected Types

enum  { SEC_FIELD = 0, USEC_FIELD = 1 }

Protected Attributes

CORBA::ULong time_stamp_ [2]
 Timestamp.


Member Enumeration Documentation

anonymous enum [protected]
 

Enumeration values:
SEC_FIELD 
USEC_FIELD 

Definition at line 58 of file Creation_Time.h.

00059       {
00060         SEC_FIELD = 0,
00061         USEC_FIELD = 1
00062       };


Constructor & Destructor Documentation

ACE_INLINE TAO::Portable_Server::Creation_Time::Creation_Time const ACE_Time_Value creation_time  )  [explicit]
 

Definition at line 21 of file Creation_Time.inl.

References ACE_Time_Value::sec(), time_stamp_, and ACE_Time_Value::usec().

00022     {
00023       this->time_stamp_[Creation_Time::SEC_FIELD]  = (CORBA::ULong) creation_time.sec ();
00024       this->time_stamp_[Creation_Time::USEC_FIELD] = (CORBA::ULong) creation_time.usec ();
00025     }

ACE_INLINE TAO::Portable_Server::Creation_Time::Creation_Time void   ) 
 

Definition at line 28 of file Creation_Time.inl.

References time_stamp_.

00029     {
00030       this->time_stamp_[Creation_Time::SEC_FIELD]  = 0;
00031       this->time_stamp_[Creation_Time::USEC_FIELD] = 0;
00032     }


Member Function Documentation

ACE_INLINE const void * TAO::Portable_Server::Creation_Time::creation_time void   )  const
 

Definition at line 43 of file Creation_Time.inl.

References time_stamp_.

00044     {
00045       return &this->time_stamp_;
00046     }

ACE_INLINE void TAO::Portable_Server::Creation_Time::creation_time const void *  creation_time  ) 
 

Definition at line 35 of file Creation_Time.inl.

References ACE_OS::memcpy().

Referenced by TAO::Portable_Server::Temporary_Creation_Time::operator!=(), and TAO::Portable_Server::Temporary_Creation_Time::operator==().

00036     {
00037       ACE_OS::memcpy (&this->time_stamp_,
00038                       creation_time,
00039                       Creation_Time::creation_time_length ());
00040     }

ACE_INLINE CORBA::ULong TAO::Portable_Server::Creation_Time::creation_time_length void   )  [static]
 

Definition at line 15 of file Creation_Time.inl.

Referenced by TAO_Root_POA::parse_key().

00016     {
00017       return 2 * sizeof (CORBA::ULong);
00018     }

ACE_INLINE bool TAO::Portable_Server::Creation_Time::operator!= const Temporary_Creation_Time rhs  )  const
 

Definition at line 107 of file Creation_Time.inl.

00108     {
00109       return rhs != *this;
00110     }

ACE_INLINE bool TAO::Portable_Server::Creation_Time::operator!= const Creation_Time rhs  )  const
 

Definition at line 62 of file Creation_Time.inl.

References ACE_OS::memcmp(), and time_stamp_.

00063     {
00064     #if (POA_NO_TIMESTAMP == 1)
00065       ACE_UNUSED_ARG (rhs);
00066       return false;
00067     #else
00068       return ACE_OS::memcmp (&this->time_stamp_,
00069                              &rhs.time_stamp_,
00070                              Creation_Time::creation_time_length ()) != 0;
00071     #endif /* POA_NO_TIMESTAMP */
00072     }

ACE_INLINE bool TAO::Portable_Server::Creation_Time::operator== const Temporary_Creation_Time rhs  )  const
 

Definition at line 101 of file Creation_Time.inl.

00102     {
00103       return rhs == *this;
00104     }

ACE_INLINE bool TAO::Portable_Server::Creation_Time::operator== const Creation_Time rhs  )  const
 

Definition at line 49 of file Creation_Time.inl.

References ACE_OS::memcmp(), and time_stamp_.

00050     {
00051     #if (POA_NO_TIMESTAMP == 1)
00052       ACE_UNUSED_ARG (rhs);
00053       return true;
00054     #else
00055       return ACE_OS::memcmp (&this->time_stamp_,
00056                              &rhs.time_stamp_,
00057                              Creation_Time::creation_time_length ()) == 0;
00058     #endif /* POA_NO_TIMESTAMP */
00059     }


Member Data Documentation

CORBA::ULong TAO::Portable_Server::Creation_Time::time_stamp_[2] [protected]
 

Timestamp.

Definition at line 65 of file Creation_Time.h.

Referenced by creation_time(), Creation_Time(), operator!=(), and operator==().


The documentation for this class was generated from the following files:
Generated on Sun Jan 27 13:28:45 2008 for TAO_PortableServer by doxygen 1.3.6