diff options
Diffstat (limited to 'ace/Log_Record.h')
-rw-r--r-- | ace/Log_Record.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/ace/Log_Record.h b/ace/Log_Record.h index ef6b8104711..8e7ff3980a0 100644 --- a/ace/Log_Record.h +++ b/ace/Log_Record.h @@ -1,4 +1,4 @@ -// -*- C++ -*- +/* -*- C++ -*- */ //============================================================================= /** @@ -29,8 +29,6 @@ #include "ace/Basic_Types.h" #include "ace/iosfwd.h" -ACE_BEGIN_VERSIONED_NAMESPACE_DECL - class ACE_Time_Value; /// Defines the structure of an ACE logging record. @@ -40,7 +38,7 @@ public: enum { /// Maximum size of a logging message. - MAXLOGMSGLEN = ACE_MAXLOGMSGLEN+1, + MAXLOGMSGLEN = ACE_MAXLOGMSGLEN, /// Most restrictive alignment. ALIGN_WORDB = 8, @@ -58,6 +56,8 @@ public: /** * Create a <Log_Record> and set its priority, time stamp, and * process id. + * Create a <Log_Record> and set its priority, time stamp, and + * process id. */ ACE_Log_Record (void); ACE_Log_Record (ACE_Log_Priority lp, @@ -140,7 +140,7 @@ public: ACE_Time_Value time_stamp (void) const; /// Set the time stamp of the <Log_Record>. - void time_stamp (const ACE_Time_Value &ts); + void time_stamp (const ACE_Time_Value &); /// Get the process id of the <Log_Record>. long pid (void) const; @@ -187,12 +187,12 @@ private: ACE_UINT32 pid_; /// Logging record data - ACE_TCHAR* msg_data_; // Add one for NUL-terminator. + ACE_TCHAR msg_data_[MAXLOGMSGLEN + 1]; // Add one for NUL-terminator. + /// Symbolic names for the <ACE_Log_Priority> enums. + static const ACE_TCHAR *priority_names_[]; }; -ACE_END_VERSIONED_NAMESPACE_DECL - #if defined (__ACE_INLINE__) #include "ace/Log_Record.inl" #endif /* __ACE_INLINE__ */ |