21 #ifndef PLUGINS_OSC_OSCDEVICE_H_
22 #define PLUGINS_OSC_OSCDEVICE_H_
27 #include "ola/io/SelectServerInterface.h"
28 #include "ola/network/SocketAddress.h"
29 #include "olad/Device.h"
30 #include "plugins/osc/OSCTarget.h"
31 #include "plugins/osc/OSCNode.h"
46 PortConfig() : data_format(OSCNode::FORMAT_BLOB) {}
48 vector<OSCTarget> targets;
49 OSCNode::DataFormat data_format;
52 typedef vector<PortConfig> PortConfigs;
57 const vector<string> &addresses,
58 const PortConfigs &port_configs);
59 string DeviceId()
const {
return "1"; }
61 bool AllowMultiPortPatching()
const {
return true; }
65 const vector<string> m_port_addresses;
66 const PortConfigs m_port_configs;
67 std::auto_ptr<class OSCNode> m_osc_node;
71 static const char DEVICE_NAME[];
76 #endif // PLUGINS_OSC_OSCDEVICE_H_