Implement dynamic procedure at REST interface
[anna.git] / dynamic / launcher / default / Procedure.hpp
1 // ANNA - Anna is Not Nothingness Anymore                                                         //
2 //                                                                                                //
3 // (c) Copyright 2005-2015 Eduardo Ramos Testillano & Francisco Ruiz Rayo                         //
4 //                                                                                                //
5 // See project site at http://redmine.teslayout.com/projects/anna-suite                           //
6 // See accompanying file LICENSE or copy at http://www.teslayout.com/projects/public/anna.LICENSE //
7
8
9 #ifndef dynamic_launcher_default_hpp
10 #define dynamic_launcher_default_hpp
11
12 // Project
13 #include <anna/comm/comm.hpp>
14 #include <anna/json/json.hpp>
15
16
17 class Procedure {
18     anna::comm::Application *a_app;
19
20   public:
21     Procedure(anna::comm::Application *app) : a_app(app) {;}
22
23     virtual void execute(const std::string &args, std::string &response)  throw(anna::RuntimeException);
24     virtual void execute(const nlohmann::json &args, std::string &response)  throw(anna::RuntimeException);
25 };
26
27 #endif