Fixes and improvs. Basic DRA feature.
[anna.git] / example / diameter / launcher / testing / TestManager.hpp
index 313e15f..1756315 100644 (file)
@@ -56,6 +56,7 @@ class TestManager : public anna::timex::TimeEventObserver, public anna::Singleto
   // reports
   std::string a_reportsDirectory;
   bool a_dumpReports;
+  bool a_dumpHexMessages;
 
   // Pool of test cases
   test_pool_t a_testPool;
@@ -95,6 +96,8 @@ class TestManager : public anna::timex::TimeEventObserver, public anna::Singleto
     void setReportsDirectory(const std::string &rd) throw() { a_reportsDirectory = rd; }
     const std::string &getReportsDirectory() const throw() { return a_reportsDirectory; }
 
+    void setDumpHex(bool dh) throw() { a_dumpHexMessages = dh; }
+    bool getDumpHex() const throw() { return a_dumpHexMessages; }
     void setDumpReports(bool dr) throw() { a_dumpReports = dr; }
     bool getDumpReports() const throw() { return a_dumpReports; }
 
@@ -117,7 +120,7 @@ class TestManager : public anna::timex::TimeEventObserver, public anna::Singleto
     TestCase *getTestCase(unsigned int id) throw(); // creates/reuses a test case
 
     // Main logic
-    TestCase *getTestCaseFromSessionId(const anna::DataBlock &message, std::string &sessionId) throw(anna::RuntimeException);
+    TestCase *getTestCaseFromSessionId(const anna::DataBlock &message, std::string &sessionId) throw();
     void receiveMessage(const anna::DataBlock &message, const anna::diameter::comm::ClientSession *clientSession) throw(anna::RuntimeException);
     void receiveMessage(const anna::DataBlock &message, const anna::diameter::comm::ServerSession *serverSession) throw(anna::RuntimeException);