fluidvis
Public Member Functions | List of all members
sx::ListLogger Class Reference

#include <Log4SX.h>

Inheritance diagram for sx::ListLogger:
sx::Logger

Public Member Functions

EXL ListLogger ()
 
EXL ~ListLogger ()
 
EXL Loggeroperator<< (const Level level)
 
EXL Loggeroperator<< (const LogMarkup m)
 
EXL Loggeroperator<< (const Annotation a)
 
EXL Loggeroperator<< (char value)
 
EXL Loggeroperator<< (unsigned char value)
 
EXL Loggeroperator<< (short value)
 
EXL Loggeroperator<< (unsigned short value)
 
EXL Loggeroperator<< (int value)
 
EXL Loggeroperator<< (unsigned int value)
 
EXL Loggeroperator<< (long value)
 
EXL Loggeroperator<< (unsigned long value)
 
EXL Loggeroperator<< (float value)
 
EXL Loggeroperator<< (double value)
 
EXL Loggeroperator<< (string value)
 
EXL map< string, ListMarkup > & getMarkups ()
 
EXL Annotation getAnnotationEntry (string ID, unsigned int index)
 
EXL char getCharEntry (string ID, unsigned int index)
 
EXL unsigned char getUcharEntry (string ID, unsigned int index)
 
EXL short getShortEntry (string ID, unsigned int index)
 
EXL unsigned short getUshortEntry (string ID, unsigned int index)
 
EXL int getIntEntry (string ID, unsigned int index)
 
EXL unsigned int getUintEntry (string ID, unsigned int index)
 
EXL long getLongEntry (string ID, unsigned int index)
 
EXL unsigned long getUlongEntry (string ID, unsigned int index)
 
EXL float getFloatEntry (string ID, unsigned int index)
 
EXL double getDoubleEntry (string ID, unsigned int index)
 
EXL string getStringEntry (string ID, unsigned int index)
 
- Public Member Functions inherited from sx::Logger
virtual EXL ~Logger ()
 
EXL void setMinLevel (LogLevel level)
 
EXL LogLevel getMinLevel () const
 
EXL LogLevel getLevel () const
 

Additional Inherited Members

- Static Public Member Functions inherited from sx::Logger
static EXL string newLine ()
 
static EXL void addLogger (string ID, Logger *logger)
 
static EXL void setDefaultLogger (string ID)
 
static EXL Loggerget ()
 
static EXL void deleteLogger (string ID)
 
- Protected Member Functions inherited from sx::Logger
EXL Logger ()
 
bool takeMessage () const
 
- Protected Attributes inherited from sx::Logger
LogLevel minLevel
 
LogLevel level
 

Detailed Description

A Logger, which passes messages to the list compatible with the type of the message.

See also
sx::Logger

Constructor & Destructor Documentation

EXL sx::ListLogger::ListLogger ( )

default constructor

EXL sx::ListLogger::~ListLogger ( )

deconstructor

Member Function Documentation

EXL Annotation sx::ListLogger::getAnnotationEntry ( string  ID,
unsigned int  index 
)

Searches the markup associated with ID, and returns the list entry on position index of the considered list in the markup. If the entry can't be extracted, an exception is thrown.

Parameters
IDidentifyer of the markup
indexindex of the entry in the coresponding list
Returns
entry at position index the list of markup associated to ID
Exceptions
inthe case of an error, an exception of type Exception is thrown
EXL char sx::ListLogger::getCharEntry ( string  ID,
unsigned int  index 
)

Searches the markup associated with ID, and returns the list entry on position index of the considered list in the markup. If the entry can't be extracted, an exception is thrown.

Parameters
IDidentifyer of the markup
indexindex of the entry in the coresponding list
Returns
entry at position index the list of markup associated to ID
Exceptions
inthe case of an error, an exception of type Exception is thrown
EXL double sx::ListLogger::getDoubleEntry ( string  ID,
unsigned int  index 
)

Searches the markup associated with ID, and returns the list entry on position index of the considered list in the markup. If the entry can't be extracted, an exception is thrown.

Parameters
IDidentifyer of the markup
indexindex of the entry in the coresponding list
Returns
entry at position index the list of markup associated to ID
Exceptions
inthe case of an error, an exception of type Exception is thrown
EXL float sx::ListLogger::getFloatEntry ( string  ID,
unsigned int  index 
)

Searches the markup associated with ID, and returns the list entry on position index of the considered list in the markup. If the entry can't be extracted, an exception is thrown.

Parameters
IDidentifyer of the markup
indexindex of the entry in the coresponding list
Returns
entry at position index the list of markup associated to ID
Exceptions
inthe case of an error, an exception of type Exception is thrown
EXL int sx::ListLogger::getIntEntry ( string  ID,
unsigned int  index 
)

Searches the markup associated with ID, and returns the list entry on position index of the considered list in the markup. If the entry can't be extracted, an exception is thrown.

Parameters
IDidentifyer of the markup
indexindex of the entry in the coresponding list
Returns
entry at position index the list of markup associated to ID
Exceptions
inthe case of an error, an exception of type Exception is thrown
EXL long sx::ListLogger::getLongEntry ( string  ID,
unsigned int  index 
)

Searches the markup associated with ID, and returns the list entry on position index of the considered list in the markup. If the entry can't be extracted, an exception is thrown.

Parameters
IDidentifyer of the markup
indexindex of the entry in the coresponding list
Returns
entry at position index the list of markup associated to ID
Exceptions
inthe case of an error, an exception of type Exception is thrown
EXL map<string,ListMarkup>& sx::ListLogger::getMarkups ( )

