]> git.sesse.net Git - casparcg/blobdiff - protocol/cii/CIICommandsImpl.h
[ffmpeg_producer] Remove extraneous \
[casparcg] / protocol / cii / CIICommandsImpl.h
index 734d3bd89b6f4cc74e83aa7384f63b0cc4aa876f..880e46967558eb71473f9983d475256ef21e2186 100644 (file)
-/*\r
-* copyright (c) 2010 Sveriges Television AB <info@casparcg.com>\r
-*\r
-*  This file is part of CasparCG.\r
-*\r
-*    CasparCG is free software: you can redistribute it and/or modify\r
-*    it under the terms of the GNU General Public License as published by\r
-*    the Free Software Foundation, either version 3 of the License, or\r
-*    (at your option) any later version.\r
-*\r
-*    CasparCG is distributed in the hope that it will be useful,\r
-*    but WITHOUT ANY WARRANTY; without even the implied warranty of\r
-*    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
-*    GNU General Public License for more details.\r
-\r
-*    You should have received a copy of the GNU General Public License\r
-*    along with CasparCG.  If not, see <http://www.gnu.org/licenses/>.\r
-*\r
-*/\r
\r
-#pragma once\r
-\r
-#include "ciicommand.h"\r
-\r
-namespace caspar { namespace protocol {\r
-\r
-namespace cii {\r
-\r
-class CIIProtocolStrategy;\r
-\r
-class MediaCommand : public ICIICommand\r
-{\r
-public:\r
-       MediaCommand(CIIProtocolStrategy* pPS) : pCIIStrategy_(pPS)\r
-       {}\r
-\r
-       virtual int GetMinimumParameters() {\r
-               return 1;\r
-       }\r
-\r
-       virtual void Setup(const std::vector<std::wstring>& parameters);\r
-       virtual void Execute();\r
-\r
-private:\r
-       std::wstring graphicProfile_;\r
-\r
-       CIIProtocolStrategy* pCIIStrategy_;\r
-};\r
-\r
-class WriteCommand : public ICIICommand\r
-{\r
-public:\r
-       WriteCommand(CIIProtocolStrategy* pPS) : pCIIStrategy_(pPS)\r
-       {}\r
-\r
-       virtual int GetMinimumParameters() {\r
-               return 2;\r
-       }\r
-\r
-       virtual void Setup(const std::vector<std::wstring>& parameters);\r
-       virtual void Execute();\r
-\r
-private:\r
-       std::wstring targetName_;\r
-       std::wstring templateName_;\r
-       std::wstring xmlData_;\r
-\r
-       CIIProtocolStrategy* pCIIStrategy_;\r
-};\r
-\r
-class MiscellaneousCommand : public ICIICommand\r
-{\r
-public:\r
-       MiscellaneousCommand(CIIProtocolStrategy* pPS) : pCIIStrategy_(pPS), state_(-1), layer_(0)\r
-       {}\r
-\r
-       virtual int GetMinimumParameters() {\r
-               return 5;\r
-       }\r
-\r
-       virtual void Setup(const std::vector<std::wstring>& parameters);\r
-       virtual void Execute();\r
-\r
-private:\r
-       std::wstring filename_;\r
-       std::wstring xmlData_;\r
-       int state_;\r
-       int layer_;\r
-\r
-       CIIProtocolStrategy* pCIIStrategy_;\r
-};\r
-\r
-class ImagestoreCommand : public ICIICommand\r
-{\r
-public:\r
-       ImagestoreCommand(CIIProtocolStrategy* pPS) : pCIIStrategy_(pPS)\r
-       {}\r
-\r
-       virtual int GetMinimumParameters() {\r
-               return 1;\r
-       }\r
-\r
-       virtual void Setup(const std::vector<std::wstring>& parameters);\r
-       virtual void Execute();\r
-\r
-private:\r
-       std::wstring titleName_;\r
-\r
-       CIIProtocolStrategy* pCIIStrategy_;\r
-};\r
-\r
-class KeydataCommand : public ICIICommand\r
-{\r
-public:\r
-       KeydataCommand(CIIProtocolStrategy* pPS) : pCIIStrategy_(pPS), state_(-1), layer_(0)\r
-       {}\r
-\r
-       virtual int GetMinimumParameters() {\r
-               return 1;\r
-       }\r
-\r
-       virtual void Setup(const std::vector<std::wstring>& parameters);\r
-       virtual void Execute();\r
-\r
-private:\r
-       std::wstring titleName_;\r
-       int state_;\r
-       int layer_;\r
-\r
-       CIIProtocolStrategy* pCIIStrategy_;\r
-};\r
-\r
-}      //namespace cii\r
-}}     //namespace caspar
\ No newline at end of file
+/*
+* Copyright (c) 2011 Sveriges Television AB <info@casparcg.com>
+*
+* This file is part of CasparCG (www.casparcg.com).
+*
+* CasparCG is free software: you can redistribute it and/or modify
+* it under the terms of the GNU General Public License as published by
+* the Free Software Foundation, either version 3 of the License, or
+* (at your option) any later version.
+*
+* CasparCG is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+* GNU General Public License for more details.
+*
+* You should have received a copy of the GNU General Public License
+* along with CasparCG. If not, see <http://www.gnu.org/licenses/>.
+*
+* Author: Nicklas P Andersson
+*/
+
+#pragma once
+
+#include "CIICommand.h"
+
+namespace caspar { namespace protocol {
+
+namespace cii {
+
+class CIIProtocolStrategy;
+
+class MediaCommand : public ICIICommand
+{
+public:
+       MediaCommand(CIIProtocolStrategy* pPS) : pCIIStrategy_(pPS)
+       {}
+
+       virtual int GetMinimumParameters() {
+               return 1;
+       }
+
+       virtual void Setup(const std::vector<std::wstring>& parameters);
+       virtual void Execute();
+
+private:
+       std::wstring graphicProfile_;
+
+       CIIProtocolStrategy* pCIIStrategy_;
+};
+
+class WriteCommand : public ICIICommand
+{
+public:
+       WriteCommand(CIIProtocolStrategy* pPS) : pCIIStrategy_(pPS)
+       {}
+
+       virtual int GetMinimumParameters() {
+               return 2;
+       }
+
+       virtual void Setup(const std::vector<std::wstring>& parameters);
+       virtual void Execute();
+
+private:
+       std::wstring targetName_;
+       std::wstring templateName_;
+       std::wstring xmlData_;
+
+       CIIProtocolStrategy* pCIIStrategy_;
+};
+
+class MiscellaneousCommand : public ICIICommand
+{
+public:
+       MiscellaneousCommand(CIIProtocolStrategy* pPS) : pCIIStrategy_(pPS), state_(-1), layer_(0)
+       {}
+
+       virtual int GetMinimumParameters() {
+               return 5;
+       }
+
+       virtual void Setup(const std::vector<std::wstring>& parameters);
+       virtual void Execute();
+
+private:
+       std::wstring filename_;
+       std::wstring xmlData_;
+       int state_;
+       int layer_;
+
+       CIIProtocolStrategy* pCIIStrategy_;
+};
+
+class ImagestoreCommand : public ICIICommand
+{
+public:
+       ImagestoreCommand(CIIProtocolStrategy* pPS) : pCIIStrategy_(pPS)
+       {}
+
+       virtual int GetMinimumParameters() {
+               return 1;
+       }
+
+       virtual void Setup(const std::vector<std::wstring>& parameters);
+       virtual void Execute();
+
+private:
+       std::wstring titleName_;
+
+       CIIProtocolStrategy* pCIIStrategy_;
+};
+
+class KeydataCommand : public ICIICommand
+{
+public:
+       KeydataCommand(CIIProtocolStrategy* pPS) : pCIIStrategy_(pPS), state_(-1), layer_(0), casparLayer_(0)
+       {}
+
+       virtual int GetMinimumParameters() {
+               return 1;
+       }
+
+       virtual void Setup(const std::vector<std::wstring>& parameters);
+       virtual void Execute();
+
+private:
+       std::wstring titleName_;
+       int state_;
+       int layer_;
+       int casparLayer_;
+
+       CIIProtocolStrategy* pCIIStrategy_;
+};
+
+}      //namespace cii
+}}     //namespace caspar