forked from xLightsSequencer/xLights
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOutputProcessDeadChannel.h
32 lines (26 loc) · 1.31 KB
/
OutputProcessDeadChannel.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#pragma once
/***************************************************************
* This source files comes from the xLights project
* https://www.xlights.org
* https://github.com/smeighan/xLights
* See the github commit history for a record of contributing
* developers.
* Copyright claimed based on commit dates recorded in Github
* License: https://github.com/smeighan/xLights/blob/master/License.txt
**************************************************************/
#include "OutputProcess.h"
class OutputProcessDeadChannel : public OutputProcess
{
int _channel;
public:
OutputProcessDeadChannel(OutputManager* outputManager, wxXmlNode* node);
OutputProcessDeadChannel(OutputManager* outputManager);
OutputProcessDeadChannel(const OutputProcessDeadChannel& op);
OutputProcessDeadChannel(OutputManager* outputManager, std::string _startChannel, size_t p1, const std::string& description);
virtual ~OutputProcessDeadChannel() {}
virtual wxXmlNode* Save() override;
virtual void Frame(uint8_t* buffer, size_t size, std::list<OutputProcess*>& processes) override;
virtual size_t GetP1() const override { return _channel; }
virtual size_t GetP2() const override { return 0; }
virtual std::string GetType() const override { return "Dead Channel"; }
};