Open Lighting Architecture  0.9.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 #include "plugins/stageprofi/StageProfiWidget.h"
29 
30 namespace ola {
31 namespace plugin {
32 namespace stageprofi {
33 
35  public:
37  unsigned int id,
38  StageProfiWidget *widget)
39  : BasicOutputPort(parent, id),
40  m_widget(widget) {}
41 
42  bool WriteDMX(const DmxBuffer &buffer, uint8_t priority);
43  std::string Description() const { return m_widget->GetDevicePath(); }
44 
45  private:
46  StageProfiWidget *m_widget;
47 };
48 } // namespace stageprofi
49 } // namespace plugin
50 } // namespace ola
51 #endif // PLUGINS_STAGEPROFI_STAGEPROFIPORT_H_