Open Lighting Architecture: plugins/stageprofi/StageProfiPort.h Source File

| Open Lighting Architecture 0.10.9

Loading...
Searching...
No Matches
StageProfiPort.h
1/*
2 * This program is free software; you can redistribute it and/or modify
3 * it under the terms of the GNU General Public License as published by
4 * the Free Software Foundation; either version 2 of the License, or
5 * (at your option) any later version.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU Library General Public License for more details.
11 *
12 * You should have received a copy of the GNU General Public License
13 * along with this program; if not, write to the Free Software
14 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
15 *
16 * StageProfiPort.h
17 * The StageProfi plugin for ola
18 * Copyright (C) 2006 Simon Newton
19 */
20
21#ifndef PLUGINS_STAGEPROFI_STAGEPROFIPORT_H_
22#define PLUGINS_STAGEPROFI_STAGEPROFIPORT_H_
23
24#include <string>
25#include "ola/DmxBuffer.h"
26#include "olad/Port.h"
27#include "plugins/stageprofi/StageProfiDevice.h"
28
29namespace ola {
30namespace plugin {
31namespace stageprofi {
32
33class StageProfiWidget;
34
38 class StageProfiOutputPort: public BasicOutputPort {
39 public:
47 StageProfiOutputPort(StageProfiDevice *parent,
48 unsigned int id,
49 StageProfiWidget *widget);
50
51 bool WriteDMX(const DmxBuffer &buffer, uint8_t priority);
52
53 std::string Description() const;
54
55 private:
56 StageProfiWidget *m_widget;
57};
58} // namespace stageprofi
59} // namespace plugin
60} // namespace ola
61#endif // PLUGINS_STAGEPROFI_STAGEPROFIPORT_H_
DmxBuffer.h
A class used to hold a single universe of DMX data.
ola::BasicOutputPort::BasicOutputPort
BasicOutputPort(AbstractDevice *parent, unsigned int port_id, bool start_rdm_discovery_on_patch=false, bool supports_rdm=false)
Create a new BasicOutputPort.
Definition Port.cpp:120
ola::DmxBuffer
Used to hold a single universe of DMX data.
Definition DmxBuffer.h:49
ola::plugin::stageprofi::StageProfiDevice
Definition StageProfiDevice.h:38
ola::plugin::stageprofi::StageProfiOutputPort::StageProfiOutputPort
StageProfiOutputPort(StageProfiDevice *parent, unsigned int id, StageProfiWidget *widget)
Create a new StageProfi Output Port.
Definition StageProfiPort.cpp:33
ola::plugin::stageprofi::StageProfiOutputPort::WriteDMX
bool WriteDMX(const DmxBuffer &buffer, uint8_t priority)
Write DMX data to this port.
Definition StageProfiPort.cpp:40
ola::plugin::stageprofi::StageProfiOutputPort::Description
std::string Description() const
Fetch the string description for a Port.
Definition StageProfiPort.cpp:45
ola::plugin::stageprofi::StageProfiWidget
Definition StageProfiWidget.h:36
ola::plugin::stageprofi
Code for Stageprofi devices.
ola::plugin
Code for supported devices and protocols.
ola
The namespace containing all OLA symbols.
Definition Credentials.cpp:44