#include "xml/XMLDocument.hpp" #include "se/Response.hpp" #include "se/ResponseExtension.hpp" #include "se/LPE/LPChkRespExtension.hpp" #include #include extern mdLogger mdLog; XALAN_USING_XALAN(XalanDOMString) /* * 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:name@exists"; } LPChkRespExtension::LPChkRespExtension() : typeIsClaims(true), initialised(false) { } void LPChkRespExtension::fromXML(XMLDocument *xmlDoc) { const std::string respElement = CKCLAIM_EXPR(); const XalanNode * responSE = xmlDoc->getElement(respElement); const XalanDOMString respValue("false"); initialised = true; if (!responSE) { mdLog.logN(0,"Parse error in LPChkResponse"); } else { if (responSE->getNodeValue().compare(respValue) != 0) response = true; } }