4 #ifndef _OLAINTERFACE_H_
5 #define _OLAINTERFACE_H_
8 #include "LumiverseCoreConfig.h"
12 #include <ola/DmxBuffer.h>
13 #include <ola/Logging.h>
14 #include <ola/client/StreamingClient.h>
15 #include <lib/libjson/libjson.h>
22 #include <unordered_map>
32 class OLAInterface :
public DMXInterface
40 OLAInterface(
string id);
46 virtual void sendDMX(
unsigned char* data,
unsigned int universe);
48 virtual void closeInt();
52 virtual JSONNode toJSON();
54 virtual string getInterfaceType() {
return "OLAInterface"; }
63 unordered_map<unsigned int, ola::DmxBuffer> _universes;
68 ola::client::StreamingClient _olaClient;
void init(const char *jsonPatchStr, const char *filename)
Initializes data structures.
Definition: Dumiverse.cpp:29
Contains functions for logging information to console or file.
Base class describing how DMX Interfaces should act.
Contains all core Lumiverse functions and variables.
Definition: Device.cpp:2