Printer for open_vins that allows for various levels of printing to be done.
More...
#include <print.h>
|
static void | debugPrint (PrintLevel level, const char location[], const char line[], const char *format,...) |
| The print function that prints to stdout. More...
|
|
static void | setPrintLevel (const std::string &level) |
| Set the print level to use for all future printing to stdout. More...
|
|
static void | setPrintLevel (PrintLevel level) |
| Set the print level to use for all future printing to stdout. More...
|
|
|
static constexpr uint32_t | MAX_FILE_PATH_LEGTH = 30 |
| The max length for the file path. This is to avoid very long file paths from. More...
|
|
Printer for open_vins that allows for various levels of printing to be done.
To set the global verbosity level one can do the following:
Definition at line 42 of file print.h.
◆ PrintLevel
The different print levels possible.
- PrintLevel::ALL : All PRINT_XXXX will output to the console
- PrintLevel::DEBUG : "DEBUG", "INFO", "WARNING" and "ERROR" will be printed. "ALL" will be silenced
- PrintLevel::INFO : "INFO", "WARNING" and "ERROR" will be printed. "ALL" and "DEBUG" will be silenced
- PrintLevel::WARNING : "WARNING" and "ERROR" will be printed. "ALL", "DEBUG" and "INFO" will be silenced
- PrintLevel::ERROR : Only "ERROR" will be printed. All the rest are silenced
- PrintLevel::SILENT : All PRINT_XXXX will be silenced.
Enumerator |
---|
ALL | |
DEBUG | |
INFO | |
WARNING | |
ERROR | |
SILENT | |
Definition at line 54 of file print.h.
◆ debugPrint()
void Printer::debugPrint |
( |
PrintLevel |
level, |
|
|
const char |
location[], |
|
|
const char |
line[], |
|
|
const char * |
format, |
|
|
|
... |
|
) |
| |
|
static |
The print function that prints to stdout.
- Parameters
-
level | the print level for this print call |
location | the location the print was made from |
line | the line the print was made from |
format | The printf format |
Definition at line 80 of file print.cpp.
◆ setPrintLevel() [1/2]
void Printer::setPrintLevel |
( |
const std::string & |
level | ) |
|
|
static |
Set the print level to use for all future printing to stdout.
- Parameters
-
level | The debug level to use |
Definition at line 29 of file print.cpp.
◆ setPrintLevel() [2/2]
Set the print level to use for all future printing to stdout.
- Parameters
-
level | The debug level to use |
Definition at line 49 of file print.cpp.
◆ current_print_level
The current print level.
Definition at line 78 of file print.h.
◆ MAX_FILE_PATH_LEGTH
constexpr uint32_t ov_core::Printer::MAX_FILE_PATH_LEGTH = 30 |
|
staticconstexprprivate |
The max length for the file path. This is to avoid very long file paths from.
Definition at line 82 of file print.h.
The documentation for this class was generated from the following files: