2 * Copyright (c) 2011 Sveriges Television AB <info@casparcg.com>
4 * This file is part of CasparCG (www.casparcg.com).
6 * CasparCG is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
11 * CasparCG is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with CasparCG. If not, see <http://www.gnu.org/licenses/>.
19 * Author: Nicklas P Andersson
25 #include "CIICommand.h"
27 namespace caspar { namespace protocol {
31 class CIIProtocolStrategy;
33 class MediaCommand : public ICIICommand
36 MediaCommand(CIIProtocolStrategy* pPS) : pCIIStrategy_(pPS)
39 virtual int GetMinimumParameters() {
43 virtual void Setup(const std::vector<std::wstring>& parameters);
44 virtual void Execute();
47 std::wstring graphicProfile_;
49 CIIProtocolStrategy* pCIIStrategy_;
52 class WriteCommand : public ICIICommand
55 WriteCommand(CIIProtocolStrategy* pPS) : pCIIStrategy_(pPS)
58 virtual int GetMinimumParameters() {
62 virtual void Setup(const std::vector<std::wstring>& parameters);
63 virtual void Execute();
66 std::wstring targetName_;
67 std::wstring templateName_;
68 std::wstring xmlData_;
70 CIIProtocolStrategy* pCIIStrategy_;
73 class MiscellaneousCommand : public ICIICommand
76 MiscellaneousCommand(CIIProtocolStrategy* pPS) : pCIIStrategy_(pPS), state_(-1), layer_(0)
79 virtual int GetMinimumParameters() {
83 virtual void Setup(const std::vector<std::wstring>& parameters);
84 virtual void Execute();
87 std::wstring filename_;
88 std::wstring xmlData_;
92 CIIProtocolStrategy* pCIIStrategy_;
95 class ImagestoreCommand : public ICIICommand
98 ImagestoreCommand(CIIProtocolStrategy* pPS) : pCIIStrategy_(pPS)
101 virtual int GetMinimumParameters() {
105 virtual void Setup(const std::vector<std::wstring>& parameters);
106 virtual void Execute();
109 std::wstring titleName_;
111 CIIProtocolStrategy* pCIIStrategy_;
114 class KeydataCommand : public ICIICommand
117 KeydataCommand(CIIProtocolStrategy* pPS) : pCIIStrategy_(pPS), state_(-1), layer_(0), casparLayer_(0)
120 virtual int GetMinimumParameters() {
124 virtual void Setup(const std::vector<std::wstring>& parameters);
125 virtual void Execute();
128 std::wstring titleName_;
133 CIIProtocolStrategy* pCIIStrategy_;
137 }} //namespace caspar