ardour
Public Member Functions | Private Attributes | List of all members
PBD::StatefulDiffCommand Class Reference

#include <stateful_diff_command.h>

Inheritance diagram for PBD::StatefulDiffCommand:
Command PBD::StatefulDestructible PBD::ScopedConnectionList PBD::Stateful PBD::Destructible

Public Member Functions

 StatefulDiffCommand (boost::shared_ptr< StatefulDestructible >)
 
 StatefulDiffCommand (boost::shared_ptr< StatefulDestructible >, XMLNode const &)
 
 ~StatefulDiffCommand ()
 
void operator() ()
 
void undo ()
 
XMLNodeget_state ()
 
bool empty () 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 int set_state (const XMLNode &, int)
 
- 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 Attributes

boost::weak_ptr< Stateful_object
 the object in question More...
 
PBD::PropertyList_changes
 property changes to execute this command More...
 

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 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

A Command which stores its action as the differences between the before and after state of a Stateful object.

Definition at line 38 of file stateful_diff_command.h.

Constructor & Destructor Documentation

StatefulDiffCommand::StatefulDiffCommand ( boost::shared_ptr< StatefulDestructible s)

Create a new StatefulDiffCommand by examining the changes made to a Stateful since the last time that clear_changes was called on it.

Parameters
sStateful object.

Definition at line 33 of file stateful_diff_command.cc.

StatefulDiffCommand::StatefulDiffCommand ( boost::shared_ptr< StatefulDestructible s,
XMLNode const &  n 
)

Definition at line 46 of file stateful_diff_command.cc.

StatefulDiffCommand::~StatefulDiffCommand ( )

Definition at line 67 of file stateful_diff_command.cc.

Member Function Documentation

bool StatefulDiffCommand::empty ( ) const
virtual

Reimplemented from Command.

Definition at line 121 of file stateful_diff_command.cc.

XMLNode & StatefulDiffCommand::get_state ( void  )
virtual

Reimplemented from Command.

Definition at line 97 of file stateful_diff_command.cc.

void StatefulDiffCommand::operator() ( )
virtual

Implements Command.

Definition at line 75 of file stateful_diff_command.cc.

void StatefulDiffCommand::undo ( )
virtual

Implements Command.

Definition at line 85 of file stateful_diff_command.cc.

Member Data Documentation

PBD::PropertyList* PBD::StatefulDiffCommand::_changes
private

property changes to execute this command

Definition at line 54 of file stateful_diff_command.h.

boost::weak_ptr<Stateful> PBD::StatefulDiffCommand::_object
private

the object in question

Definition at line 53 of file stateful_diff_command.h.


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