Represents a source code location. More...
Public Member Functions | |
CodeLocation (const char *fileName, const char *functionName, int lineNumber) | |
CodeLocation (const CodeLocation &other) | |
const CodeLocation & | operator= (CodeLocation rhs) |
const char * | fileName () const |
const char * | shortFileName () const |
const char * | functionName () const |
int | lineNumber () const |
void | swap (CodeLocation &other) |
Represents a source code location.
Typically used with logging, asserts etc. Typically initialized using built-in compiler macros such as __FILE__ and __LINE__.
Note that the string parameters for file name and function must be a static strings with a lifetime that's longer than the lifetime of the CodeLocation object