#include <Creation_Time.h>
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 | |
static CORBA::ULong | creation_time_length (void) |
Protected Types | |
SEC_FIELD = 0 | |
USEC_FIELD = 1 | |
enum | { SEC_FIELD = 0, USEC_FIELD = 1 } |
Protected Attributes | |
CORBA::ULong | time_stamp_ [2] |
Timestamp. |
Definition at line 35 of file Creation_Time.h.
anonymous enum [protected] |
Definition at line 58 of file Creation_Time.h.
00059 { 00060 SEC_FIELD = 0, 00061 USEC_FIELD = 1 00062 };
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 creation_time(), SEC_FIELD, time_stamp_, and USEC_FIELD.
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 SEC_FIELD, time_stamp_, and USEC_FIELD.
00029 { 00030 this->time_stamp_[Creation_Time::SEC_FIELD] = 0; 00031 this->time_stamp_[Creation_Time::USEC_FIELD] = 0; 00032 }
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_.
Referenced by Creation_Time().
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 creation_time_length(), and 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::Portable_Server::LifespanStrategyTransient::create_key(), creation_time(), TAO::Portable_Server::LifespanStrategyTransient::key_length(), TAO::Portable_Server::Temporary_Creation_Time::operator!=(), operator!=(), TAO::Portable_Server::Temporary_Creation_Time::operator==(), operator==(), and 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 |
ACE_INLINE bool TAO::Portable_Server::Creation_Time::operator!= | ( | const Creation_Time & | rhs | ) | const |
Definition at line 62 of file Creation_Time.inl.
References creation_time_length(), 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 |
ACE_INLINE bool TAO::Portable_Server::Creation_Time::operator== | ( | const Creation_Time & | rhs | ) | const |
Definition at line 49 of file Creation_Time.inl.
References creation_time_length(), 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 }
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==().