ifw  0.0.1-dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
scxml4cpp::Log< T > Class Template Reference

#include <Log.h>

Public Member Functions

 Log ()
 
virtual ~Log ()
 
std::ostringstream & Get (const int level=LOG_LEVEL_INFO)
 
 Log ()
 
virtual ~Log ()
 
std::ostringstream & Get (const int level=LOG_LEVEL_INFO)
 
 Log ()
 
virtual ~Log ()
 
std::ostringstream & Get (const int level=LOG_LEVEL_INFO)
 

Static Public Member Functions

static int & ReportingLevel ()
 
static std::string ToString (const int level)
 
static int FromString (const std::string &level)
 
static int & ReportingLevel ()
 
static std::string ToString (const int level)
 
static int FromString (const std::string &level)
 
static int & ReportingLevel ()
 
static std::string ToString (const int level)
 
static int FromString (const std::string &level)
 

Protected Attributes

std::ostringstream os
 

Constructor & Destructor Documentation

template<typename T >
scxml4cpp::Log< T >::Log ( )
inline
template<typename T >
virtual scxml4cpp::Log< T >::~Log ( )
inlinevirtual

In the destructor print out the message.

template<typename T >
scxml4cpp::Log< T >::Log ( )
inline
template<typename T >
virtual scxml4cpp::Log< T >::~Log ( )
inlinevirtual

In the destructor print out the message.

template<typename T >
scxml4cpp::Log< T >::Log ( )
inline
template<typename T >
virtual scxml4cpp::Log< T >::~Log ( )
inlinevirtual

In the destructor print out the message.

Member Function Documentation

template<typename T >
static int scxml4cpp::Log< T >::FromString ( const std::string &  level)
inlinestatic
Returns
the Log Level number from the Log Level name.
template<typename T >
static int scxml4cpp::Log< T >::FromString ( const std::string &  level)
inlinestatic
Returns
the Log Level number from the Log Level name.
template<typename T >
static int scxml4cpp::Log< T >::FromString ( const std::string &  level)
inlinestatic
Returns
the Log Level number from the Log Level name.
template<typename T >
std::ostringstream& scxml4cpp::Log< T >::Get ( const int  level = LOG_LEVEL_INFO)
inline
Parameters
[in]levelLogging level.
Returns
an output stream with time stamp and logging level.
template<typename T >
std::ostringstream& scxml4cpp::Log< T >::Get ( const int  level = LOG_LEVEL_INFO)
inline
Parameters
[in]levelLogging level.
Returns
an output stream with time stamp and logging level.
template<typename T >
std::ostringstream& scxml4cpp::Log< T >::Get ( const int  level = LOG_LEVEL_INFO)
inline
Parameters
[in]levelLogging level.
Returns
an output stream with time stamp and logging level.
template<typename T >
static int& scxml4cpp::Log< T >::ReportingLevel ( )
inlinestatic
Returns
The current logging level. Default is logINFO.
template<typename T >
static int& scxml4cpp::Log< T >::ReportingLevel ( )
inlinestatic
Returns
The current logging level. Default is logINFO.
template<typename T >
static int& scxml4cpp::Log< T >::ReportingLevel ( )
inlinestatic
Returns
The current logging level. Default is logINFO.
template<typename T >
static std::string scxml4cpp::Log< T >::ToString ( const int  level)
inlinestatic
Returns
the Log Level name from the Log Level number.
template<typename T >
static std::string scxml4cpp::Log< T >::ToString ( const int  level)
inlinestatic
Returns
the Log Level name from the Log Level number.
template<typename T >
static std::string scxml4cpp::Log< T >::ToString ( const int  level)
inlinestatic
Returns
the Log Level name from the Log Level number.

Member Data Documentation

template<typename T >
std::ostringstream scxml4cpp::Log< T >::os
protected

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