CAD Exchanger SDK
cadex::Base_LoggerAppender Class Referenceabstract

Base class for all log message appenders. More...

Inheritance diagram for cadex::Base_LoggerAppender:
cadex::Base_LoggerAsyncAppender cadex::Base_LoggerFileAppender cadex::Base_LoggerStreamAppender

Classes

class  Sentry
 Helper class to unregister the appender from the logger upon own destruction. More...
 

Public Types

typedef UTF16 CharType
 Defines a character type of user-visible strings.
 
typedef const UTF16CharPointerType
 Defines a type of the pointer to the character type.
 

Public Member Functions

virtual ~Base_LoggerAppender ()
 Destructor.
 
Base_LoggerAppenderoperator= (const Base_LoggerAppender &theAppender)
 Assignment operator.
 
virtual void Append (CharPointerType theMessage)=0
 Appends a message.
 
const std::shared_ptr< internal::Base_LoggerAppenderImpl > & Impl () const
 Returns internal implementation object.
 

Protected Member Functions

 Base_LoggerAppender ()
 Constructor.
 
 Base_LoggerAppender (const std::shared_ptr< internal::Base_LoggerAppenderImpl > &theImpl)
 Constructor.
 
 Base_LoggerAppender (const Base_LoggerAppender &theAppender)
 Constructor.
 
void Construct (const std::shared_ptr< internal::Base_LoggerAppenderImpl > &theImpl)
 Delayed constructor.
 
Base_LoggerAppenderThis ()
 Returns a pointer to this object.
 

Detailed Description

Base class for all log message appenders.

Subclasses must define the virtual method Append() which is called by the logger to process a message.

The message is provided in the form of a Unicode string.