ardour
Classes | Public Types | Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
ARDOUR::MidiModel::SysExDiffCommand Class Reference

#include <midi_model.h>

Inheritance diagram for ARDOUR::MidiModel::SysExDiffCommand:
ARDOUR::MidiModel::DiffCommand Command PBD::StatefulDestructible PBD::ScopedConnectionList PBD::Stateful PBD::Destructible

Classes

struct  Change
 

Public Types

enum  Property { Time }
 

Public Member Functions

 SysExDiffCommand (boost::shared_ptr< MidiModel > m, const XMLNode &node)
 
int set_state (const XMLNode &, int version)
 
XMLNodeget_state ()
 
void remove (SysExPtr sysex)
 
void operator() ()
 
void undo ()
 
void change (boost::shared_ptr< Evoral::Event< TimeType > >, TimeType)
 
- Public Member Functions inherited from ARDOUR::MidiModel::DiffCommand
 DiffCommand (boost::shared_ptr< MidiModel > m, const std::string &name)
 
const std::string & name () const
 
boost::shared_ptr< MidiModelmodel () const
 
- Public Member Functions inherited from Command
virtual ~Command ()
 
void set_name (const std::string &str)
 
const std::string & name () const
 
virtual void redo ()
 
virtual bool empty () const
 
- Public Member Functions inherited from PBD::Stateful
 Stateful ()
 
virtual ~Stateful ()
 
virtual bool apply_changes (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 (Command *) const
 
virtual void rdiff (std::vector< 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
 
- Public Member Functions inherited from PBD::Destructible
 Destructible ()
 
virtual ~Destructible ()
 
void drop_references ()
 
- Public Member Functions inherited from PBD::ScopedConnectionList
 ScopedConnectionList ()
 
virtual ~ScopedConnectionList ()
 
void add_connection (const UnscopedConnection &c)
 
void drop_connections ()
 

Private Types

typedef std::list< ChangeChangeList
 

Private Member Functions

XMLNodemarshal_change (const Change &)
 
Change unmarshal_change (XMLNode *)
 

Private Attributes

ChangeList _changes
 
std::list< SysExPtr_removed
 

Additional Inherited Members

- Public Attributes inherited from PBD::Stateful
PBD::Signal1< void, const
PropertyChange & > 
PropertyChanged
 
- Public Attributes inherited from PBD::Destructible
PBD::Signal0< void > Destroyed
 
PBD::Signal0< void > DropReferences
 
- Static Public Attributes inherited from PBD::Stateful
static int current_state_version = 0
 
static int loading_state_version = 0
 
- Protected Member Functions inherited from Command
 Command ()
 
 Command (const std::string &name)
 
- 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 &)
 
PropertyChange set_values (XMLNode const &)
 
virtual void post_set (const PropertyChange &)
 
virtual void send_change (const PropertyChange &)
 
virtual void mid_thaw (const PropertyChange &)
 
- Protected Attributes inherited from ARDOUR::MidiModel::DiffCommand
boost::shared_ptr< MidiModel_model
 
const std::string _name
 
- Protected Attributes inherited from Command
std::string _name
 
- 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 159 of file midi_model.h.

Member Typedef Documentation

Definition at line 185 of file midi_model.h.

Member Enumeration Documentation

Enumerator
Time 

Definition at line 163 of file midi_model.h.

Constructor & Destructor Documentation

MidiModel::SysExDiffCommand::SysExDiffCommand ( boost::shared_ptr< MidiModel m,
const XMLNode node 
)

Definition at line 760 of file midi_model.cc.

Member Function Documentation

void MidiModel::SysExDiffCommand::change ( boost::shared_ptr< Evoral::Event< TimeType > >  s,
TimeType  new_time 
)

Definition at line 768 of file midi_model.cc.

XMLNode & MidiModel::SysExDiffCommand::get_state ( void  )
virtual

Implements ARDOUR::MidiModel::DiffCommand.

Definition at line 946 of file midi_model.cc.

XMLNode & MidiModel::SysExDiffCommand::marshal_change ( const Change change)
private

Definition at line 849 of file midi_model.cc.

void MidiModel::SysExDiffCommand::operator() ( )
virtual

Implements ARDOUR::MidiModel::DiffCommand.

Definition at line 781 of file midi_model.cc.

void MidiModel::SysExDiffCommand::remove ( SysExPtr  sysex)

Definition at line 843 of file midi_model.cc.

int MidiModel::SysExDiffCommand::set_state ( const XMLNode diff_command,
int  version 
)
virtual

Implements ARDOUR::MidiModel::DiffCommand.

Definition at line 923 of file midi_model.cc.

void MidiModel::SysExDiffCommand::undo ( )
virtual

Implements ARDOUR::MidiModel::DiffCommand.

Definition at line 811 of file midi_model.cc.

MidiModel::SysExDiffCommand::Change MidiModel::SysExDiffCommand::unmarshal_change ( XMLNode xml_change)
private

Definition at line 877 of file midi_model.cc.

Member Data Documentation

ChangeList ARDOUR::MidiModel::SysExDiffCommand::_changes
private

Definition at line 186 of file midi_model.h.

std::list<SysExPtr> ARDOUR::MidiModel::SysExDiffCommand::_removed
private

Definition at line 188 of file midi_model.h.


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