This class represents the location of a logging statement.
More...
#include <locationinfo.h>
|
| static const char *const | NA |
| | When location information is not available the constant NA is returned.
|
| static const char *const | NA_METHOD |
This class represents the location of a logging statement.
◆ LocationInfo() [1/3]
| LocationInfo |
( |
const char *const | fileName, |
|
|
const char *const | functionName, |
|
|
int | lineNumber ) |
◆ LocationInfo() [2/3]
◆ LocationInfo() [3/3]
| LocationInfo |
( |
const LocationInfo & | src | ) |
|
Copy constructor.
- Parameters
-
◆ clear()
Resets location info to default state.
◆ getClassName()
| const std::string getClassName |
( |
| ) |
const |
Return the class name of the call site.
◆ getFileName()
| const char * getFileName |
( |
| ) |
const |
Return the file name of the caller.
- Returns
- file name, may be null.
◆ getLineNumber()
| int getLineNumber |
( |
| ) |
const |
Returns the line number of the caller.
- Returns
- line number, -1 if not available.
◆ getLocationUnavailable()
◆ getMethodName()
| const std::string getMethodName |
( |
| ) |
const |
Returns the method name of the caller.
◆ operator=()
Assignment operator.
- Parameters
-
◆ write()
◆ NA
When location information is not available the constant NA is returned.
Current value of this string constant is ?.
◆ NA_METHOD
| const char* const NA_METHOD |
|
static |
The documentation for this class was generated from the following file: