This commit is contained in:
Ren RenJuan 2014-01-23 13:03:48 +00:00
parent 72963b74a6
commit ef7da26042
3 changed files with 10 additions and 9 deletions

View File

@ -18,10 +18,8 @@ void LPCmdExtender::addToCommand(const Command &command) const
DOMElement* extensionElement = command.getExtensionElement(); DOMElement* extensionElement = command.getExtensionElement();
DOMElement* createElement; DOMElement* createElement;
thisCommand = command.getCommandType()->getCommandName();
createElement = xmlWriter->appendChild(extensionElement, createElement = xmlWriter->appendChild(extensionElement,
"create", launchPhaseExtension().getURI()); t->getCommandName().c_str(), launchPhaseExtension().getURI());
if (createData.get() != NULL) if (createData.get() != NULL)
{ {

View File

@ -14,9 +14,11 @@ class LPCmdExtender : public CommandExtension
void setCreateData(LPLaunch* createData); void setCreateData(LPLaunch* createData);
void createXMLElement(XMLWriter* xmlWriter, DOMElement* addElement); void createXMLElement(XMLWriter* xmlWriter, DOMElement* addElement);
LPCmdExtender(Command x) : t(x.getCommandType()) {}
private: private:
std::string &thisCommand; const CommandType *t;
std::auto_ptr<LPLaunch> createData; std::auto_ptr<LPLaunch> createData;
}; };

View File

@ -184,7 +184,7 @@ void ausRegEPPTK::doOTEB()
theseLogs->logN(1,"(%d) LPE Check of unicycles.bike",cmd++); theseLogs->logN(1,"(%d) LPE Check of unicycles.bike",cmd++);
DomainCheckCommand oteCommand_2("unicycles.bike"); DomainCheckCommand oteCommand_2("unicycles.bike");
LPCmdExtender oteCX; LPCmdExtender oteCX(oteCommand_2);
oteCommand_2.appendExtension(oteCX); oteCommand_2.appendExtension(oteCX);
DomainCheckResponse oteResponse_2; DomainCheckResponse oteResponse_2;
@ -289,7 +289,8 @@ void ausRegEPPTK::doOTEB()
theseLogs->logN(1,"(%d) Sunrise create %s with ICANN SMD test files.",cmd++,name5); theseLogs->logN(1,"(%d) Sunrise create %s with ICANN SMD test files.",cmd++,name5);
DomainCreateCommand oteCommand_5(name5,pw,&RID, &tech, &ns, &admin, &billing); DomainCreateCommand oteCommand_5(name5,pw,&RID, &tech, &ns, &admin, &billing);
LPCmdExtender oteC5X; oteC5X.addToCommand(oteCommand_5); LPCmdExtender oteC5X(oteCommand_5);
oteC5X.addToCommand(oteCommand_5);
DomainCreateResponse oteResponse_5; DomainCreateResponse oteResponse_5;
thisTest = Transaction(&oteCommand_5, &oteResponse_5); thisTest = Transaction(&oteCommand_5, &oteResponse_5);
@ -298,8 +299,8 @@ void ausRegEPPTK::doOTEB()
theseLogs->logN(1,"(%d) Create test-validate.claimsgasix (TCN).",cmd++); theseLogs->logN(1,"(%d) Create test-validate.claimsgasix (TCN).",cmd++);
DomainCreateCommand oteCommand_6("test-validate.claimsgasix",pw,&RID, &tech, &ns, &admin, &billing); DomainCreateCommand oteCommand_6("test-validate.claimsgasix",pw,&RID, &tech, &ns, &admin, &billing);
LPCmdExtender oteC6X; LPCmdExtender oteC6X(oteCommand_6);
oteCommand_6.appendExtension(oteC6X); oteC6X.addToCommand(oteCommand_6);
DomainCreateResponse oteResponse_6; DomainCreateResponse oteResponse_6;
thisTest = Transaction(&oteCommand_6, &oteResponse_6); thisTest = Transaction(&oteCommand_6, &oteResponse_6);