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 uint8_t DEFAULT_PORT_COUNT = 5;
59 static const uint16_t DEFAULT_UDP_PORT = 7770;
61 static const char DEFAULT_ADDRESS_TEMPLATE[];
62 static const char DEFAULT_TARGETS_TEMPLATE[];
63 static const char INPUT_PORT_COUNT_KEY[];
64 static const char OUTPUT_PORT_COUNT_KEY[];
65 static const char PLUGIN_NAME[];
66 static const char PLUGIN_PREFIX[];
67 static const char PORT_ADDRESS_TEMPLATE[];
68 static const char PORT_TARGETS_TEMPLATE[];
69 static const char PORT_FORMAT_TEMPLATE[];
70 static const char UDP_PORT_KEY[];
72 static const char BLOB_FORMAT[];
73 static const char FLOAT_ARRAY_FORMAT[];
74 static const char FLOAT_INDIVIDUAL_FORMAT[];
75 static const char INT_ARRAY_FORMAT[];
76 static const char INT_INDIVIDUAL_FORMAT[];
81 #endif // PLUGINS_OSC_OSCPLUGIN_H_ Definition: OSCTarget.h:31
Definition: OSCDevice.h:40
ola_plugin_id Id() const
Get the plugin ID of this plugin.
Definition: OSCPlugin.h:44
std::string Description() const
Definition: OSCPlugin.cpp:132
std::string Name() const
Get the plugin name.
Definition: OSCPlugin.h:42
Definition: PluginAdaptor.h:41
Definition: OSCDevice.h:42
std::string PluginPrefix() const
The prefix to use for storing configuration files.
Definition: OSCPlugin.h:45
The namespace containing all OLA symbols.
Definition: Credentials.cpp:44
Definition: OSCPlugin.h:36