#ifndef _LPE_COMMAND_EXTENSION_HPP_ #define _LPE_COMMAND_EXTENSION_HPP_ #include "se/Command.hpp" #include "se/CommandExtension.hpp" #include "LPLaunch.hpp" class LPCmdExtender : public CommandExtension { public: virtual void addToCommand(const Command &command) const; void setCreateData(LPLaunch* createData); void createXMLElement(XMLWriter* xmlWriter, DOMElement* addElement); LPCmdExtender(Command x) : t(x.getCommandType()) {} private: const CommandType *t; std::auto_ptr createData; }; inline void LPCmdExtender::setCreateData(LPLaunch* createData) { this->createData.reset(createData); } #endif /* _LPE_COMMAND_EXTENSION_HPP_ */