/* * ActionState.hpp * * Created on: Aug 19, 2013 * Author: heber */ #ifndef ACTIONSTATE_HPP_ #define ACTIONSTATE_HPP_ // include config.h #ifdef HAVE_CONFIG_H #include #endif #include namespace MoleCuilder { /** * This class can be used by actions to save the state. * * It is implementing a memento pattern. The base class is completely empty, * since no general state internals can be given. The Action performing * the Undo should downcast to the appropriate type. */ class ActionState{ public: /** * This type is used to store pointers to ActionStates while allowing multiple ownership */ typedef boost::shared_ptr ptr; ActionState(){} virtual ~ActionState(){} }; } #endif /* ACTIONSTATE_HPP_ */