Lumiverse  2.5
A framework for creating lighting control applications
DMXInterface.h
Go to the documentation of this file.
1 
4 #ifndef _DMXINTERFACE_H_
5 #define _DMXINTERFACE_H_
6 
7 #pragma once
8 
9 #include "../lib/libjson/libjson.h"
10 #include <string>
11 using namespace std;
12 
13 namespace Lumiverse {
25  {
26  public:
28  virtual ~DMXInterface() { };
29 
36  virtual void init() = 0;
37 
47  virtual void sendDMX(unsigned char* data, unsigned int universe) = 0;
48 
52  virtual void closeInt() = 0;
53 
59  virtual void reset() = 0;
60 
65  virtual JSONNode toJSON() = 0;
66 
74  virtual string getInterfaceType() = 0;
75 
84  string getInterfaceName() { return m_ifaceName; }
85 
91  string getInterfaceId() { return m_ifaceId; }
92 
97  void setInterfaceId(string id) { m_ifaceId = id; }
98 
99  protected:
103  string m_ifaceName;
104 
108  string m_ifaceId;
109  };
110 }
111 
112 #endif
string m_ifaceName
Name of the DMX interface.
Definition: DMXInterface.h:103
string m_ifaceId
Unique string identifying this particular interface.
Definition: DMXInterface.h:108
string getInterfaceId()
Returns the ID of this DMX interface.
Definition: DMXInterface.h:91
void init(const char *jsonPatchStr, const char *filename)
Initializes data structures.
Definition: Dumiverse.cpp:29
Provides a common interface to various DMX devices.
Definition: DMXInterface.h:24
Definition: Layer.h:437
virtual ~DMXInterface()
Virtual destructor yay.
Definition: DMXInterface.h:28
string getInterfaceName()
Returns the name of this DMX interface.
Definition: DMXInterface.h:84
Contains all core Lumiverse functions and variables.
Definition: Device.cpp:2
void setInterfaceId(string id)
Sets the interface ID.
Definition: DMXInterface.h:97