1 #ifndef OPENPOSE_UTILITIES_ERROR_AND_LOG_HPP
2 #define OPENPOSE_UTILITIES_ERROR_AND_LOG_HPP
24 std::ostringstream oss;
42 const std::string& message,
const int line = -1,
const std::string&
function =
"",
43 const std::string& file =
"");
47 const T& message,
const int line = -1,
const std::string&
function =
"",
const std::string& file =
"")
56 const std::string& message,
const int line = -1,
const std::string&
function =
"",
57 const std::string& file =
"");
61 const T& message,
const int line = -1,
const std::string&
function =
"",
const std::string& file =
"")
68 const std::string& message,
const int line = -1,
const std::string&
function =
"",
69 const std::string& file =
"");
73 const T& message,
const int line = -1,
const std::string&
function =
"",
const std::string& file =
"")
83 const std::string&
function =
"",
const std::string& file =
"");
88 const std::string&
function =
"",
const std::string& file =
"")
99 const std::string&
function =
"",
const std::string& file =
"")
102 opLog(message, priority, line,
function, file);
113 namespace ConfigureError
121 namespace ConfigureLog
#define UNUSED(unusedVariable)
OP_API std::string getThreadId()
OP_API void error(const std::string &message, const int line=-1, const std::string &function="", const std::string &file="")
OP_API void errorWorker(const std::string &message, const int line=-1, const std::string &function="", const std::string &file="")
OP_API void setMainThread()
OP_API void errorDestructor(const std::string &message, const int line=-1, const std::string &function="", const std::string &file="")
OP_API void checkWorkerErrors()
void opLogIfDebug(const T &message, const Priority priority=Priority::Max, const int line=-1, const std::string &function="", const std::string &file="")
OP_API void opLog(const std::string &message, const Priority priority=Priority::Max, const int line=-1, const std::string &function="", const std::string &file="")
OP_API bool getIfNotInMainThreadOrEmpty()
OP_API bool getIfInMainThreadOrEmpty()
std::string tToString(const T &message)