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"
45 string Name()
const {
return PLUGIN_NAME; }
46 string Description()
const;
47 ola_plugin_id Id()
const {
return OLA_PLUGIN_OSC; }
48 string PluginPrefix()
const {
return PLUGIN_PREFIX; }
53 bool SetDefaultPreferences();
55 unsigned int GetPortCount(
const string &key)
const;
56 bool ExtractOSCTarget(
const string &str,
OSCTarget *target);
57 void SetDataFormat(
const string &format_option,
61 static const char DEFAULT_ADDRESS_TEMPLATE[];
62 static const char DEFAULT_PORT_COUNT[];
63 static const char DEFAULT_TARGETS_TEMPLATE[];
64 static const char DEFAULT_UDP_PORT[];
65 static const char INPUT_PORT_COUNT_KEY[];
66 static const char OUTPUT_PORT_COUNT_KEY[];
67 static const char PLUGIN_NAME[];
68 static const char PLUGIN_PREFIX[];
69 static const char PORT_ADDRESS_TEMPLATE[];
70 static const char PORT_TARGETS_TEMPLATE[];
71 static const char PORT_FORMAT_TEMPLATE[];
72 static const char UDP_PORT_KEY[];
74 static const char BLOB_FORMAT[];
75 static const char FLOAT_ARRAY_FORMAT[];
76 static const char FLOAT_INDIVIDUAL_FORMAT[];
77 static const char INT_ARRAY_FORMAT[];
78 static const char INT_INDIVIDUAL_FORMAT[];
83 #endif // PLUGINS_OSC_OSCPLUGIN_H_