commore  1.0.6-SNAPSHOT
 All Classes Namespaces Functions Variables Typedefs Enumerations Pages
commore::Log Class Reference

Public Member Functions

 Log (const AChar *key, LOG_LEVEL level, const AChar *module_name, const AChar *unit_name, int line)
 
 ~Log ()
 
void add (const char *a)
 
void add (const void *a)
 
void add (int)
 
void add (double)
 
void add (bool)
 
commore::Logoperator<< (commore::AChar c)
 
commore::Logoperator<< (unsigned char c)
 
commore::Logoperator<< (const unsigned char *s)
 
commore::Logoperator<< (const commore::AChar *s)
 
commore::Logoperator<< (const void *s)
 
commore::Logoperator<< (short i)
 
commore::Logoperator<< (commore::Int i)
 
commore::Logoperator<< (long i)
 
commore::Logoperator<< (commore::Long i)
 
commore::Logoperator<< (unsigned short i)
 
commore::Logoperator<< (unsigned int i)
 
commore::Logoperator<< (unsigned long i)
 
commore::Logoperator<< (float i)
 
commore::Logoperator<< (double i)
 
commore::Logoperator<< (bool i)
 
commore::Logoperator<< (const commore::TimeDate &t)
 
commore::Logoperator<< (const commore::ListTimeDate &t)
 
commore::Logoperator<< (const commore::TimePeriod &t)
 
commore::Logoperator<< (const commore::ListTimePeriod &t)
 
commore::Logoperator<< (const commore::Blob &t)
 
commore::Logoperator<< (const commore::ListBlob &t)
 
commore::Logoperator<< (const commore::Tuple &t)
 
commore::Logoperator<< (const commore::ListTuple &t)
 
commore::Logoperator<< (const commore::Symbol &s)
 
commore::Logoperator<< (const commore::ListSymbol &s)
 
commore::Logoperator<< (const commore::StringBuffer &t)
 
commore::Logoperator<< (const commore::AString &t)
 
commore::Logoperator<< (const commore::ListAString &t)
 
commore::Logoperator<< (const commore::ListString &t)
 
commore::Logoperator<< (const commore::ListBool &t)
 
commore::Logoperator<< (const commore::ListInt &t)
 
commore::Logoperator<< (const commore::ListLong &t)
 
commore::Logoperator<< (const commore::ListFloat &t)
 
commore::Logoperator<< (const commore::ListDouble &t)
 
commore::Logoperator<< (const commore::ArrayInt &t)
 
commore::Logoperator<< (const commore::ArrayLong &t)
 
commore::Logoperator<< (const commore::ArrayFloat &t)
 
commore::Logoperator<< (const commore::ArrayDouble &t)
 
commore::Logoperator<< (const commore::ListArrayInt &t)
 
commore::Logoperator<< (const commore::ListArrayLong &t)
 
commore::Logoperator<< (const commore::ListArrayFloat &t)
 
commore::Logoperator<< (const commore::ListArrayDouble &t)
 

Static Public Member Functions

static const AStringtoString (Double val, AString &dst)
 
static const AStringtoString (Float val, AString &dst)
 
static const AStringtoString (Long val, AString &dst)
 
static const AStringtoString (Int val, AString &dst)
 
static const AStringtoString (Bool val, AString &dst)
 

Constructor & Destructor Documentation

commore::Log::Log ( const AChar *  key,
LOG_LEVEL  level,
const AChar *  module_name,
const AChar *  unit_name,
int  line 
)
Parameters
keymessage
levelof messsage
module_namefor message
unit_namefor message
lineindicate the line number in source file (mainly for debug message)
commore::Log::~Log ( )

Message is sent to log manager on destructor call

Member Function Documentation

void commore::Log::add ( const char *  a)

Add arguments string to message

void commore::Log::add ( const void *  a)

Add arguments pointer to message

void commore::Log::add ( int  )

Add arguments int to message

void commore::Log::add ( double  )

Add arguments double to message

void commore::Log::add ( bool  )

Add arguments bool to message

commore::Log& commore::Log::operator<< ( commore::AChar  c)

Add argument char to message with operaror <<

commore::Log& commore::Log::operator<< ( unsigned char  c)

Add argument Byte to message with operaror <<

commore::Log& commore::Log::operator<< ( const unsigned char *  s)

Add argument null terminated byte array to message with operaror <<

commore::Log& commore::Log::operator<< ( const commore::AChar *  s)

Add argument null terminated char array to message with operaror <<

commore::Log& commore::Log::operator<< ( const void *  s)

Add argument pointer to message with operaror <<

commore::Log& commore::Log::operator<< ( short  i)

Add argument short int to message with operaror <<

commore::Log& commore::Log::operator<< ( commore::Int  i)

Add argument int to message with operaror <<

