HydraExpress™ C++ 2020 |
HydraExpress™ C++ API Reference Guide |
Product Documentation: HydraExpress C++ Documentation Home |
Constructs log messages, provides insertion operators for basic types, and can be extended to support user-defined types as well. More...
#include <rwsf/core/LogMessage.h>
Public Member Functions | |
LogMessage () | |
void | append (const std::string &str) |
virtual std::string | str () const |
Related Functions | |
(Note that these are not member functions.) | |
rwsf::LogMessage & | operator<< (rwsf::LogMessage &, bool) |
rwsf::LogMessage & | operator<< (rwsf::LogMessage &, char) |
rwsf::LogMessage & | operator<< (rwsf::LogMessage &, unsigned char) |
rwsf::LogMessage & | operator<< (rwsf::LogMessage &, short) |
rwsf::LogMessage & | operator<< (rwsf::LogMessage &, unsigned short) |
rwsf::LogMessage & | operator<< (rwsf::LogMessage &, int) |
rwsf::LogMessage & | operator<< (rwsf::LogMessage &, unsigned int) |
rwsf::LogMessage & | operator<< (rwsf::LogMessage &, long) |
rwsf::LogMessage & | operator<< (rwsf::LogMessage &, unsigned long) |
rwsf::LogMessage & | operator<< (rwsf::LogMessage &, float) |
rwsf::LogMessage & | operator<< (rwsf::LogMessage &, double) |
rwsf::LogMessage & | operator<< (rwsf::LogMessage &, const char *) |
rwsf::LogMessage & | operator<< (rwsf::LogMessage &, const std::string &) |
rwsf::LogMessage is a utility class for constructing log messages. LogMessage provides insertion operators for basic types, and can be extended to support user-defined types as well.
The following example demonstrates how to create a simple message and insert a basic data type:
rwsf::LogMessage::LogMessage | ( | ) |
Default constructor. Creates a blank message.
void rwsf::LogMessage::append | ( | const std::string & | str | ) |
Appends text to the log message.
|
virtual |
Returns the prepared message as a string
.
|
related |
Insertion operator for appending to a LogMessage instance.
|
related |
Insertion operator for appending to a LogMessage instance.
|
related |
Insertion operator for appending to a LogMessage instance.
|
related |
Insertion operator for appending to a LogMessage instance.
|
related |
Insertion operator for appending to a LogMessage instance.
|
related |
Insertion operator for appending to a LogMessage instance.
|
related |
Insertion operator for appending to a LogMessage instance.
|
related |
Insertion operator for appending to a LogMessage instance.
|
related |
Insertion operator for appending to a LogMessage instance.
|
related |
Insertion operator for appending to a LogMessage instance.
|
related |
Insertion operator for appending to a LogMessage instance.
|
related |
Insertion operator for appending to a LogMessage instance.
|
related |
Insertion operator for appending to a LogMessage instance.
Copyright © 2020 Rogue Wave Software, Inc. All Rights Reserved. |