LocationInfo Class Reference
This class represents the location of a logging statement.
More...
List of all members.
Detailed Description
This class represents the location of a logging statement.
Constructor & Destructor Documentation
LocationInfo |
( |
const char *const |
fileName, |
|
|
const char *const |
functionName, |
|
|
int |
lineNumber | |
|
) |
| | |
Copy constructor.
- Parameters:
-
Member Function Documentation
Resets location info to default state.
const std::string getClassName |
( |
|
) |
const |
Return the class name of the call site.
const char* getFileName |
( |
|
) |
const |
Return the file name of the caller.
- Returns:
- file name, may be null.
int getLineNumber |
( |
|
) |
const |
Returns the line number of the caller.
- Returns:
- line number, -1 if not available.
static const LocationInfo& getLocationUnavailable |
( |
|
) |
[static] |
const std::string getMethodName |
( |
|
) |
const |
Returns the method name of the caller.
Assignment operator.
- Parameters:
-
Member Data Documentation
const char* const NA [static] |
When location information is not available the constant NA
is returned.
Current value of this string constant is ?.
The documentation for this class was generated from the following file: