DRDE/ACTK1_0/se/LPE/LPChkRespExtension.cpp
Ren RenJuan 6bc00e701c *
2014-01-27 04:02:34 +00:00

43 lines
954 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();
const XalanNode * responSE = xmlDoc->getElement(respElement);
const std::string respAttr("exists");
if (!responSE) {
mdLog.logN(0,"Parse error in LPChkResponse");
}
else {
if (responSE->getAttributes()) {}
}
}