HDK
|
#include <code_location.h>
Public Types | |
enum | Format { kFilename, kFilenameAndPath } |
Public Member Functions | |
CodeLocation (const char *file_path, const int line, const char *func) | |
CodeLocation (const char *file_path, const int line, const char *func, const std::vector< std::string > &stacktrace) | |
std::string | FileNoPath () const |
std::string | ToString (Format format=Format::kFilename) const |
Public Attributes | |
const std::string | file_and_path |
const int | line_num |
const std::string | function |
const std::vector< std::string > | stacktrace |
CodeLocation captures information on where in the source code a message came from.
Definition at line 14 of file code_location.h.
Enumerator | |
---|---|
kFilename | |
kFilenameAndPath |
Definition at line 40 of file code_location.h.
|
inline |
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.
|
inline |
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.
|
inline |
Definition at line 34 of file code_location.h.
|
inline |
Definition at line 45 of file code_location.h.
const std::string onnxruntime::CodeLocation::file_and_path |
Definition at line 51 of file code_location.h.
const std::string onnxruntime::CodeLocation::function |
Definition at line 54 of file code_location.h.
Definition at line 52 of file code_location.h.
const std::vector<std::string> onnxruntime::CodeLocation::stacktrace |
Definition at line 55 of file code_location.h.