DRDE/ACTK1_0/se/LPE/LPCrtCmdExtension.hpp

35 lines
802 B
C++

#ifndef __DOMAIN_CR_COMMAND_EXTENSION_HPP
#define __DOMAIN_CR_COMMAND_EXTENSION_HPP
#include <string>
#include "common/ErrorPkg.hpp"
#include "se/Command.hpp"
#include "se/CommandExtension.hpp"
#include "se/IllegalArgException.hpp"
class LPCrtCmdExtension : public CommandExtension
{
public:
LPCrtCmdExtension(const std::string *phaseName);
virtual void addToCommand(const Command &command) const;
private:
std::string lpePhaseName;
};
inline LPCrtCmdExtension::LPCrtCmdExtension(
const std::string *phaseName)
{
if (phaseName == NULL)
{
throw IllegalArgException(
ErrorPkg::getMessage("launch extension phase not set"));
}
lpePhaseName = std::string(*phaseName);
}
#endif // __DOMAIN_UPDATE_COMMAND_EXTENSION_HPP