7 #ifndef __FWCOMMAND_ICOMMAND_HPP__ 8 #define __FWCOMMAND_ICOMMAND_HPP__ 10 #include "fwCommand/config.hpp" 26 typedef std::shared_ptr<ICommand> sptr;
38 FWCOMMAND_API
virtual size_t getSize()
const = 0;
43 FWCOMMAND_API
virtual bool redo() = 0;
48 FWCOMMAND_API
virtual bool undo() = 0;
62 #endif // __FWCOMMAND_ICOMMAND_HPP__ virtual FWCOMMAND_API ~ICommand()
Virtual destructor.
The base class for commands.
virtual FWCOMMAND_API const std::string getDescription() const
Return an optionnal description of the command.
The namespace fwCommand contains classes describing and managing commands.