DRDE/ACTK1_0/se/LPE/LPChkCmdExtension.hpp

35 lines
802 B
C++
Raw Normal View History

2014-01-24 20:49:09 +00:00
#ifndef __DOMAIN_CK_COMMAND_EXTENSION_HPP
#define __DOMAIN_CK_COMMAND_EXTENSION_HPP
#include <string>
#include "common/ErrorPkg.hpp"
#include "se/Command.hpp"
#include "se/CommandExtension.hpp"
#include "se/IllegalArgException.hpp"
class LPChkCmdExtension : public CommandExtension
{
public:
LPChkCmdExtension(const std::string *phaseName);
virtual void addToCommand(const Command &command) const;
private:
std::string lpePhaseName;
};
inline LPChkCmdExtension::LPChkCmdExtension(
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