#include <boost/shared_ptr.hpp>
#include <boost/weak_ptr.hpp>
+
+#include "pbd/libpbd_visibility.h"
#include "pbd/command.h"
namespace PBD
/** A Command which stores its action as the differences between the before and after
* state of a Stateful object.
*/
-class StatefulDiffCommand : public Command
+class LIBPBD_API StatefulDiffCommand : public Command
{
public:
StatefulDiffCommand (boost::shared_ptr<StatefulDestructible>);
XMLNode& get_state ();
+ bool empty () const;
+
private:
boost::weak_ptr<Stateful> _object; ///< the object in question
- PBD::PropertyList* _undo; ///< its (partial) state before the command, to allow undo
- PBD::PropertyList* _redo; ///< its (partial) state after the operation, to allow redo
+ PBD::PropertyList* _changes; ///< property changes to execute this command
};
};