Returns a map of all markups, each associated with its markup message. Each markup is holding the messages passed to the markup.

Returns
map of all markups
EXL short sx::ListLogger::getShortEntry ( string  ID,
unsigned int  index 
)

Searches the markup associated with ID, and returns the list entry on position index of the considered list in the markup. If the entry can't be extracted, an exception is thrown.

Parameters
IDidentifyer of the markup
indexindex of the entry in the coresponding list
Returns
entry at position index the list of markup associated to ID
Exceptions
inthe case of an error, an exception of type Exception is thrown
EXL string sx::ListLogger::getStringEntry ( string  ID,
unsigned int  index 
)

Searches the markup associated with ID, and returns the list entry on position index of the considered list in the markup. If the entry can't be extracted, an exception is thrown.

Parameters
IDidentifyer of the markup
indexindex of the entry in the coresponding list
Returns
entry at position index the list of markup associated to ID
Exceptions
inthe case of an error, an exception of type Exception is thrown
EXL unsigned char sx::ListLogger::getUcharEntry ( string  ID,
unsigned int  index 
)

Searches the markup associated with ID, and returns the list entry on position index of the considered list in the markup. If the entry can't be extracted, an exception is thrown.

Parameters
IDidentifyer of the markup
indexindex of the entry in the coresponding list
Returns
entry at position index the list of markup associated to ID
Exceptions
inthe case of an error, an exception of type Exception is thrown
EXL unsigned int sx::ListLogger::getUintEntry ( string  ID,
unsigned int  index 
)

Searches the markup associated with ID, and returns the list entry on position index of the considered list in the markup. If the entry can't be extracted, an exception is thrown.

Parameters
IDidentifyer of the markup
indexindex of the entry in the coresponding list
Returns
entry at position index the list of markup associated to ID
Exceptions
inthe case of an error, an exception of type Exception is thrown
EXL unsigned long sx::ListLogger::getUlongEntry ( string  ID,
unsigned int  index 
)

Searches the markup associated with ID, and returns the list entry on position index of the considered list in the markup. If the entry can't be extracted, an exception is thrown.

Parameters
IDidentifyer of the markup
indexindex of the entry in the coresponding list
Returns
entry at position index the list of markup associated to ID
Exceptions
inthe case of an error, an exception of type Exception is thrown
EXL unsigned short sx::ListLogger::getUshortEntry ( string  ID,
unsigned int  index 
)

Searches the markup associated with ID, and returns the list entry on position index of the considered list in the markup. If the entry can't be extracted, an exception is thrown.

Parameters
IDidentifyer of the markup
indexindex of the entry in the coresponding list
Returns
entry at position index the list of markup associated to ID
Exceptions
inthe case of an error, an exception of type Exception is thrown
EXL Logger& sx::ListLogger::operator<< ( const Level  level)
virtual
See also
sx::Logger::operator <<(const Level)

Reimplemented from sx::Logger.

EXL Logger& sx::ListLogger::operator<< ( const LogMarkup  m)
virtual

Appends a ListMarkup equivalent to m to the log, and uses it as the default markup, until a new default markup is set. Messages are always posted to the current default markup.

See also
sx::Logger::operator << (const LogMarkup)

Implements sx::Logger.

EXL Logger& sx::ListLogger::operator<< ( const Annotation  a)
virtual
See also
sx::Logger::operator << (const Annotation)

Implements sx::Logger.

EXL Logger& sx::ListLogger::operator<< ( char  value)
virtual

Pushes value onto the back end of chars.

See also
sx::Logger::operator << (char value)

Implements sx::Logger.

EXL Logger& sx::ListLogger::operator<< ( unsigned char  value)
virtual

Pushes value onto the back end of uchars.

See also
sx::Logger::operator << (unsigned char value)

Implements sx::Logger.

EXL Logger& sx::ListLogger::operator<< ( short  value)
virtual

Pushes value onto the back end of shorts.

See also
sx::Logger::operator << (short value)

Implements sx::Logger.

EXL Logger& sx::ListLogger::operator<< ( unsigned short  value)
virtual

Pushes value onto the back end of ushorts.

See also
sx::Logger::operator << (unsigned short value)

Implements sx::Logger.

EXL Logger& sx::ListLogger::operator<< ( int  value)
virtual

Pushes value onto the back end of ints.

See also
sx::Logger::operator << (int value)

Implements sx::Logger.

EXL Logger& sx::ListLogger::operator<< ( unsigned int  value)
virtual

Pushes value onto the back end of uints.

See also
sx::Logger::operator << (unsigned int value)

Implements sx::Logger.

EXL Logger& sx::ListLogger::operator<< ( long  value)
virtual

Pushes value onto the back end of longs.

See also
sx::Logger::operator << (long value)

Implements sx::Logger.

EXL Logger& sx::ListLogger::operator<< ( unsigned long  value)
virtual

Pushes value onto the back end of ulongs.

See also
sx::Logger::operator << (unsigned long value)

Implements sx::Logger.

EXL Logger& sx::ListLogger::operator<< ( float  value)
virtual

Pushes value onto the back end of floats.

See also
sx::Logger::operator << (float value)

Implements sx::Logger.

EXL Logger& sx::ListLogger::operator<< ( double  value)
virtual

Pushes value onto the back end of doubles.

See also
sx::Logger::operator << (double value)

Implements sx::Logger.

EXL Logger& sx::ListLogger::operator<< ( string  value)
virtual

Pushes value onto the back end of strings.

See also
sx::Logger::operator << (const string value)

Implements sx::Logger.


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