#include <Log_Record.h>
Public Types | |
| enum | { MAXLOGMSGLEN = ACE_MAXLOGMSGLEN, ALIGN_WORDB = 8, VERBOSE_LEN = 128, MAXVERBOSELOGMSGLEN = VERBOSE_LEN + MAXLOGMSGLEN } |
Public Member Functions | |
| ACE_Log_Record (void) | |
| ACE_Log_Record (ACE_Log_Priority lp, long time_stamp, long pid) | |
| ACE_Log_Record (ACE_Log_Priority lp, const ACE_Time_Value &time_stamp, long pid) | |
| ~ACE_Log_Record (void) | |
| Default dtor. | |
| int | print (const ACE_TCHAR host_name[], u_long verbose_flag, FILE *fp=stderr) |
| int | print (const ACE_TCHAR host_name[], u_long verbose_flag, ACE_OSTREAM_TYPE &stream) |
| int | format_msg (const ACE_TCHAR host_name[], u_long verbose_flag, ACE_TCHAR *verbose_msg) |
| void | encode (void) |
| Encode the <log_record> for transmission on the network. | |
| void | decode (void) |
| Decode the <log_record> received from the network. | |
| ACE_UINT32 | type (void) const |
| Get the type of the <log_record>. | |
| void | type (ACE_UINT32) |
| Set the type of the <log_record>. | |
| u_long | priority (void) const |
| void | priority (u_long num) |
| long | length (void) const |
| Get the length of the <log_record>. | |
| void | length (long) |
| Set the length of the <log_record>. | |
| ACE_Time_Value | time_stamp (void) const |
| Get the time stamp of the <log_record>. | |
| void | time_stamp (const ACE_Time_Value &ts) |
| Set the time stamp of the <log_record>. | |
| long | pid (void) const |
| Get the process id of the <log_record>. | |
| void | pid (long) |
| Set the process id of the <log_record>. | |
| const ACE_TCHAR * | msg_data (void) const |
| Get the message data of the <log_record>. | |
| void | msg_data (const ACE_TCHAR *data) |
| Set the message data of the <log_record>. | |
| size_t | msg_data_len (void) const |
| void | dump (void) const |
| Dump the state of an object. | |
Static Public Member Functions | |
| const ACE_TCHAR * | priority_name (ACE_Log_Priority p) |
| void | priority_name (ACE_Log_Priority p, const ACE_TCHAR *name) |
Public Attributes | |
| ACE_ALLOC_HOOK_DECLARE | |
| Declare the dynamic allocation hooks. | |
Private Member Functions | |
| void | round_up (void) |
| Round up to the alignment restrictions. | |
Private Attributes | |
| ACE_INT32 | length_ |
| ACE_UINT32 | type_ |
| Type of logging record. | |
| ACE_UINT32 | secs_ |
| Time that the logging record was generated. | |
| ACE_UINT32 | usecs_ |
| ACE_UINT32 | pid_ |
| Id of process that generated the logging record. | |
| ACE_TCHAR | msg_data_ [MAXLOGMSGLEN+1] |
| Logging record data. | |
|
|
|
Create a <log_record> and set its priority, time stamp, and process id. |
|
||||||||||||||||
|
|
|
||||||||||||||||
|
|
|
|
Default dtor.
|
|
|
Decode the <log_record> received from the network.
|
|
|
Dump the state of an object.
|
|
|
Encode the <log_record> for transmission on the network.
|
|
||||||||||||||||
|
|
|
|
Set the length of the <log_record>.
|
|
|
Get the length of the <log_record>.
|
|
|
Set the message data of the <log_record>.
|
|
|
Get the message data of the <log_record>.
|
|
|
Get the size of the message data of the <log_record>, including a byte for the NUL. |
|
|
Set the process id of the <log_record>.
|
|
|
Get the process id of the <log_record>.
|
|
||||||||||||||||
|
Write the contents of the logging record to the appropriate <ostream>. |
|
||||||||||||||||
|
Write the contents of the logging record to the appropriate <file>. |
|
|
Set the priority of the <log_record> <type_> (which must be a power of 2, as defined by the enums in <ace_log_priority>). |
|
|
Get the priority of the <log_record> <type_>. This is computed as the base 2 logarithm of <type_> (which must be a power of 2, as defined by the enums in <ace_log_priority>). |
|
||||||||||||
|
|
|
|
Returns a character array with the string form of the <ace_log_priority> parameter. This is used for the verbose printing format. |
|
|
Round up to the alignment restrictions.
|
|
|
Set the time stamp of the <log_record>.
|
|
|
Get the time stamp of the <log_record>.
|
|
|
Set the type of the <log_record>.
|
|
|
Get the type of the <log_record>.
|
|
|
Declare the dynamic allocation hooks.
|
|
|
Total length of the logging record in bytes. This field *must* come first in order for various IPC framing mechanisms to work correctly. In addition, the field must be an ACE_INT32 in order to be passed portably across platforms. |
|
|
Logging record data.
|
|
|
Id of process that generated the logging record.
|
|
|
Time that the logging record was generated.
|
|
|
Type of logging record.
|
|
|
|
1.3.9.1