Open Lighting Architecture  0.9.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
ola::Plugin Class Reference
Inheritance diagram for ola::Plugin:
ola::AbstractPlugin ola::plugin::artnet::ArtNetPlugin ola::plugin::dmx4linux::Dmx4LinuxPlugin ola::plugin::dummy::DummyPlugin ola::plugin::e131::E131Plugin ola::plugin::espnet::EspNetPlugin ola::plugin::ftdidmx::FtdiDmxPlugin ola::plugin::gpio::GPIOPlugin ola::plugin::karate::KaratePlugin ola::plugin::kinet::KiNetPlugin ola::plugin::milinst::MilInstPlugin ola::plugin::opendmx::OpenDmxPlugin ola::plugin::openpixelcontrol::OPCPlugin ola::plugin::osc::OSCPlugin ola::plugin::pathport::PathportPlugin ola::plugin::renard::RenardPlugin ola::plugin::sandnet::SandNetPlugin ola::plugin::shownet::ShowNetPlugin ola::plugin::spi::SPIPlugin ola::plugin::stageprofi::StageProfiPlugin ola::plugin::uartdmx::UartDmxPlugin ola::plugin::usbdmx::UsbDmxPlugin ola::plugin::usbpro::UsbSerialPlugin

Public Member Functions

 Plugin (PluginAdaptor *plugin_adaptor)
bool LoadPreferences ()
 Load the preferences for a plugin.
std::string PreferenceSource () const
 The location for preferences. This can be anything really but should indicate to the user how how the preferences were loaded.
bool IsEnabled () const
 Is the plugin enabled?
virtual bool Start ()
virtual bool Stop ()
virtual bool DefaultMode () const
virtual ola_plugin_id Id () const =0
 Get the plugin ID of this plugin.
virtual std::string PluginPrefix () const =0
 The prefix to use for storing configuration files.
virtual void ConflictsWith (std::set< ola_plugin_id > *)
bool operator< (const AbstractPlugin &other) const
- Public Member Functions inherited from ola::AbstractPlugin
virtual std::string Name () const =0
 Get the plugin name.
virtual std::string Description () const =0

Protected Member Functions

virtual bool StartHook ()
virtual bool StopHook ()
virtual bool SetDefaultPreferences ()

Protected Attributes

PluginAdaptorm_plugin_adaptor
class Preferencesm_preferences

Static Protected Attributes

static const char ENABLED_KEY [] = "enabled"

Member Function Documentation

virtual ola_plugin_id ola::Plugin::Id ( ) const
pure virtual
bool ola::Plugin::IsEnabled ( ) const
virtual

Is the plugin enabled?

Returns
true if this plugin is enabled

Implements ola::AbstractPlugin.

virtual std::string ola::Plugin::PluginPrefix ( ) const
pure virtual
virtual bool ola::Plugin::SetDefaultPreferences ( )
inlineprotectedvirtual

Set default preferences.

bool ola::Plugin::Start ( )
virtual

Start the plugin

Returns
true if we started ok, false otherwise

Implements ola::AbstractPlugin.

bool ola::Plugin::Stop ( )
virtual

Stop the plugin

Returns
true on success, false on failure

Implements ola::AbstractPlugin.


The documentation for this class was generated from the following files: