-/*\r
-* Copyright (c) 2011 Sveriges Television AB <info@casparcg.com>\r
-*\r
-* This file is part of CasparCG (www.casparcg.com).\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
-* Author: Nicklas P Andersson\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), casparLayer_(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
- int casparLayer_;\r
-\r
- CIIProtocolStrategy* pCIIStrategy_;\r
-};\r
-\r
-} //namespace cii\r
+/*
+* 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
\ No newline at end of file