HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
onnxruntime::CodeLocation Struct Reference

#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::stringstacktrace
 

Detailed Description

CodeLocation captures information on where in the source code a message came from.

Definition at line 14 of file code_location.h.

Member Enumeration Documentation

Enumerator
kFilename 
kFilenameAndPath 

Definition at line 40 of file code_location.h.

Constructor & Destructor Documentation

onnxruntime::CodeLocation::CodeLocation ( const char *  file_path,
const int  line,
const char *  func 
)
inline
Parameters
file_pathUsually the value of FILE
lineUsually the value of LINE
funcUsually 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_pathUsually the value of FILE
lineUsually the value of LINE
funcUsually the value of PRETTY_FUNCTION or FUNCTION
stacktraceStacktrace from source of message.

Definition at line 30 of file code_location.h.

Member Function Documentation

std::string onnxruntime::CodeLocation::FileNoPath ( ) const
inline

Definition at line 34 of file code_location.h.

std::string onnxruntime::CodeLocation::ToString ( Format  format = Format::kFilename) const
inline

Definition at line 45 of file code_location.h.

Member Data Documentation

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.

const int onnxruntime::CodeLocation::line_num

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.


The documentation for this struct was generated from the following file: