ACE  6.3.3
Public Member Functions | Private Attributes | Friends | List of all members
ACE_Log_Category_TSS Class Reference

The thread specific object for a ACE_Log_Categy object. More...

#include <Log_Category.h>

Collaboration diagram for ACE_Log_Category_TSS:
Collaboration graph
[legend]

Public Member Functions

 ACE_Log_Category_TSS (ACE_Log_Category *category, ACE_Log_Msg *logger)
 
const char * name ()
 
unsigned int id ()
 
ACE_Log_Msglogger ()
 
u_long priority_mask ()
 Get the current ACE_Log_Priority mask. More...
 
u_long priority_mask (u_long)
 Set the ACE_Log_Priority mask, returns original mask. More...
 
int log_priority_enabled (ACE_Log_Priority log_priority)
 Return true if the requested priority is enabled. More...
 
void set (const char *file, int line, int op_status=-1, int errnum=0)
 
void conditional_set (const char *file, int line, int op_status, int errnum)
 
ssize_t log (ACE_Log_Priority priority, const ACE_TCHAR *format,...)
 
ssize_t log (ACE_Log_Priority priority, const ACE_ANTI_TCHAR *format,...)
 
ssize_t log (const ACE_TCHAR *format, ACE_Log_Priority priority, va_list argp)
 
int log_hexdump (ACE_Log_Priority log_priority, const char *buffer, size_t size, const ACE_TCHAR *text=0)
 

Private Attributes

ACE_Log_Categorycategory_
 
ACE_Log_Msglogger_
 
u_long priority_mask_
 

Friends

class ACE_Log_Category
 

Detailed Description

The thread specific object for a ACE_Log_Categy object.

See also
ACE_Log_Categy

Constructor & Destructor Documentation

ACE_Log_Category_TSS::ACE_Log_Category_TSS ( ACE_Log_Category category,
ACE_Log_Msg logger 
)

Member Function Documentation

void ACE_Log_Category_TSS::conditional_set ( const char *  file,
int  line,
int  op_status,
int  errnum 
)
inline

These values are only actually set if the requested priority is enabled.

unsigned int ACE_Log_Category_TSS::id ( )
inline
ssize_t ACE_Log_Category_TSS::log ( ACE_Log_Priority  priority,
const ACE_TCHAR format,
  ... 
)
inline
ssize_t ACE_Log_Category_TSS::log ( ACE_Log_Priority  priority,
const ACE_ANTI_TCHAR format,
  ... 
)
inline
ssize_t ACE_Log_Category_TSS::log ( const ACE_TCHAR format,
ACE_Log_Priority  priority,
va_list  argp 
)
inline

An alternative logging mechanism that makes it possible to integrate variable argument lists from other logging mechanisms into the ACE mechanism.

int ACE_Log_Category_TSS::log_hexdump ( ACE_Log_Priority  log_priority,
const char *  buffer,
size_t  size,
const ACE_TCHAR text = 0 
)
inline

Method to log hex dump. This is useful for debugging. Calls log() to do the actual print, but formats first to make the chars printable.

int ACE_Log_Category_TSS::log_priority_enabled ( ACE_Log_Priority  log_priority)
inline

Return true if the requested priority is enabled.

ACE_Log_Msg * ACE_Log_Category_TSS::logger ( )
inline
const char * ACE_Log_Category_TSS::name ( void  )
inline
u_long ACE_Log_Category_TSS::priority_mask ( )
inline

Get the current ACE_Log_Priority mask.

u_long ACE_Log_Category_TSS::priority_mask ( u_long  n_mask)
inline

Set the ACE_Log_Priority mask, returns original mask.

void ACE_Log_Category_TSS::set ( const char *  file,
int  line,
int  op_status = -1,
int  errnum = 0 
)
inline

Set the line number, file name, operational status, error number, restart flag, ostream, and the callback object. This combines all the other set methods into a single method.

Friends And Related Function Documentation

friend class ACE_Log_Category
friend

Member Data Documentation

ACE_Log_Category* ACE_Log_Category_TSS::category_
private
ACE_Log_Msg* ACE_Log_Category_TSS::logger_
private
u_long ACE_Log_Category_TSS::priority_mask_
private

The documentation for this class was generated from the following files: