summaryrefslogtreecommitdiff
path: root/maximus/system
diff options
context:
space:
mode:
authorburet2008-01-22 15:42:44 +0000
committerburet2008-01-22 15:42:44 +0000
commit864f316800a4595b34adf3d7d1a328e6f8435a60 (patch)
tree2b42d45b340863c23755e2e42687d07204629e69 /maximus/system
parentc6b7f4bac8d1dcc64f9fb932b9043138aeca2682 (diff)
Maximus V2: Logs the specialized SCI message type when Maximus receives or transmits a SCI message.
git-svn-id: svn+ssh://pessac/svn/cesar/trunk@1311 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'maximus/system')
-rw-r--r--maximus/system/inc/SystemSciMsg.h13
-rw-r--r--maximus/system/src/SystemSciMsg.cpp20
2 files changed, 18 insertions, 15 deletions
diff --git a/maximus/system/inc/SystemSciMsg.h b/maximus/system/inc/SystemSciMsg.h
index 7ba9903e3c..c525c12896 100644
--- a/maximus/system/inc/SystemSciMsg.h
+++ b/maximus/system/inc/SystemSciMsg.h
@@ -107,9 +107,14 @@ public:
* @return bool
*/
bool checkCompatibility ( ) const;
-
+
void displaySpecializedSciMsgHeader ( ) const;
-
+
+ /**
+ * Display the specialized SCI message type.
+ */
+ void displaySpecializedSciMsgType ( int log_level ) const;
+
// public attribute accessor methods
//
@@ -151,10 +156,8 @@ private:
// private methods
//
-
+
void initAttributes ( ) ;
-
- void displaySpecializedSciMsgType ( ) const;
protected:
diff --git a/maximus/system/src/SystemSciMsg.cpp b/maximus/system/src/SystemSciMsg.cpp
index 7dad7643ba..048924b8da 100644
--- a/maximus/system/src/SystemSciMsg.cpp
+++ b/maximus/system/src/SystemSciMsg.cpp
@@ -192,37 +192,37 @@ void SystemSciMsg::displaySpecializedSciMsgHeader ( ) const
clog << logger(LOG_INFO) << "system SCI msg header = " << endl;
clog << logger(LOG_INFO) << "\tversion = 0x" << setfill('0') << setw(2) << uppercase << hex << static_cast<unsigned short int>(getSpecializedSciMsgHeader().version) << endl;
- displaySpecializedSciMsgType();
+ displaySpecializedSciMsgType(LOG_INFO);
clog << logger(LOG_INFO) << "\tflags = 0x" << setfill('0') << setw(4) << uppercase << hex << getSpecializedSciMsgHeader().flags << dec << endl;
}
-// private methods
-//
-
-
-void SystemSciMsg::displaySpecializedSciMsgType ( ) const
+void SystemSciMsg::displaySpecializedSciMsgType ( int log_level ) const
{
logFunction();
switch (getSpecializedSciMsgType())
{
case 0:
- clog << logger(LOG_INFO) << "\ttype = SYSTEM_TYPE_NONE" << endl;
+ clog << logger(log_level) << "\ttype = SYSTEM_TYPE_NONE" << endl;
break;
case 1:
- clog << logger(LOG_INFO) << "\ttype = SYSTEM_TYPE_IDLE" << endl;
+ clog << logger(log_level) << "\ttype = SYSTEM_TYPE_IDLE" << endl;
break;
case 2:
- clog << logger(LOG_INFO) << "\ttype = SYSTEM_TYPE_STATION_NAME" << endl;
+ clog << logger(log_level) << "\ttype = SYSTEM_TYPE_STATION_NAME" << endl;
break;
default:
- clog << logger(LOG_WARNING) << "\ttype = unknown!" << endl;
+ clog << logger(log_level) << "\ttype = unknown!" << endl;
break;
}
}
+// private methods
+//
+
+
// protected methods
//