KISSCPP
a C++ library for rapid application development
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Types | Public Member Functions | List of all members
kisscpp::LogStream Class Reference

#include <logstream.hpp>

Public Types

typedef LogStream &(* manip_func )(LogStream &)
 
typedef LogStream &(* manip_func1 )(LogStream &, const bool permanent)
 

Public Member Functions

 LogStream (manip_func1 manip=info_normal)
 
 LogStream (manip_func1 manip, const std::string &src)
 
 LogStream (const std::string &src)
 
 LogStream (const std::string &src, const std::string &path, const bool log2console=false, const unsigned int i=DEFAULT_MAX_BUFF_SIZE)
 
 LogStream (const LogStream &o)
 
 ~LogStream ()
 
LogStreamoperator= (const LogStream &o)
 
LogStreamoperator<< (manip_func1 f)
 
LogStreamoperator<< (manip_func f)
 
LogStreamoperator<< (const std::string &v)
 
LogStreamoperator<< (const char v)
 
LogStreamoperator<< (const short v)
 
LogStreamoperator<< (const int v)
 
LogStreamoperator<< (const long v)
 
LogStreamoperator<< (const float v)
 
LogStreamoperator<< (const double v)
 
LogStreamoperator<< (const long double v)
 
LogStreamoperator<< (const u_char v)
 
LogStreamoperator<< (const u_short v)
 
LogStreamoperator<< (const u_int v)
 
LogStreamoperator<< (const u_long v)
 
LogStreamoperator<< (const unsigned long long v)
 
LogStreamflush ()
 
LogStreamendl ()
 
LogStreamdec ()
 
LogStreamhex ()
 
LogStreamoct ()
 
LogStreambase ()
 
log_type getMessageType () const throw ()
 
log_severity getSeverity () const throw ()
 
const std::string & getEntityName () const throw ()
 
const std::string & getSource () const throw ()
 
LogStreamSettingsgetPermSettings ()
 
LogStreamSettingsgetTempSettings ()
 
LogStreamsetMessageType (std::string mt, const bool permanent=false)
 
LogStreamsetSeverity (std::string ms, const bool permanent=false)
 
LogStreamsetMessageType (log_type mt, const bool permanent=false)
 
LogStreamsetSeverity (log_severity ms, const bool permanent=false)
 
LogStreamsetEntityName (const std::string &en, const bool permanent=false)
 
LogStreamsetSource (const std::string &s, const bool permanent=false)
 
LogStreamsetLevel (manip_func1 f)
 
void setOutFilePath (std::string path)
 
void setLog2consoleFlag (bool b)
 
void set2ReOpen ()
 
void setMaxBufferSize (unsigned int i)
 

Member Typedef Documentation

typedef LogStream&(* kisscpp::LogStream::manip_func)(LogStream &)
typedef LogStream&(* kisscpp::LogStream::manip_func1)(LogStream &, const bool permanent)

Constructor & Destructor Documentation

kisscpp::LogStream::LogStream ( manip_func1  manip = info_normal)
inlineexplicit
kisscpp::LogStream::LogStream ( manip_func1  manip,
const std::string &  src 
)
inline
kisscpp::LogStream::LogStream ( const std::string &  src)
inline

Here is the call graph for this function:

kisscpp::LogStream::LogStream ( const std::string &  src,
const std::string &  path,
const bool  log2console = false,
const unsigned int  i = DEFAULT_MAX_BUFF_SIZE 
)
inline

Here is the call graph for this function:

kisscpp::LogStream::LogStream ( const LogStream o)
inline
kisscpp::LogStream::~LogStream ( )
inline

Here is the call graph for this function:

Member Function Documentation

LogStream& kisscpp::LogStream::base ( )
inline

Here is the caller graph for this function:

LogStream& kisscpp::LogStream::dec ( )
inline

Here is the call graph for this function:

Here is the caller graph for this function:

LogStream& kisscpp::LogStream::endl ( )
inline

Here is the caller graph for this function:

LogStream& kisscpp::LogStream::flush ( )
inline

Here is the caller graph for this function:

const std::string& kisscpp::LogStream::getEntityName ( ) const
throw (
)
inline
log_type kisscpp::LogStream::getMessageType ( ) const
throw (
)
inline
LogStreamSettings& kisscpp::LogStream::getPermSettings ( )
inline
log_severity kisscpp::LogStream::getSeverity ( ) const
throw (
)
inline
const std::string& kisscpp::LogStream::getSource ( ) const
throw (
)
inline
LogStreamSettings& kisscpp::LogStream::getTempSettings ( )
inline
LogStream& kisscpp::LogStream::hex ( )
inline

Here is the call graph for this function:

Here is the caller graph for this function:

LogStream& kisscpp::LogStream::oct ( )
inline

Here is the call graph for this function:

Here is the caller graph for this function:

LogStream& kisscpp::LogStream::operator<< ( manip_func1  f)
inline
LogStream& kisscpp::LogStream::operator<< ( manip_func  f)
inline
LogStream& kisscpp::LogStream::operator<< ( const std::string &  v)
inline
LogStream& kisscpp::LogStream::operator<< ( const char  v)
inline
LogStream& kisscpp::LogStream::operator<< ( const short  v)
inline
LogStream& kisscpp::LogStream::operator<< ( const int  v)
inline
LogStream& kisscpp::LogStream::operator<< ( const long  v)
inline
LogStream& kisscpp::LogStream::operator<< ( const float  v)
inline
LogStream& kisscpp::LogStream::operator<< ( const double  v)
inline
LogStream& kisscpp::LogStream::operator<< ( const long double  v)
inline
LogStream& kisscpp::LogStream::operator<< ( const u_char  v)
inline
LogStream& kisscpp::LogStream::operator<< ( const u_short  v)
inline
LogStream& kisscpp::LogStream::operator<< ( const u_int  v)
inline
LogStream& kisscpp::LogStream::operator<< ( const u_long  v)
inline
LogStream& kisscpp::LogStream::operator<< ( const unsigned long long  v)
inline
LogStream& kisscpp::LogStream::operator= ( const LogStream o)
inline
void kisscpp::LogStream::set2ReOpen ( )
LogStream& kisscpp::LogStream::setEntityName ( const std::string &  en,
const bool  permanent = false 
)
inline

Here is the call graph for this function:

Here is the caller graph for this function:

LogStream& kisscpp::LogStream::setLevel ( manip_func1  f)
inline
void kisscpp::LogStream::setLog2consoleFlag ( bool  b)
inline
void kisscpp::LogStream::setMaxBufferSize ( unsigned int  i)
inline
LogStream & kisscpp::LogStream::setMessageType ( std::string  mt,
const bool  permanent = false 
)

Here is the caller graph for this function:

LogStream& kisscpp::LogStream::setMessageType ( log_type  mt,
const bool  permanent = false 
)
inline

Here is the call graph for this function:

void kisscpp::LogStream::setOutFilePath ( std::string  path)
inline
LogStream & kisscpp::LogStream::setSeverity ( std::string  ms,
const bool  permanent = false 
)

Here is the caller graph for this function:

LogStream& kisscpp::LogStream::setSeverity ( log_severity  ms,
const bool  permanent = false 
)
inline

Here is the call graph for this function:

LogStream& kisscpp::LogStream::setSource ( const std::string &  s,
const bool  permanent = false 
)
inline

Here is the call graph for this function:

Here is the caller graph for this function:


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