2 * copyright (c) 2010 Sveriges Television AB <info@casparcg.com>
\r
4 * This file is part of CasparCG.
\r
6 * CasparCG is free software: you can redistribute it and/or modify
\r
7 * it under the terms of the GNU General Public License as published by
\r
8 * the Free Software Foundation, either version 3 of the License, or
\r
9 * (at your option) any later version.
\r
11 * CasparCG is distributed in the hope that it will be useful,
\r
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
14 * GNU General Public License for more details.
\r
16 * You should have received a copy of the GNU General Public License
\r
17 * along with CasparCG. If not, see <http://www.gnu.org/licenses/>.
\r
23 #include "ciicommand.h"
\r
25 namespace caspar { namespace protocol {
\r
29 class CIIProtocolStrategy;
\r
31 class MediaCommand : public ICIICommand
\r
34 MediaCommand(CIIProtocolStrategy* pPS) : pCIIStrategy_(pPS)
\r
37 virtual int GetMinimumParameters() {
\r
41 virtual void Setup(const std::vector<std::wstring>& parameters);
\r
42 virtual void Execute();
\r
45 std::wstring graphicProfile_;
\r
47 CIIProtocolStrategy* pCIIStrategy_;
\r
50 class WriteCommand : public ICIICommand
\r
53 WriteCommand(CIIProtocolStrategy* pPS) : pCIIStrategy_(pPS)
\r
56 virtual int GetMinimumParameters() {
\r
60 virtual void Setup(const std::vector<std::wstring>& parameters);
\r
61 virtual void Execute();
\r
64 std::wstring targetName_;
\r
65 std::wstring templateName_;
\r
66 std::wstring xmlData_;
\r
68 CIIProtocolStrategy* pCIIStrategy_;
\r
71 class MiscellaneousCommand : public ICIICommand
\r
74 MiscellaneousCommand(CIIProtocolStrategy* pPS) : pCIIStrategy_(pPS), state_(-1), layer_(0)
\r
77 virtual int GetMinimumParameters() {
\r
81 virtual void Setup(const std::vector<std::wstring>& parameters);
\r
82 virtual void Execute();
\r
85 std::wstring filename_;
\r
86 std::wstring xmlData_;
\r
90 CIIProtocolStrategy* pCIIStrategy_;
\r
93 class ImagestoreCommand : public ICIICommand
\r
96 ImagestoreCommand(CIIProtocolStrategy* pPS) : pCIIStrategy_(pPS)
\r
99 virtual int GetMinimumParameters() {
\r
103 virtual void Setup(const std::vector<std::wstring>& parameters);
\r
104 virtual void Execute();
\r
107 std::wstring titleName_;
\r
109 CIIProtocolStrategy* pCIIStrategy_;
\r
112 class KeydataCommand : public ICIICommand
\r
115 KeydataCommand(CIIProtocolStrategy* pPS) : pCIIStrategy_(pPS), state_(-1), layer_(0)
\r
118 virtual int GetMinimumParameters() {
\r
122 virtual void Setup(const std::vector<std::wstring>& parameters);
\r
123 virtual void Execute();
\r
126 std::wstring titleName_;
\r
130 CIIProtocolStrategy* pCIIStrategy_;
\r
134 }} //namespace caspar