X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=protocol%2Famcp%2FAMCPCommandsImpl.cpp;h=5fad85a3b8b31dc6c3169944f78b561f890eacfe;hb=refs%2Ftags%2F2.0.0.2;hp=aec863e885ec6ee4b4b6d7612b635b8f9fdad627;hpb=01d8a61541548cf535791be39d233799eefc4187;p=casparcg diff --git a/protocol/amcp/AMCPCommandsImpl.cpp b/protocol/amcp/AMCPCommandsImpl.cpp index aec863e88..5fad85a3b 100644 --- a/protocol/amcp/AMCPCommandsImpl.cpp +++ b/protocol/amcp/AMCPCommandsImpl.cpp @@ -30,6 +30,7 @@ #include #include +#include #include #include @@ -196,6 +197,24 @@ void AMCPCommand::Clear() _parameters.clear(); } +bool DiagnosticsCommand::DoExecute() +{ + try + { + diagnostics::show_graphs(boost::lexical_cast(_parameters.at(0))); + + SetReplyString(TEXT("202 DIAG OK\r\n")); + + return true; + } + catch(...) + { + CASPAR_LOG_CURRENT_EXCEPTION(); + SetReplyString(TEXT("502 DIAG FAILED\r\n")); + return false; + } +} + bool ParamCommand::DoExecute() { //Perform loading of the clip