Map Diagnostic Context.
More...
#include <mdc.hpp>
Map Diagnostic Context.
Logger diagntostic context for logger (or other usage)
- Since
- 0.1
- Author
- Vincent Lachenal
◆ MapDiagnosticContext() [1/3]
| anch::log::MapDiagnosticContext::MapDiagnosticContext |
( |
| ) |
|
◆ MapDiagnosticContext() [2/3]
| anch::log::MapDiagnosticContext::MapDiagnosticContext |
( |
const MapDiagnosticContext & | | ) |
|
|
delete |
◆ MapDiagnosticContext() [3/3]
| anch::log::MapDiagnosticContext::MapDiagnosticContext |
( |
MapDiagnosticContext && | | ) |
|
|
delete |
◆ ~MapDiagnosticContext()
| virtual anch::log::MapDiagnosticContext::~MapDiagnosticContext |
( |
| ) |
|
|
virtual |
◆ add()
| void anch::log::MapDiagnosticContext::add |
( |
const std::string & | key, |
|
|
const std::string & | value ) |
|
noexcept |
Add value to context if not exists
- Parameters
-
| key | the key |
| value | the value |
◆ copy()
Copy diagnostics context from another one but thread identifier and constants
- Parameters
-
| other | the diagnostic context to copy |
◆ get()
| const std::map< std::string, std::string > & anch::log::MapDiagnosticContext::get |
( |
| ) |
const |
|
noexcept |
Retrieve the map diagnostic context
- Returns
- the map diagnostic context
◆ put()
| void anch::log::MapDiagnosticContext::put |
( |
const std::string & | key, |
|
|
const std::string & | value ) |
|
noexcept |
Add or overwrite value to context
- Parameters
-
| key | the key |
| value | the value |
◆ remove()
| void anch::log::MapDiagnosticContext::remove |
( |
const std::string & | key | ) |
|
|
noexcept |
Remove value from context
- Parameters
-
◆ reset()
| void anch::log::MapDiagnosticContext::reset |
( |
| ) |
|
|
noexcept |
Reset diagnostics context but thread identifier and constants
The documentation for this class was generated from the following file: