Ardour  8.7-14-g57a6773833
MIDIAction Class Reference

#include <midiaction.h>

Inheritance diagram for MIDIAction:
[legend]

Public Member Functions

 MIDIAction (MIDI::Parser &)
 
virtual ~MIDIAction ()
 
int init (GenericMidiControlProtocol &, const std::string &action_name, MIDI::byte *sysex=0, size_t ssize=0)
 
const std::string & action_name () const
 
XMLNodeget_state () const
 
int set_state (const XMLNode &, int version)
 
- Public Member Functions inherited from MIDIInvokable
 MIDIInvokable (MIDI::Parser &)
 
virtual ~MIDIInvokable ()
 
MIDI::Parserget_parser ()
 
void bind_midi (MIDI::channel_t, MIDI::eventType, MIDI::byte)
 
MIDI::channel_t get_control_channel ()
 
MIDI::eventType get_control_type ()
 
MIDI::byte get_control_additional ()
 
- Public Member Functions inherited from PBD::Stateful
 Stateful ()
 
virtual ~Stateful ()
 
virtual bool apply_change (PropertyBase const &)
 
PropertyChange apply_changes (PropertyList const &)
 
const OwnedPropertyListproperties () const
 
void add_property (PropertyBase &s)
 
void add_extra_xml (XMLNode &)
 
XMLNodeextra_xml (const std::string &str, bool add_if_missing=false)
 
void save_extra_xml (const XMLNode &)
 
const PBD::IDid () const
 
bool set_id (const XMLNode &)
 
void set_id (const std::string &)
 
void reset_id ()
 
void clear_changes ()
 
virtual void clear_owned_changes ()
 
PropertyListget_changes_as_properties (PBD::Command *) const
 
virtual void rdiff (std::vector< PBD::Command * > &) const
 
bool changed () const
 
virtual PropertyListproperty_factory (const XMLNode &) const
 
virtual void suspend_property_changes ()
 
virtual void resume_property_changes ()
 
bool property_changes_suspended () const
 

Private Member Functions

void execute ()
 

Additional Inherited Members

- Public Attributes inherited from PBD::Stateful
PBD::Signal1< void, const PropertyChange & > PropertyChanged
 
- Static Public Attributes inherited from PBD::Stateful
static int current_state_version
 
static int loading_state_version
 
- Protected Member Functions inherited from MIDIInvokable
void midi_sense_note (MIDI::Parser &, MIDI::EventTwoBytes *, bool is_on)
 
void midi_sense_note_on (MIDI::Parser &p, MIDI::EventTwoBytes *tb)
 
void midi_sense_note_off (MIDI::Parser &p, MIDI::EventTwoBytes *tb)
 
void midi_sense_controller (MIDI::Parser &, MIDI::EventTwoBytes *)
 
void midi_sense_program_change (MIDI::Parser &, MIDI::byte)
 
void midi_sense_sysex (MIDI::Parser &, MIDI::byte *, size_t)
 
void midi_sense_any (MIDI::Parser &, MIDI::byte *, size_t)
 
- Protected Member Functions inherited from PBD::Stateful
void add_instant_xml (XMLNode &, const std::string &directory_path)
 
XMLNodeinstant_xml (const std::string &str, const std::string &directory_path)
 
void add_properties (XMLNode &) const
 
PropertyChange set_values (XMLNode const &)
 
virtual void post_set (const PropertyChange &)
 
virtual void send_change (const PropertyChange &)
 
virtual void mid_thaw (const PropertyChange &)
 
bool regenerate_xml_or_string_ids () const
 
- Protected Attributes inherited from MIDIInvokable
GenericMidiControlProtocol_ui
 
std::string _invokable_name
 
MIDI::Parser_parser
 
PBD::ScopedConnection midi_sense_connection [2]
 
MIDI::eventType control_type
 
MIDI::byte control_additional
 
MIDI::channel_t control_channel
 
MIDI::bytedata
 
size_t data_size
 
bool _parameterized
 
- Protected Attributes inherited from PBD::Stateful
XMLNode_extra_xml
 
XMLNode_instant_xml
 
PBD::PropertyChange _pending_changed
 
Glib::Threads::Mutex _lock
 
std::string _xml_node_name
 name of node to use for this object in XML More...
 
OwnedPropertyList_properties
 

Detailed Description

Definition at line 43 of file midiaction.h.

Constructor & Destructor Documentation

◆ MIDIAction()

MIDIAction::MIDIAction ( MIDI::Parser )

◆ ~MIDIAction()

virtual MIDIAction::~MIDIAction ( )
virtual

Member Function Documentation

◆ action_name()

const std::string& MIDIAction::action_name ( ) const
inline

Definition at line 51 of file midiaction.h.

◆ execute()

void MIDIAction::execute ( )
privatevirtual

Implements MIDIInvokable.

◆ get_state()

XMLNode& MIDIAction::get_state ( ) const
virtual

Implements PBD::Stateful.

◆ init()

int MIDIAction::init ( GenericMidiControlProtocol ,
const std::string &  action_name,
MIDI::byte sysex = 0,
size_t  ssize = 0 
)
virtual

Reimplemented from MIDIInvokable.

◆ set_state()

int MIDIAction::set_state ( const XMLNode ,
int  version 
)
virtual

Implements PBD::Stateful.


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