* Author: Nicklas P Andersson
*/
-
-#ifndef __AMCPCOMMANDSIMPL_H__
-#define __AMCPCOMMANDSIMPL_H__
+#pragma once
#include "AMCPCommand.h"
-namespace caspar { namespace protocol {
-
-std::wstring ListMedia();
-std::wstring ListTemplates();
+namespace caspar { namespace protocol { namespace amcp {
-namespace amcp {
-
-class ChannelGridCommand : public AMCPCommandBase<false, 0>
-{
- std::wstring print() const { return L"ChannelGridCommand";}
- bool DoExecute();
-};
+void register_commands(class amcp_command_repository& repo);
-class DiagnosticsCommand : public AMCPCommandBase<false, 0>
-{
- std::wstring print() const { return L"DiagnosticsCommand";}
- bool DoExecute();
-};
-
-class CallCommand : public AMCPCommandBase<true, 1>
-{
- std::wstring print() const { return L"CallCommand";}
- bool DoExecute();
-};
-
-class MixerCommand : public AMCPCommandBase<true, 1>
-{
- std::wstring print() const { return L"MixerCommand";}
- bool DoExecute();
-};
-
-class AddCommand : public AMCPCommandBase<true, 1>
-{
- std::wstring print() const { return L"AddCommand";}
- bool DoExecute();
-};
-
-class RemoveCommand : public AMCPCommandBase<true, 0>
-{
- std::wstring print() const { return L"RemoveCommand";}
- bool DoExecute();
-};
-
-class SwapCommand : public AMCPCommandBase<true, 1>
-{
- std::wstring print() const { return L"SwapCommand";}
- bool DoExecute();
-};
-
-class LoadCommand : public AMCPCommandBase<true, 1>
-{
- std::wstring print() const { return L"LoadCommand";}
- bool DoExecute();
-};
-
-class LoadbgCommand : public AMCPCommandBase<true, 1>
-{
- std::wstring print() const { return L"LoadbgCommand";}
- bool DoExecute();
-};
-
-class PlayCommand: public AMCPCommandBase<true, 0>
-{
- std::wstring print() const { return L"PlayCommand";}
- bool DoExecute();
-};
-
-class PauseCommand: public AMCPCommandBase<true, 0>
-{
- std::wstring print() const { return L"PauseCommand";}
- bool DoExecute();
-};
-
-class StopCommand : public AMCPCommandBase<true, 0>
-{
- std::wstring print() const { return L"StopCommand";}
- bool DoExecute();
-};
-
-class ClearCommand : public AMCPCommandBase<true, 0>
-{
- std::wstring print() const { return L"ClearCommand";}
- bool DoExecute();
-};
-
-class PrintCommand : public AMCPCommandBase<true, 0>
-{
- std::wstring print() const { return L"PrintCommand";}
- bool DoExecute();
-};
-
-class LogCommand : public AMCPCommandBase<false, 0>
-{
- std::wstring print() const { return L"LogCommand";}
- bool DoExecute();
-};
-
-class CGCommand : public AMCPCommandBase<true, 1>
-{
- std::wstring print() const { return L"CGCommand";}
- bool DoExecute();
- bool ValidateLayer(const std::wstring& layerstring);
-
- bool DoExecuteAdd();
- bool DoExecutePlay();
- bool DoExecuteStop();
- bool DoExecuteNext();
- bool DoExecuteRemove();
- bool DoExecuteClear();
- bool DoExecuteUpdate();
- bool DoExecuteInvoke();
- bool DoExecuteInfo();
-};
-
-class DataCommand : public AMCPCommandBase<false, 1>
-{
- std::wstring print() const { return L"DataCommand";}
- bool DoExecute();
- bool DoExecuteStore();
- bool DoExecuteRetrieve();
- bool DoExecuteList();
-};
-
-class ClsCommand : public AMCPCommandBase<false, 0>
-{
- std::wstring print() const { return L"ClsCommand";}
- bool DoExecute();
-};
-
-class TlsCommand : public AMCPCommandBase<false, 0>
-{
- std::wstring print() const { return L"TlsCommand";}
- bool DoExecute();
-};
-
-class CinfCommand : public AMCPCommandBase<false, 1>
-{
- std::wstring print() const { return L"CinfCommand";}
- bool DoExecute();
-};
-
-class InfoCommand : public AMCPCommandBase<false, 0>
-{
-public:
- std::wstring print() const { return L"InfoCommand";}
- InfoCommand(const std::vector<spl::shared_ptr<core::video_channel>>& channels) : channels_(channels){}
- bool DoExecute();
-private:
- const std::vector<spl::shared_ptr<core::video_channel>>& channels_;
-};
-
-class VersionCommand : public AMCPCommandBase<false, 0>
-{
- std::wstring print() const { return L"VersionCommand";}
- bool DoExecute();
-};
-
-class ByeCommand : public AMCPCommandBase<false, 0>
-{
- std::wstring print() const { return L"ByeCommand";}
- bool DoExecute();
-};
-
-class SetCommand : public AMCPCommandBase<true, 2>
-{
- std::wstring print() const { return L"SetCommand";}
- bool DoExecute();
-};
-
-//class KillCommand : public AMCPCommand
-//{
-//public:
-// KillCommand() {}
-// virtual bool DoExecute();
-// virtual AMCPCommandCondition CheckConditions();
-//
-// virtual bool NeedChannel() {
-// return false;
-// }
-// virtual AMCPCommandScheduling GetDefaultScheduling() {
-// return AddToQueue;
-// }
-// virtual int GetMinimumParameters() {
-// return 0;
-// }
-//};
-
-} //namespace amcp
-}} //namespace caspar
-
-#endif //__AMCPCOMMANDSIMPL_H__
\ No newline at end of file
+}}}