ardour
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Command Class Referenceabstract

#include <command.h>

Inheritance diagram for Command:
PBD::StatefulDestructible PBD::ScopedConnectionList PBD::Stateful PBD::Destructible ARDOUR::MidiModel::DiffCommand MementoCommand< obj_T > PBD::FunctorCommand< obj_type, arg_type > PBD::StatefulDiffCommand UndoTransaction ARDOUR::MidiModel::NoteDiffCommand ARDOUR::MidiModel::PatchChangeDiffCommand ARDOUR::MidiModel::SysExDiffCommand

Public Member Functions

virtual ~Command ()
 
virtual void operator() ()=0
 
void set_name (const std::string &str)
 
const std::string & name () const
 
virtual void undo ()=0
 
virtual void redo ()
 
virtual XMLNodeget_state ()
 
virtual int set_state (const XMLNode &, int)
 
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 ()
 

Protected Member Functions

 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

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
 

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
 

Detailed Description

Definition at line 31 of file command.h.

Constructor & Destructor Documentation

virtual Command::~Command ( )
inlinevirtual

Definition at line 34 of file command.h.

Command::Command ( )
inlineprotected

Definition at line 52 of file command.h.

Command::Command ( const std::string &  name)
inlineprotected

Definition at line 53 of file command.h.

Member Function Documentation

virtual bool Command::empty ( ) const
inlinevirtual

Reimplemented in PBD::StatefulDiffCommand, and UndoTransaction.

Definition at line 47 of file command.h.

XMLNode & Command::get_state ( void  )
virtual
const std::string& Command::name ( ) const
inline

Definition at line 39 of file command.h.

virtual void Command::operator() ( )
pure virtual
virtual void Command::redo ( )
inlinevirtual

Reimplemented in UndoTransaction.

Definition at line 42 of file command.h.

void Command::set_name ( const std::string &  str)
inline

Definition at line 38 of file command.h.

virtual int Command::set_state ( const XMLNode ,
int   
)
inlinevirtual
virtual void Command::undo ( )
pure virtual

Member Data Documentation

std::string Command::_name
protected

Definition at line 55 of file command.h.


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