My Project
|
Public Member Functions | |
LogStream () | |
LogStream (std::string message, std::string fileName, int lineNo, std::string functionName, bool isError, bool usePrefix) | |
LogStream (std::ostringstream os, std::string fileName, int lineNo, std::string functionName, bool isError, bool usePrefix) | |
virtual | ~LogStream () |
void | setLogStreamMessage (std::string message, std::string fileName, int lineNo, std::string functionName, bool isError, bool usePrefix) |
void | setLogStreamMessage (std::ostringstream &os, std::string fileName, int lineNo, std::string functionName, bool isError, bool usePrefix) |
void | appendLogStreamMessage (std::string message, std::string fileName, int lineNo, std::string functionName, bool isError, bool usePrefix) |
void | appendLogStreamMessage (std::ostringstream &os, std::string fileName, int lineNo, std::string functionName, bool isError, bool usePrefix) |
void | initLogStreamMessage (std::string fileName, int lineNo, std::string functionName, bool isError, bool usePrefix) |
void | setSysLogStreamError (std::string sysFunction, std::string fileName, int lineNo, std::string functionName, bool isError, bool usePrefix) |
void | appendSysLogStreamError (std::string sysFunction, std::string fileName, int lineNo, std::string functionName, bool isError, bool usePrefix) |
std::string | getMessage () |
bool | isError () |
void | clear () |
void | finish () |
void | report () |
void | log () |
LogStream::LogStream | ( | ) |
Constructor.
....................................................................... Constructor.
gcp::util::LogStream::LogStream | ( | std::string | message, |
std::string | fileName, | ||
int | lineNo, | ||
std::string | functionName, | ||
bool | isError, | ||
bool | usePrefix | ||
) |
Constructor with message.
gcp::util::LogStream::LogStream | ( | std::ostringstream | os, |
std::string | fileName, | ||
int | lineNo, | ||
std::string | functionName, | ||
bool | isError, | ||
bool | usePrefix | ||
) |
Constructor with stream.
|
virtual |
Destructor.
....................................................................... Destructor.
void gcp::util::LogStream::appendLogStreamMessage | ( | std::string | message, |
std::string | fileName, | ||
int | lineNo, | ||
std::string | functionName, | ||
bool | isError, | ||
bool | usePrefix | ||
) |
Append a message to the stream.
void gcp::util::LogStream::appendLogStreamMessage | ( | std::ostringstream & | os, |
std::string | fileName, | ||
int | lineNo, | ||
std::string | functionName, | ||
bool | isError, | ||
bool | usePrefix | ||
) |
Append a message to the stream.
void LogStream::appendSysLogStreamError | ( | std::string | sysFunction, |
std::string | fileName, | ||
int | lineNo, | ||
std::string | functionName, | ||
bool | isError, | ||
bool | usePrefix | ||
) |
Append a system error message to the stream.
....................................................................... Append a system error message to the stream.
void LogStream::clear | ( | ) |
Clear the error status and message string.
....................................................................... Clear the error status and any messages in our stream buffer.
void LogStream::finish | ( | ) |
Append an end-of-string token to the string.
....................................................................... Cap off an accumulating error message.
string LogStream::getMessage | ( | ) |
Return the message as a string.
....................................................................... Cap off any message which has been accumulating in our stream buffer & return it as a string.
void LogStream::initLogStreamMessage | ( | std::string | fileName, |
int | lineNo, | ||
std::string | functionName, | ||
bool | isError, | ||
bool | usePrefix | ||
) |
Initialize a message.
....................................................................... Initializea message to the stream.
bool LogStream::isError | ( | ) |
Return true if this is an error message.
....................................................................... Report if an error has been pushed onto the stream
void LogStream::log | ( | ) |
Log a message
....................................................................... Log a message
void LogStream::report | ( | ) |
Report a message.
....................................................................... Log a message
void gcp::util::LogStream::setLogStreamMessage | ( | std::string | message, |
std::string | fileName, | ||
int | lineNo, | ||
std::string | functionName, | ||
bool | isError, | ||
bool | usePrefix | ||
) |
Set a message to the stream.
void gcp::util::LogStream::setLogStreamMessage | ( | std::ostringstream & | os, |
std::string | fileName, | ||
int | lineNo, | ||
std::string | functionName, | ||
bool | isError, | ||
bool | usePrefix | ||
) |
Set the message.
void LogStream::setSysLogStreamError | ( | std::string | sysFunction, |
std::string | fileName, | ||
int | lineNo, | ||
std::string | functionName, | ||
bool | isError, | ||
bool | usePrefix | ||
) |
Set the message to the last system error message.
....................................................................... Set the message to the last system error message.