WarpX
|
Classes | |
class | WarnManager |
Enumerations | |
enum class | WarnPriority { low , medium , high } |
Functions | |
WarnManager & | GetWMInstance () |
Helper function to abbreviate the call to get a WarnManager instance. More... | |
void | WMRecordWarning (const std::string &topic, const std::string &text, const WarnPriority &priority=WarnPriority::medium) |
Helper function to abbreviate the call to WarnManager::GetInstance().RecordWarning (recording a warning message is thread-safe) More... | |
|
strong |
WarnPriority is recorded together with warning messages. It influences the display order and the appearance of a warning message. This enum class mirrors ablastr::utils::msg_logger::Priority.
WarnManager & ablastr::warn_manager::GetWMInstance | ( | ) |
Helper function to abbreviate the call to get a WarnManager instance.
void ablastr::warn_manager::WMRecordWarning | ( | const std::string & | topic, |
const std::string & | text, | ||
const WarnPriority & | priority = WarnPriority::medium |
||
) |
Helper function to abbreviate the call to WarnManager::GetInstance().RecordWarning (recording a warning message is thread-safe)
[in] | topic | a string to identify the topic of the warning (e.g., "parallelization", "pbc", "particles"...) |
[in] | text | the text of the warning message |
[in] | priority | priority of the warning message ("medium" by default) |