|
My Project
|
This class represents the location of a logging statement. More...
#include <Log.h>
Public Member Functions | |
| LocationInfo (const char *const fileName, const char *const functionName, int lineNumber) | |
| Constructor. More... | |
| LocationInfo () | |
| Default constructor. | |
| LocationInfo (const LocationInfo &src) | |
| Copy constructor. More... | |
| LocationInfo & | operator= (const LocationInfo &src) |
| Assignment operator. More... | |
| void | clear () |
| Resets location info to default state. | |
| const std::string | getClassName () |
| Return the class name of the call site. More... | |
| const char * | getFileName () |
| Return the file name of the caller. More... | |
| int | getLineNumber () |
| Returns the line number of the caller. More... | |
| const std::string | getMethodName () |
| Returns the method name of the caller. More... | |
| void | write (CLogger *pOutput) const |
| write to log file. More... | |
Static Public Member Functions | |
| static const LocationInfo & | getLocationUnavailable () |
Static Public Attributes | |
| static const char *const | NA = "?" |
When location information is not available the constant NA is returned. More... | |
| static const char *const | NA_METHOD = "?::?" |
This class represents the location of a logging statement.
| ParaEngine::LogDetail::LocationInfo::LocationInfo | ( | const char *const | fileName, |
| const char *const | functionName, | ||
| int | lineNumber | ||
| ) |
Constructor.
| ParaEngine::LogDetail::LocationInfo::LocationInfo | ( | const LocationInfo & | src | ) |
Copy constructor.
| src | source location |
| const std::string ParaEngine::LogDetail::LocationInfo::getClassName | ( | ) |
Return the class name of the call site.
| const char * ParaEngine::LogDetail::LocationInfo::getFileName | ( | ) |
Return the file name of the caller.
| int ParaEngine::LogDetail::LocationInfo::getLineNumber | ( | ) |
Returns the line number of the caller.
| const std::string ParaEngine::LogDetail::LocationInfo::getMethodName | ( | ) |
Returns the method name of the caller.
| LocationInfo & ParaEngine::LogDetail::LocationInfo::operator= | ( | const LocationInfo & | src | ) |
Assignment operator.
| src | source location |
| void ParaEngine::LogDetail::LocationInfo::write | ( | CLogger * | pOutput | ) | const |
write to log file.
|
static |
When location information is not available the constant NA is returned.
Current value of this string constant is ?.
1.8.12