commore::Log& commore::Log::operator<< ( long  i)

Add argument long int to message with operaror <<

Remarks
truncated to int for output
commore::Log& commore::Log::operator<< ( commore::Long  i)

Add argument long long int to message with operaror <<

Remarks
truncated to int for output
commore::Log& commore::Log::operator<< ( unsigned short  i)

Add argument unsigned short int to message with operaror <<

commore::Log& commore::Log::operator<< ( unsigned int  i)

Add argument unsigned int to message with operaror <<

commore::Log& commore::Log::operator<< ( unsigned long  i)

Add argument unsigned long int to message with operaror <<

Remarks
truncated to int for output
commore::Log& commore::Log::operator<< ( float  i)

Add argument float to message with operaror <<

commore::Log& commore::Log::operator<< ( double  i)

Add argument double to message with operaror <<

commore::Log& commore::Log::operator<< ( bool  i)

Add argument bool to message with operaror <<

commore::Log& commore::Log::operator<< ( const commore::TimeDate t)

Add argument time date to message with operaror <<

commore::Log& commore::Log::operator<< ( const commore::ListTimeDate t)

Add argument list of time date to message with operaror <<

commore::Log& commore::Log::operator<< ( const commore::TimePeriod t)

Add argument time period to message with operaror <<

commore::Log& commore::Log::operator<< ( const commore::ListTimePeriod t)

Add argument list of time period to message with operaror <<

commore::Log& commore::Log::operator<< ( const commore::Blob t)

Add argument blob to message with operaror <<

commore::Log& commore::Log::operator<< ( const commore::ListBlob t)

Add argument list of blob to message with operaror <<

commore::Log& commore::Log::operator<< ( const commore::Tuple t)

Add argument tuple to message with operaror <<

commore::Log& commore::Log::operator<< ( const commore::ListTuple t)

Add argument list of tuple to message with operaror <<

commore::Log& commore::Log::operator<< ( const commore::Symbol s)

Add argument symbol to message with operaror <<

commore::Log& commore::Log::operator<< ( const commore::ListSymbol s)

Add argument list of symbol to message with operaror <<

commore::Log& commore::Log::operator<< ( const commore::StringBuffer t)

Add argument text to message with operaror <<

commore::Log& commore::Log::operator<< ( const commore::AString t)

Add argument string to message with operaror <<

commore::Log& commore::Log::operator<< ( const commore::ListAString t)

Add argument list of string to message with operaror <<

commore::Log& commore::Log::operator<< ( const commore::ListString t)

Add argument list of unicode string to message with operaror <<

commore::Log& commore::Log::operator<< ( const commore::ListBool t)

Add argument list of bool to message with operaror <<

commore::Log& commore::Log::operator<< ( const commore::ListInt t)

Add argument list of int to message with operaror <<

commore::Log& commore::Log::operator<< ( const commore::ListLong t)

Add argument list of long long to message with operaror <<

commore::Log& commore::Log::operator<< ( const commore::ListFloat t)

Add argument list of float to message with operaror <<

commore::Log& commore::Log::operator<< ( const commore::ListDouble t)

Add argument list of double message with operaror <<

commore::Log& commore::Log::operator<< ( const commore::ArrayInt t)

Add argument array of int to message with operaror <<

commore::Log& commore::Log::operator<< ( const commore::ArrayLong t)

Add argument array of long long to message with operaror <<

commore::Log& commore::Log::operator<< ( const commore::ArrayFloat t)

Add argument array of float to message with operaror <<

commore::Log& commore::Log::operator<< ( const commore::ArrayDouble t)

Add argument array of double to message with operaror <<

commore::Log& commore::Log::operator<< ( const commore::ListArrayInt t)

Add argument list of array of int to message with operaror <<

commore::Log& commore::Log::operator<< ( const commore::ListArrayLong t)

Add argument list of array of long long to message with operaror <<

commore::Log& commore::Log::operator<< ( const commore::ListArrayFloat t)

Add argument list of array of float to message with operaror <<

commore::Log& commore::Log::operator<< ( const commore::ListArrayDouble t)

Add argument list of array of double to message with operaror <<

static const AString& commore::Log::toString ( Double  val,
AString dst 
)
static

Convert double to string

Todo:
rename to to_string
static const AString& commore::Log::toString ( Float  val,
AString dst 
)
static

Convert float to string

Todo:
rename to to_string
static const AString& commore::Log::toString ( Long  val,
AString dst 
)
static

Convert long long to string

Todo:
rename to to_string
static const AString& commore::Log::toString ( Int  val,
AString dst 
)
static

Convert int to string

Todo:
rename to to_string
static const AString& commore::Log::toString ( Bool  val,
AString dst 
)
static

Convert bool to string

Todo:
rename to to_string

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