X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=dynamic%2Flauncher%2Fdefault%2FProcedure.cpp;h=a3ef9701082f9ad8cd63baa704b4ec4983f7805b;hb=cef452116c2966d7eaa65ff31ee7613bf3ae1b93;hp=57bb7e05a90ec57465495c365949e04c833469dd;hpb=8b3eb3637cbe90fbabe70ec5667cce58cb7e368b;p=anna.git diff --git a/dynamic/launcher/default/Procedure.cpp b/dynamic/launcher/default/Procedure.cpp index 57bb7e0..a3ef970 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) noexcept(false) { 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) noexcept(false) { + execute(args.dump(), response); +}