8 #ifndef ABLASTR_WARN_MANAGER_H_ 9 #define ABLASTR_WARN_MANAGER_H_ 83 std::string PrintLocalWarnings(
84 const std::string& when)
const;
93 std::string PrintGlobalWarnings(
94 const std::string& when)
const;
101 void SetAlwaysWarnImmediately(
bool always_warn_immediately);
108 bool GetAlwaysWarnImmediatelyFlag()
const;
116 void SetAbortThreshold(std::optional<WarnPriority> abort_threshold);
123 std::optional<WarnPriority> GetAbortThreshold()
const;
133 static const int warn_line_size = 80 ;
134 static const int warn_tab_size = 5 ;
151 std::string PrintWarnMsg(
162 std::string PrintWarnMsg(
173 static std::string GetHeader(
174 const std::string& when,
176 const bool is_global);
186 static std::string MsgFormatter(
187 const std::string& msg,
192 std::unique_ptr<ablastr::utils::msg_logger::Logger> m_p_logger ;
193 bool m_always_warn_immediately =
false ;
194 std::optional<WarnPriority> m_abort_on_warning_threshold = std::nullopt ;
218 #endif //ABLASTR_WARN_MANAGER_H_ WarnPriority
Definition: WarnManager.H:26
WarnManager & GetWMInstance()
Helper function to abbreviate the call to get a WarnManager instance.
Definition: WarnManager.cpp:300
void WMRecordWarning(std::string topic, std::string text, WarnPriority priority=WarnPriority::medium)
Helper function to abbreviate the call to WarnManager::GetInstance().RecordWarning (recording a warni...
Definition: WarnManager.cpp:305
Definition: WarnManager.H:48
Definition: MsgLogger.H:132
Definition: WarnManager.H:19
Definition: MsgLogger.H:94