2014-01-24 22:23:30 +00:00
|
|
|
#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"
|
|
|
|
|
2014-01-28 18:16:48 +00:00
|
|
|
using namespace std;
|
2014-01-24 22:23:30 +00:00
|
|
|
|
|
|
|
class LPCrtCmdExtension : public CommandExtension
|
|
|
|
{
|
|
|
|
public:
|
2014-01-28 18:16:48 +00:00
|
|
|
LPCrtCmdExtension (const std::string *phaseName);
|
2014-01-24 22:23:30 +00:00
|
|
|
virtual void addToCommand(const Command &command) const;
|
2014-01-28 18:16:48 +00:00
|
|
|
bool hasNoticeID() {return haveNoticeID;}
|
|
|
|
void setNoticeID(string &idVal,string ¬AftVal, string &acceptedVal) {
|
|
|
|
noticeID = idVal; notAfter = notAftVal; acceptedDate = acceptedVal; haveNoticeID = true;
|
|
|
|
}
|
2014-02-04 19:58:44 +00:00
|
|
|
void setSMD(std::string toWhat);
|
2014-01-24 22:23:30 +00:00
|
|
|
private:
|
2014-02-04 19:58:44 +00:00
|
|
|
bool haveNoticeID,haveSMD;
|
|
|
|
|
|
|
|
std::string acceptedDate;
|
2014-01-24 22:23:30 +00:00
|
|
|
std::string lpePhaseName;
|
2014-01-28 18:16:48 +00:00
|
|
|
std::string noticeID;
|
|
|
|
std::string notAfter;
|
2014-02-04 19:58:44 +00:00
|
|
|
std::string smdData;
|
2014-01-24 22:23:30 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
2014-01-28 18:16:48 +00:00
|
|
|
inline LPCrtCmdExtension::LPCrtCmdExtension( const std::string *phaseName)
|
2014-01-24 22:23:30 +00:00
|
|
|
{
|
|
|
|
if (phaseName == NULL)
|
|
|
|
{
|
|
|
|
throw IllegalArgException(
|
|
|
|
ErrorPkg::getMessage("launch extension phase not set"));
|
|
|
|
}
|
|
|
|
|
|
|
|
lpePhaseName = std::string(*phaseName);
|
2014-01-28 18:16:48 +00:00
|
|
|
haveNoticeID = haveSMD = false;
|
2014-01-24 22:23:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif // __DOMAIN_UPDATE_COMMAND_EXTENSION_HPP
|
2014-01-28 18:16:48 +00:00
|
|
|
|
|
|
|
|