29 lines
627 B
C++
29 lines
627 B
C++
#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);
|
|
|
|
private:
|
|
|
|
std::string &thisCommand;
|
|
std::auto_ptr<LPLaunch> createData;
|
|
};
|
|
|
|
inline void LPCmdExtender::setCreateData(LPLaunch* createData)
|
|
{
|
|
this->createData.reset(createData);
|
|
}
|
|
|
|
#endif /* _LPE_COMMAND_EXTENSION_HPP_ */
|