1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319
|
.TH ACE_Log_Record 3 "1 Dec 2001" "ACE" \" -*- nroff -*-
.ad l
.nh
.SH NAME
ACE_Log_Record \- Defines the structure of an \fBACE\fR logging record.
.SH SYNOPSIS
.br
.PP
\fC#include <Log_Record.h>\fR
.PP
.SS Public Types
.in +1c
.ti -1c
.RI "enum { \fBMAXLOGMSGLEN\fR = ACE_MAXLOGMSGLEN, \fBALIGN_WORDB\fR = 8, \fBVERBOSE_LEN\fR = 128, \fBMAXVERBOSELOGMSGLEN\fR = VERBOSE_LEN + MAXLOGMSGLEN }"
.br
.in -1c
.SS Public Methods
.in +1c
.ti -1c
.RI "\fBACE_Log_Record\fR (void)"
.br
.ti -1c
.RI "\fBACE_Log_Record\fR (\fBACE_Log_Priority\fR lp, long time_stamp, long pid)"
.br
.ti -1c
.RI "\fBACE_Log_Record\fR (\fBACE_Log_Priority\fR lp, const \fBACE_Time_Value\fR &time_stamp, long pid)"
.br
.ti -1c
.RI "\fB~ACE_Log_Record\fR (void)"
.br
.RI "\fIDefault dtor.\fR"
.ti -1c
.RI "int \fBprint\fR (const \fBACE_TCHAR\fR host_name[], u_long verbose_flag, FILE *fp = stderr)"
.br
.RI "\fIWrite the contents of the logging record to the appropriate <FILE>.\fR"
.ti -1c
.RI "int \fBprint\fR (const \fBACE_TCHAR\fR host_name[], u_long verbose_flag, ostream &stream)"
.br
.RI "\fIWrite the contents of the logging record to the appropriate <ostream>.\fR"
.ti -1c
.RI "int \fBformat_msg\fR (const \fBACE_TCHAR\fR host_name[], u_long verbose_flag, \fBACE_TCHAR\fR *verbose_msg)"
.br
.ti -1c
.RI "void \fBencode\fR (void)"
.br
.RI "\fIEncode the <Log_Record> for transmission on the network.\fR"
.ti -1c
.RI "void \fBdecode\fR (void)"
.br
.RI "\fIDecode the <Log_Record> received from the network.\fR"
.ti -1c
.RI "long \fBtype\fR (void) const"
.br
.RI "\fIGet the type of the <Log_Record>.\fR"
.ti -1c
.RI "void \fBtype\fR (long)"
.br
.RI "\fISet the type of the <Log_Record>.\fR"
.ti -1c
.RI "u_long \fBpriority\fR (void) const"
.br
.ti -1c
.RI "void \fBpriority\fR (u_long num)"
.br
.RI "\fISet the priority of the <Log_Record> <type_> (which must be a power of 2, as defined by the enums in ).\fR"
.ti -1c
.RI "long \fBlength\fR (void) const"
.br
.RI "\fIGet the length of the <Log_Record>.\fR"
.ti -1c
.RI "void \fBlength\fR (long)"
.br
.RI "\fISet the length of the <Log_Record>.\fR"
.ti -1c
.RI "\fBACE_Time_Value\fR \fBtime_stamp\fR (void) const"
.br
.RI "\fIGet the time stamp of the <Log_Record>.\fR"
.ti -1c
.RI "void \fBtime_stamp\fR (const \fBACE_Time_Value\fR &)"
.br
.RI "\fISet the time stamp of the <Log_Record>.\fR"
.ti -1c
.RI "long \fBpid\fR (void) const"
.br
.RI "\fIGet the process id of the <Log_Record>.\fR"
.ti -1c
.RI "void \fBpid\fR (long)"
.br
.RI "\fISet the process id of the <Log_Record>.\fR"
.ti -1c
.RI "const \fBACE_TCHAR\fR* \fBmsg_data\fR (void) const"
.br
.RI "\fIGet the message data of the <Log_Record>.\fR"
.ti -1c
.RI "void \fBmsg_data\fR (const \fBACE_TCHAR\fR *data)"
.br
.RI "\fISet the message data of the <Log_Record>.\fR"
.ti -1c
.RI "size_t \fBmsg_data_len\fR (void) const"
.br
.RI "\fIGet the size of the message data of the <Log_Record>, including a byte for the NUL.\fR"
.ti -1c
.RI "void \fBdump\fR (void) const"
.br
.RI "\fIDump the state of an object.\fR"
.in -1c
.SS Public Attributes
.in +1c
.ti -1c
.RI "\fBACE_ALLOC_HOOK_DECLARE\fR"
.br
.RI "\fIDeclare the dynamic allocation hooks.\fR"
.in -1c
.SS Static Public Methods
.in +1c
.ti -1c
.RI "const \fBACE_TCHAR\fR* \fBpriority_name\fR (\fBACE_Log_Priority\fR p)"
.br
.ti -1c
.RI "void \fBpriority_name\fR (\fBACE_Log_Priority\fR p, const \fBACE_TCHAR\fR *name)"
.br
.in -1c
.SS Private Methods
.in +1c
.ti -1c
.RI "void \fBround_up\fR (void)"
.br
.RI "\fIRound up to the alignment restrictions.\fR"
.in -1c
.SS Private Attributes
.in +1c
.ti -1c
.RI "ACE_INT32 \fBlength_\fR"
.br
.ti -1c
.RI "ACE_UINT32 \fBtype_\fR"
.br
.RI "\fIType of logging record.\fR"
.ti -1c
.RI "ACE_UINT32 \fBsecs_\fR"
.br
.RI "\fITime that the logging record was generated.\fR"
.ti -1c
.RI "ACE_UINT32 \fBusecs_\fR"
.br
.ti -1c
.RI "ACE_UINT32 \fBpid_\fR"
.br
.RI "\fIId of process that generated the logging record.\fR"
.ti -1c
.RI "\fBACE_TCHAR\fR \fBmsg_data_\fR [MAXLOGMSGLEN + 1]"
.br
.RI "\fILogging record data.\fR"
.in -1c
.SS Static Private Attributes
.in +1c
.ti -1c
.RI "const \fBACE_TCHAR\fR* \fBpriority_names_\fR []"
.br
.RI "\fISymbolic names for the enums.\fR"
.in -1c
.SH DETAILED DESCRIPTION
.PP
Defines the structure of an \fBACE\fR logging record.
.PP
.SH MEMBER ENUMERATION DOCUMENTATION
.PP
.SS anonymous enum
.PP
\fBEnumeration values:\fR
.in +1c
.TP
\fB\fIMAXLOGMSGLEN\fR \fRMaximum size of a logging message.
.TP
\fB\fIALIGN_WORDB\fR \fRMost restrictive alignment.
.TP
\fB\fIVERBOSE_LEN\fR \fRSize used by verbose mode. 20 (date) + 15 (host_name) + 10 (pid) + 10 (type) + 4 (@) ... + ? (progname).
.TP
\fB\fIMAXVERBOSELOGMSGLEN\fR \fRMaximum size of a logging message with the verbose headers.
.SH CONSTRUCTOR & DESTRUCTOR DOCUMENTATION
.PP
.SS ACE_Log_Record::ACE_Log_Record (void)
.PP
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.
.SS ACE_Log_Record::ACE_Log_Record (\fBACE_Log_Priority\fR lp, long time_stamp, long pid)
.PP
.SS ACE_Log_Record::ACE_Log_Record (\fBACE_Log_Priority\fR lp, const \fBACE_Time_Value\fR & time_stamp, long pid)
.PP
.SS ACE_Log_Record::~ACE_Log_Record (void)
.PP
Default dtor.
.PP
.SH MEMBER FUNCTION DOCUMENTATION
.PP
.SS void ACE_Log_Record::decode (void)
.PP
Decode the <Log_Record> received from the network.
.PP
.SS void ACE_Log_Record::dump (void) const
.PP
Dump the state of an object.
.PP
.SS void ACE_Log_Record::encode (void)
.PP
Encode the <Log_Record> for transmission on the network.
.PP
.SS int ACE_Log_Record::format_msg (const \fBACE_TCHAR\fR host_name[], u_long verbose_flag, \fBACE_TCHAR\fR * verbose_msg)
.PP
.SS void ACE_Log_Record::length (long)
.PP
Set the length of the <Log_Record>.
.PP
.SS long ACE_Log_Record::length (void) const
.PP
Get the length of the <Log_Record>.
.PP
.SS void ACE_Log_Record::msg_data (const \fBACE_TCHAR\fR * data)
.PP
Set the message data of the <Log_Record>.
.PP
.SS const \fBACE_TCHAR\fR * ACE_Log_Record::msg_data (void) const
.PP
Get the message data of the <Log_Record>.
.PP
.SS size_t ACE_Log_Record::msg_data_len (void) const
.PP
Get the size of the message data of the <Log_Record>, including a byte for the NUL.
.PP
.SS void ACE_Log_Record::pid (long)
.PP
Set the process id of the <Log_Record>.
.PP
.SS long ACE_Log_Record::pid (void) const
.PP
Get the process id of the <Log_Record>.
.PP
.SS int ACE_Log_Record::print (const \fBACE_TCHAR\fR host_name[], u_long verbose_flag, ostream & stream)
.PP
Write the contents of the logging record to the appropriate <ostream>.
.PP
.SS int ACE_Log_Record::print (const \fBACE_TCHAR\fR host_name[], u_long verbose_flag, FILE * fp = stderr)
.PP
Write the contents of the logging record to the appropriate <FILE>.
.PP
.SS void ACE_Log_Record::priority (u_long num)
.PP
Set the priority of the <Log_Record> <type_> (which must be a power of 2, as defined by the enums in ).
.PP
.SS u_long ACE_Log_Record::priority (void) const
.PP
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 ).
.SS void ACE_Log_Record::priority_name (\fBACE_Log_Priority\fR p, const \fBACE_TCHAR\fR * name)\fC [static]\fR
.PP
.SS const \fBACE_TCHAR\fR * ACE_Log_Record::priority_name (\fBACE_Log_Priority\fR p)\fC [static]\fR
.PP
Returns a character array with the string form of the parameter. This is used for the verbose printing format.
.SS void ACE_Log_Record::round_up (void)\fC [private]\fR
.PP
Round up to the alignment restrictions.
.PP
.SS void ACE_Log_Record::time_stamp (const \fBACE_Time_Value\fR &)
.PP
Set the time stamp of the <Log_Record>.
.PP
.SS \fBACE_Time_Value\fR ACE_Log_Record::time_stamp (void) const
.PP
Get the time stamp of the <Log_Record>.
.PP
.SS void ACE_Log_Record::type (long)
.PP
Set the type of the <Log_Record>.
.PP
.SS long ACE_Log_Record::type (void) const
.PP
Get the type of the <Log_Record>.
.PP
.SH MEMBER DATA DOCUMENTATION
.PP
.SS ACE_Log_Record::ACE_ALLOC_HOOK_DECLARE
.PP
Declare the dynamic allocation hooks.
.PP
.SS ACE_INT32 ACE_Log_Record::length_\fC [private]\fR
.PP
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.
.SS \fBACE_TCHAR\fR ACE_Log_Record::msg_data_[MAXLOGMSGLEN+1]\fC [private]\fR
.PP
Logging record data.
.PP
.SS ACE_UINT32 ACE_Log_Record::pid_\fC [private]\fR
.PP
Id of process that generated the logging record.
.PP
.SS const \fBACE_TCHAR\fR * ACE_Log_Record::priority_names_[]\fC [static, private]\fR
.PP
Symbolic names for the enums.
.PP
.SS ACE_UINT32 ACE_Log_Record::secs_\fC [private]\fR
.PP
Time that the logging record was generated.
.PP
.SS ACE_UINT32 ACE_Log_Record::type_\fC [private]\fR
.PP
Type of logging record.
.PP
.SS ACE_UINT32 ACE_Log_Record::usecs_\fC [private]\fR
.PP
.SH AUTHOR
.PP
Generated automatically by Doxygen for ACE from the source code.
|