21 #ifndef PLUGINS_OSC_OSCPLUGIN_H_
22 #define PLUGINS_OSC_OSCPLUGIN_H_
25 #include "olad/Plugin.h"
26 #include "ola/plugin_id.h"
27 #include "plugins/osc/OSCDevice.h"
28 #include "plugins/osc/OSCTarget.h"
42 std::string
Name()
const {
return PLUGIN_NAME; }
44 ola_plugin_id
Id()
const {
return OLA_PLUGIN_OSC; }
50 bool SetDefaultPreferences();
52 unsigned int GetPortCount(
const std::string &key)
const;
53 bool ExtractOSCTarget(
const std::string &str,
OSCTarget *target);
54 void SetDataFormat(
const std::string &format_option,
58 static const char DEFAULT_ADDRESS_TEMPLATE[];
59 static const char DEFAULT_PORT_COUNT[];
60 static const char DEFAULT_TARGETS_TEMPLATE[];
61 static const char DEFAULT_UDP_PORT[];
62 static const char INPUT_PORT_COUNT_KEY[];
63 static const char OUTPUT_PORT_COUNT_KEY[];
64 static const char PLUGIN_NAME[];
65 static const char PLUGIN_PREFIX[];
66 static const char PORT_ADDRESS_TEMPLATE[];
67 static const char PORT_TARGETS_TEMPLATE[];
68 static const char PORT_FORMAT_TEMPLATE[];
69 static const char UDP_PORT_KEY[];
71 static const char BLOB_FORMAT[];
72 static const char FLOAT_ARRAY_FORMAT[];
73 static const char FLOAT_INDIVIDUAL_FORMAT[];
74 static const char INT_ARRAY_FORMAT[];
75 static const char INT_INDIVIDUAL_FORMAT[];
80 #endif // PLUGINS_OSC_OSCPLUGIN_H_