ACE  6.2.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Macros
Log_Msg.h File Reference
#include "ace/Global_Macros.h"
#include "ace/Default_Constants.h"
#include "ace/Log_Priority.h"
#include "ace/os_include/os_limits.h"
#include "ace/Synch_Traits.h"
#include "ace/Assert.h"
#include "ace/OS_Log_Msg_Attributes.h"
#include "ace/Log_Msg.inl"

Classes

class  ACE_Atomic_Op< ACE_LOCK, TYPE >
 Transparently parameterizes synchronization into basic arithmetic operations. More...
 
class  ACE_Log_Msg
 Provides a variable length argument message logging abstraction. More...
 

Macros

#define ACE_HEX_DUMP(X)
 
#define ACE_RETURN(Y)
 
#define ACE_ERROR_RETURN(X, Y)
 
#define ACE_ERROR(X)
 
#define ACE_DEBUG(X)
 
#define ACE_ERROR_INIT(VALUE, FLAGS)
 
#define ACE_ERROR_BREAK(X)   { ACE_ERROR (X); break; }
 
#define ACE_LOG_MSG   ACE_Log_Msg::instance ()
 

Detailed Description

Id:
Log_Msg.h 96984 2013-04-11 15:22:24Z huangh
Author
Douglas C. Schmidt schmi.nosp@m.dt@c.nosp@m.s.wus.nosp@m.tl.e.nosp@m.du

Macro Definition Documentation

#define ACE_DEBUG (   X)
Value:
do { \
int const __ace_error = ACE_Log_Msg::last_error_adapter (); \
ACE_Log_Msg *ace___ = ACE_Log_Msg::instance (); \
ace___->conditional_set (__FILE__, __LINE__, 0, __ace_error); \
ace___->log X; \
} while (0)
static ACE_Log_Msg * instance(void)
Returns a pointer to the Singleton.
Definition: Log_Msg.cpp:279
static int last_error_adapter(void)
Returns last error.
Definition: Log_Msg.cpp:398
#define ACE_ERROR (   X)
Value:
do { \
int const __ace_error = ACE_Log_Msg::last_error_adapter (); \
ACE_Log_Msg *ace___ = ACE_Log_Msg::instance (); \
ace___->conditional_set (__FILE__, __LINE__, -1, __ace_error); \
ace___->log X; \
} while (0)
static ACE_Log_Msg * instance(void)
Returns a pointer to the Singleton.
Definition: Log_Msg.cpp:279
static int last_error_adapter(void)
Returns last error.
Definition: Log_Msg.cpp:398
#define ACE_ERROR_BREAK (   X)    { ACE_ERROR (X); break; }
#define ACE_ERROR_INIT (   VALUE,
  FLAGS 
)
Value:
do { \
ACE_Log_Msg *ace___ = ACE_Log_Msg::instance (); \
ace___->set_flags (FLAGS); \
ace___->op_status (VALUE); \
} while (0)
static ACE_Log_Msg * instance(void)
Returns a pointer to the Singleton.
Definition: Log_Msg.cpp:279
#define ACE_ERROR_RETURN (   X,
 
)
Value:
do { \
int const __ace_error = ACE_Log_Msg::last_error_adapter (); \
ACE_Log_Msg *ace___ = ACE_Log_Msg::instance (); \
ace___->conditional_set (__FILE__, __LINE__, Y, __ace_error); \
ace___->log X; \
return Y; \
} while (0)
static ACE_Log_Msg * instance(void)
Returns a pointer to the Singleton.
Definition: Log_Msg.cpp:279
static int last_error_adapter(void)
Returns last error.
Definition: Log_Msg.cpp:398
#define ACE_HEX_DUMP (   X)
Value:
do { \
int const __ace_error = ACE_Log_Msg::last_error_adapter (); \
ACE_Log_Msg *ace___ = ACE_Log_Msg::instance (); \
ace___->conditional_set (__FILE__, __LINE__, 0, __ace_error); \
ace___->log_hexdump X; \
} while (0)
static ACE_Log_Msg * instance(void)
Returns a pointer to the Singleton.
Definition: Log_Msg.cpp:279
static int last_error_adapter(void)
Returns last error.
Definition: Log_Msg.cpp:398
#define ACE_LOG_MSG   ACE_Log_Msg::instance ()
#define ACE_RETURN (   Y)
Value:
do { \
int const __ace_error = ACE_Log_Msg::last_error_adapter (); \
ACE_Log_Msg *ace___ = ACE_Log_Msg::instance (); \
ace___->set (__FILE__, __LINE__, Y, __ace_error, ace___->restart (), \
ace___->msg_ostream (), ace___->msg_callback ()); \
return Y; \
} while (0)
static ACE_Log_Msg * instance(void)
Returns a pointer to the Singleton.
Definition: Log_Msg.cpp:279
static int last_error_adapter(void)
Returns last error.
Definition: Log_Msg.cpp:398