Implement dynamic procedure at REST interface
[anna.git] / example / diameter / launcher / EventOperation.hpp
index 1f0a4ab..dd54020 100644 (file)
@@ -9,42 +9,11 @@
 #ifndef example_diameter_launcher_EventOperation_hpp
 #define example_diameter_launcher_EventOperation_hpp
 
-// Project
-
 // STL
 #include <string>
 
-//// Standard
-//#include <sstream>      // std::istringstream
-//#include <iostream>     // std::cout
-//#include <math.h> // ceil
-//#include <climits>
-//#include <unistd.h> // chdir
-//#include <stdio.h>
-//
 // Project
-//#include <anna/timex/Engine.hpp>
-//#include <anna/statistics/Engine.hpp>
-//#include <anna/diameter/codec/functions.hpp>
-//#include <anna/diameter/codec/Engine.hpp>
-//#include <anna/diameter/codec/EngineManager.hpp>
-//#include <anna/http/Transport.hpp>
-//#include <anna/diameter/stack/Engine.hpp>
-//#include <anna/diameter/helpers/base/functions.hpp>
-//#include <anna/time/functions.hpp>
-//#include <anna/diameter.comm/ApplicationMessageOamModule.hpp>
-//#include <anna/testing/defines.hpp>
-//#include <anna/xml/xml.hpp>
-//#include <anna/diameter.comm/OriginHost.hpp>
-//#include <anna/diameter.comm/OriginHostManager.hpp>
-//
-//// Process
-//#include <Launcher.hpp>
-//#include <Procedure.hpp>
-//#include <EventOperation.hpp>
-//#include <MyDiameterEngine.hpp>
-//#include <anna/testing/TestManager.hpp>
-//#include <anna/testing/TestCase.hpp>
+#include <anna/json/json.hpp>
 
 
 class EventOperation {
@@ -150,6 +119,9 @@ public:
                     const std::string & state = "all" /* initialized|in-progress|failed|success|[all]|none */, bool enable = true);
   bool test__report_hex(std::string &response, bool enable = true);
   bool test__dump_stdout(std::string &response, bool enable = true);
+
+  // Dynamic procedure
+  bool test__dynamic(std::string &response, const nlohmann::json &arguments);
 };
 
 #endif