#include <sourcecontext.h>
Represents a location in source code
◆ SourceContext()
inviwo::SourceContext::SourceContext |
( |
std::string | caller = "", |
|
|
std::string | file = "", |
|
|
std::string | function = "", |
|
|
int | line = 0 ) |
|
inline |
Construct a SourceContext, this is usually not done manually, but rather one of the macros bellow is used to automatically get the right arguments. SourceContext copies its arguments, for a more lightweight version
- See also
- SourceLocation
- Parameters
-
caller | usually the class name of *this in the current scope. |
file | filename path of the source file |
function | name of the function in the current scope |
line | line number in the current source file |
◆ getCaller()
const std::string & inviwo::SourceContext::getCaller |
( |
| ) |
const |
|
inline |
Usually the class name of *this in the current scope.
◆ getFile()
const std::string & inviwo::SourceContext::getFile |
( |
| ) |
const |
|
inline |
The name and path the the source file
◆ getFunction()
const std::string & inviwo::SourceContext::getFunction |
( |
| ) |
const |
|
inline |
Name of the function in the current scope
◆ getLine()
int inviwo::SourceContext::getLine |
( |
| ) |
const |
|
inline |
Line number in the current source file
The documentation for this class was generated from the following file: