X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=dynamic%2Flauncher%2Fdefault%2FProcedure.cpp;h=6649e62e33552bf7b555278b01b8f4ff88a6a4d8;hb=8a597c7ccbe2986f505fd70258e4b59ecef4166f;hp=57bb7e05a90ec57465495c365949e04c833469dd;hpb=8b3eb3637cbe90fbabe70ec5667cce58cb7e368b;p=anna.git diff --git a/dynamic/launcher/default/Procedure.cpp b/dynamic/launcher/default/Procedure.cpp index 57bb7e0..6649e62 100644 --- a/dynamic/launcher/default/Procedure.cpp +++ b/dynamic/launcher/default/Procedure.cpp @@ -9,11 +9,14 @@ #include #include +// Project +#include + // Local #include "Procedure.hpp" -void Procedure::execute(const std::string &args, std::string &response) throw() { +void Procedure::execute(const std::string &args, std::string &response) throw(anna::RuntimeException) { response = "Empty default implementation. Make dynamic library and reimplement this method."; if (args != "" ) { response += " Provided argument(s) ignored: "; @@ -21,3 +24,6 @@ void Procedure::execute(const std::string &args, std::string &response) throw() } } +void Procedure::execute(const nlohmann::json &args, std::string &response) throw(anna::RuntimeException) { + execute(args.dump(), response); +}