35 lines
802 B
C++
35 lines
802 B
C++
#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
|