Public Member Functions | Public Attributes | List of all members
Tests::LoggerMock Class Reference
Inheritance diagram for Tests::LoggerMock:
Inheritance graph

Public Member Functions

std::string getDate (void)
void header (int level)
 Message prefix appender function. More...
 LoggerMock (RTC::LogStreamBuf *streambuf)
void setDateFormat (const char *format)
void setName (const char *name)
int strToLevel (const char *level)
std::string test_string (void)
virtual ~LoggerMock (void)
- Public Member Functions inherited from RTC::Logger
 Logger (const char *name="")
 Constructor. More...
 Logger (LogStreamBuf *streambuf)
 Constructor. More...
void setDateFormat (const char *format)
 Set date/time format for adding the header. More...
bool setLevel (const char *level)
 Set log level by string. More...
void setName (const char *name)
 Set suffix of date/time string of header. More...
virtual ~Logger (void)
 Virtual destructor. More...
- Public Member Functions inherited from coil::log_stream< _CharT, _Traits >
void disableLock ()
 Disable the lock mode. More...
void enableLock ()
 Enable the lock mode. More...
int getLevel () const
 Get the log level. More...
bool isValid (int level) const
 Log level effective check. More...
ostream_typelevel (int level)
 Acquire log stream. More...
void lock ()
 Acquire log lock Acquire log lock when the lock mode is set. More...
 log_stream (streambuf_type *sb, int levelmin, int levelmax, int level)
 Constructor. More...
bool setLevel (int level)
 Set the log level. More...
void unlock ()
 Release the log lock Release the log lock when the lock mode is set. More...

Public Attributes

std::string mock_m_dateFormat
std::string mock_m_name

Additional Inherited Members

- Public Types inherited from RTC::Logger
enum  {
- Public Types inherited from coil::log_stream< _CharT, _Traits >
typedef _CharT char_type
typedef coil::Guard< MutexGuard
typedef coil::Mutex Mutex
typedef std::basic_ostream< char_type, traits_typeostream_type
typedef std::basic_streambuf< char_type, traits_typestreambuf_type
typedef _Traits traits_type
- Static Public Attributes inherited from coil::log_stream< _CharT, _Traits >
static bool m_lockEnable = true
 Lock enable mode. More...
static Mutex m_mutex
 Mutual exclusion object. More...
- Protected Member Functions inherited from RTC::Logger
std::string getDate (void)
 Get the current formatted date/time string Get the current datetime described by specified format. More...
int strToLevel (const char *level)
 Set the log level Set the log level corresponding to the given string. More...
- Protected Member Functions inherited from coil::log_stream< _CharT, _Traits >
 log_stream ()
 Default constructor. More...
 log_stream (const log_stream &x)
 Copy Constructor. More...
log_streamoperator= (const log_stream &x)
 Assignment operator. More...
 ~log_stream ()
 Destructor. More...

Detailed Description

Definition at line 46 of file SystemLoggerTests.cpp.

Constructor & Destructor Documentation

Tests::LoggerMock::LoggerMock ( RTC::LogStreamBuf streambuf)

Definition at line 50 of file SystemLoggerTests.cpp.

virtual Tests::LoggerMock::~LoggerMock ( void  )

Definition at line 52 of file SystemLoggerTests.cpp.

Member Function Documentation

std::string Tests::LoggerMock::getDate ( void  )

Definition at line 78 of file SystemLoggerTests.cpp.

void Tests::LoggerMock::header ( int  level)

Message prefix appender function.

Subclasses of this class should override this operation, and this function should be defined to append some prefix to the log messages.

Reimplemented from RTC::Logger.

Definition at line 71 of file SystemLoggerTests.cpp.

void Tests::LoggerMock::setDateFormat ( const char *  format)

Definition at line 55 of file SystemLoggerTests.cpp.

void Tests::LoggerMock::setName ( const char *  name)

Definition at line 63 of file SystemLoggerTests.cpp.

int Tests::LoggerMock::strToLevel ( const char *  level)

Definition at line 84 of file SystemLoggerTests.cpp.

std::string Tests::LoggerMock::test_string ( void  )

Definition at line 91 of file SystemLoggerTests.cpp.

Member Data Documentation

std::string Tests::LoggerMock::mock_m_dateFormat

Definition at line 102 of file SystemLoggerTests.cpp.

std::string Tests::LoggerMock::mock_m_name

Definition at line 101 of file SystemLoggerTests.cpp.

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

Author(s): Noriaki Ando
autogenerated on Mon Jun 10 2019 14:08:05