From c77f78b540445a57243c136e8ee74ff753d9d2cf Mon Sep 17 00:00:00 2001 From: marc1uk Date: Mon, 14 Aug 2023 17:59:20 +0100 Subject: [PATCH 1/2] add verbosities add verbosity constants to Tool --- src/Tool/Tool.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/Tool/Tool.h b/src/Tool/Tool.h index cbcc124..e5cd4f3 100644 --- a/src/Tool/Tool.h +++ b/src/Tool/Tool.h @@ -35,11 +35,14 @@ class Tool{ template void Log(T message, int messagelevel=1, int verbosity=1){m_data->Log->Log(message,messagelevel,verbosity);} template void Log(T message, int messagelevel){m_data->Log->Log(message,messagelevel,m_verbose);} ///< Logging fuction for printouts. @param message Templated message string. @param messagelevel The verbosity level at which to show the message. Checked against internal verbosity level - - private: std::string m_tool_name; + int get_ok; + static const int v_error=0; + static const int v_warning=1; + static const int v_message=2; + static const int v_debug=3; - + private: From 69f7d765b25f32e241626ac30aae46d4e357b997 Mon Sep 17 00:00:00 2001 From: marc1uk Date: Wed, 27 Nov 2024 17:21:54 +0000 Subject: [PATCH 2/2] Update Tool.h --- src/Tool/Tool.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Tool/Tool.h b/src/Tool/Tool.h index ca90b6d..b0a2cd5 100644 --- a/src/Tool/Tool.h +++ b/src/Tool/Tool.h @@ -60,8 +60,7 @@ namespace ToolFramework{ } private: - - int get_ok; + static const int v_error=0; static const int v_warning=1; static const int v_message=2;