Logo Search packages:      
Sourcecode: ardour version File versions  Download package

MementoCommand< obj_T > Class Template Reference

#include <memento_command.h>

Inheritance diagram for MementoCommand< obj_T >:


List of all members.

Detailed Description

template<class obj_T>
class MementoCommand< obj_T >

This command class is initialized with before and after mementos (from Stateful::get_state()), so undo becomes restoring the before memento, and redo is restoring the after memento.

Definition at line 41 of file memento_command.h.

Public Member Functions

void add_extra_xml (XMLNode &)
virtual void add_instant_xml (XMLNode &, const std::string &dir)
void drop_references () const
XMLNode * extra_xml (const std::string &str)
virtual XMLNode & get_state ()
const PBD::ID & id () const
XMLNode * instant_xml (const std::string &str, const std::string &dir)
 MementoCommand (obj_T &object, XMLNode *before, XMLNode *after)
void operator() ()
virtual void redo ()
virtual int set_state (const XMLNode &)
void undo ()

Public Attributes

sigc::signal< void > GoingAway

Protected Attributes

XMLNode * _extra_xml
PBD::ID _id
XMLNode * _instant_xml
XMLNode * after
XMLNode * before
obj_T & obj

Package Functions

void add_destroy_notify_callback (void *data, func_destroy_notify func) const
void notify_callbacks ()
 Execute and remove all previously installed callbacks.
void remove_destroy_notify_callback (void *data) const

Package Attributes

 __pad0__:func_destroy_notify func_destroy_notify

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

Generated by  Doxygen 1.6.0   Back to index