Go to the documentation of this file.
32 else if (level ==
"DEBUG")
34 else if (level ==
"INFO")
36 else if (level ==
"WARNING")
38 else if (level ==
"ERROR")
40 else if (level ==
"SILENT")
43 std::cout <<
"Invalid print level requested: " << level << std::endl;
44 std::cout <<
"Valid levels are: ALL, DEBUG, INFO, WARNING, ERROR, SILENT" << std::endl;
45 std::exit(EXIT_FAILURE);
51 std::cout <<
"Setting printing level to: ";
56 case PrintLevel::DEBUG:
59 case PrintLevel::INFO:
62 case PrintLevel::WARNING:
63 std::cout <<
"WARNING";
65 case PrintLevel::ERROR:
68 case PrintLevel::SILENT:
69 std::cout <<
"SILENT";
72 std::cout << std::endl;
73 std::cout <<
"Invalid print level requested: " << level << std::endl;
74 std::cout <<
"Valid levels are: ALL, DEBUG, INFO, WARNING, ERROR, SILENT" << std::endl;
75 std::exit(EXIT_FAILURE);
77 std::cout << std::endl;
89 std::string path(location);
90 std::string base_filename = path.substr(path.find_last_of(
"/\\") + 1);
92 printf(
"%s", base_filename.substr(base_filename.size() -
MAX_FILE_PATH_LEGTH, base_filename.size()).c_str());
94 printf(
"%s", base_filename.c_str());
101 va_start(
args, format);
102 vprintf(format,
args);
PrintLevel
The different print levels possible.
static void debugPrint(PrintLevel level, const char location[], const char line[], const char *format,...)
The print function that prints to stdout.
static PrintLevel current_print_level
The current print level.
static void setPrintLevel(const std::string &level)
Set the print level to use for all future printing to stdout.
static constexpr uint32_t MAX_FILE_PATH_LEGTH
The max length for the file path. This is to avoid very long file paths from.
Core algorithms for OpenVINS.
ov_core
Author(s): Patrick Geneva
, Kevin Eckenhoff , Guoquan Huang
autogenerated on Mon Jan 22 2024 03:08:17