DRDE/ACTK1_0/se/LPE/LPChkRespExtension.cpp

43 lines
929 B
C++

#include "xml/XMLDocument.hpp"
#include "se/Response.hpp"
#include "se/ResponseExtension.hpp"
#include "se/LPE/LPChkRespExtension.hpp"
#include <xalanc/XalanDOM/XalanNamedNodeMap.hpp>
#include <xalanc/XalanDOM/XalanDOMString.hpp>
extern mdLogger mdLog;
/*
* Have to use static funcion instead of static variable
* since there is not guarantee about the construct/destruct
* order of a static instance of any types
*/
const std::string LPChkRespExtension::CKCLAIM_EXPR()
{
return EXTENSION_EXPR() + "/launch:cd/launch:name";
}
LPChkRespExtension::LPChkRespExtension() : typeIsClaims(true)
{
}
void LPChkRespExtension::fromXML(XMLDocument *xmlDoc)
{
const std::string respElement = CKCLAIM_EXPR();
try {
const XalanNode * response = xmlDoc->getElement(respElement);
if (response) {
}
}
catch(std::exception e)
{
mdLog.logN(1,"%s.",e.what());
}
}