From c78e205237f0fd156f46ca104ee188107c53a1af Mon Sep 17 00:00:00 2001 From: Henri Herscher Date: Thu, 12 Apr 2007 22:07:45 +0000 Subject: Key-Value CaptureEvent messages are now reported as tags to orktrack. git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@436 09dcff7a-b715-0410-9601-b79a96267cd0 --- orkbasecxx/messages/TapeMsg.cpp | 2 ++ orkbasecxx/messages/TapeMsg.h | 3 +++ 2 files changed, 5 insertions(+) (limited to 'orkbasecxx/messages') diff --git a/orkbasecxx/messages/TapeMsg.cpp b/orkbasecxx/messages/TapeMsg.cpp index 9297973..755048c 100644 --- a/orkbasecxx/messages/TapeMsg.cpp +++ b/orkbasecxx/messages/TapeMsg.cpp @@ -48,6 +48,8 @@ void TapeMsg::Define(Serializer* s) //s->StringValue(LOCAL_MAC_PARAM, m_localMac); //s->StringValue(REMOTE_MAC_PARAM, m_remoteMac); + s->CsvMapValue(TAGS_PARAM, m_tags); + DefineMessage(s); } diff --git a/orkbasecxx/messages/TapeMsg.h b/orkbasecxx/messages/TapeMsg.h index 09a95d8..7f17faf 100644 --- a/orkbasecxx/messages/TapeMsg.h +++ b/orkbasecxx/messages/TapeMsg.h @@ -31,6 +31,7 @@ #define REMOTE_IP_PARAM "remoteip" #define LOCAL_MAC_PARAM "localmac" #define REMOTE_MAC_PARAM "remotemac" +#define TAGS_PARAM "tags" class DLL_IMPORT_EXPORT_ORKBASE TapeMsg : public SyncMessage { @@ -59,6 +60,8 @@ public: CStdString m_remoteIp; CStdString m_localMac; CStdString m_remoteMac; + + std::map m_tags; }; typedef boost::shared_ptr TapeMsgRef; -- cgit v1.2.3