#include <code_location.h>
CodeLocation captures information on where in the source code a message came from.
Definition at line 14 of file code_location.h.
onnxruntime::CodeLocation::CodeLocation |
( |
const char * |
file_path, |
|
|
const int |
line, |
|
|
const char * |
func |
|
) |
| |
|
inline |
- Parameters
-
file_path | Usually the value of FILE |
line | Usually the value of LINE |
func | Usually the value of PRETTY_FUNCTION or FUNCTION |
Definition at line 20 of file code_location.h.
onnxruntime::CodeLocation::CodeLocation |
( |
const char * |
file_path, |
|
|
const int |
line, |
|
|
const char * |
func, |
|
|
const std::vector< std::string > & |
stacktrace |
|
) |
| |
|
inline |
- Parameters
-
file_path | Usually the value of FILE |
line | Usually the value of LINE |
func | Usually the value of PRETTY_FUNCTION or FUNCTION |
stacktrace | Stacktrace from source of message. |
Definition at line 30 of file code_location.h.
std::string onnxruntime::CodeLocation::FileNoPath |
( |
| ) |
const |
|
inline |
std::string onnxruntime::CodeLocation::ToString |
( |
Format |
format = Format::kFilename | ) |
const |
|
inline |
const std::string onnxruntime::CodeLocation::file_and_path |
const int onnxruntime::CodeLocation::line_num |
const std::vector<std::string> onnxruntime::CodeLocation::stacktrace |
The documentation for this struct was generated from the following file: