1 #ifndef ConscienceServerCommandHandler_hpp
2 #define ConscienceServerCommandHandler_hpp
7 #include "ConscienceCore/Communication/CscMessageHandler.h"
31 string fullResponse = responseCommandName;
32 for (
int i = 0;
i < responseArgs.size();
i++) {
33 fullResponse +=
";" + responseArgs.at(
i);
46 const char *
what()
const throw() {
47 string what =
"engine service execution failed: " + message;
63 virtual optional<CscMessageHandlerResult> handleMessage(
const string &messageSubject,
const vector<string> &args, optional<int> knowledgeId,
ptr<CscMessagingRequestContext> context)
override;
65 virtual optional<string> handleLowLevelMessage(
const string &message)
override;
111 unique_ptr<CscLogger>
logger = CscLogger::getForCategory(
"ConscienceServerCommandHandler");
113 map<string, ServerApiCallHandler> handlers;