diff options
Diffstat (limited to 'ace/Log_Record.i')
-rw-r--r-- | ace/Log_Record.i | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/ace/Log_Record.i b/ace/Log_Record.i new file mode 100644 index 00000000000..8ddba60122d --- /dev/null +++ b/ace/Log_Record.i @@ -0,0 +1,88 @@ +/* -*- C++ -*- */ +// $Id$ + +// Log_Record.i + +inline void +ACE_Log_Record::encode (void) +{ + ACE_TRACE ("ACE_Log_Record::encode"); + this->type_ = htonl (this->type_); + this->length_ = htonl (this->length_); + this->time_stamp_ = htonl (this->time_stamp_); + this->pid_ = htonl (this->pid_); +} + +inline void +ACE_Log_Record::decode (void) +{ + ACE_TRACE ("ACE_Log_Record::decode"); + this->type_ = ntohl (this->type_); + this->time_stamp_ = ntohl (this->time_stamp_); + this->pid_ = ntohl (this->pid_); + this->length_ = ntohl (this->length_); +} + +inline long +ACE_Log_Record::type (void) const +{ + ACE_TRACE ("ACE_Log_Record::type"); + return this->type_; +} + +inline void +ACE_Log_Record::type (long t) +{ + ACE_TRACE ("ACE_Log_Record::type"); + this->type_ = t; +} + +inline long +ACE_Log_Record::length (void) const +{ + ACE_TRACE ("ACE_Log_Record::length"); + return this->length_; +} + +inline void +ACE_Log_Record::length (long l) +{ + ACE_TRACE ("ACE_Log_Record::length"); + this->length_ = l; +} + +inline long +ACE_Log_Record::time_stamp (void) const +{ + ACE_TRACE ("ACE_Log_Record::time_stamp"); + return this->time_stamp_; +} + +inline void +ACE_Log_Record::time_stamp (long ts) +{ + ACE_TRACE ("ACE_Log_Record::time_stamp"); + this->time_stamp_ = ts; +} + +inline long +ACE_Log_Record::pid (void) const +{ + ACE_TRACE ("ACE_Log_Record::pid"); + return this->pid_; +} + +inline void +ACE_Log_Record::pid (long p) +{ + ACE_TRACE ("ACE_Log_Record::pid"); + this->pid_ = p; +} + +inline char * +ACE_Log_Record::msg_data (void) +{ + ACE_TRACE ("ACE_Log_Record::msg_data"); + return this->msg_data_; +} + |