DRDE/ACTK1_0/se/LPE/LPChkRespExtension.hpp

41 lines
967 B
C++
Raw Normal View History

2014-01-25 17:30:04 +00:00
#ifndef LPCK_RESPONSE_EXTENSION_H_
#define LPCK_RESPONSE_EXTENSION_H_
#include <set>
#include <string>
2014-01-27 03:33:17 +00:00
#include <mdLogger.h>
2014-01-25 17:30:04 +00:00
#include <se/ResponseExtension.hpp>
class XMLDocument;
class LPChkRespExtension : public ResponseExtension
{
public:
LPChkRespExtension();
2014-01-27 17:24:42 +00:00
virtual void fromXML(XMLDocument *xmlDoc);
bool affirmativeResponse();
2014-01-28 18:16:48 +00:00
bool doClaimsExist() { return response; }
virtual bool isInitialised() const;
const char *getClaimsKey();
2014-01-25 17:30:04 +00:00
private:
2014-01-27 03:33:17 +00:00
const XMLDocument *xmlDoc;
2014-01-25 17:30:04 +00:00
2014-01-27 03:33:17 +00:00
bool typeIsClaims; // False implies type is availablity
2014-01-27 17:24:42 +00:00
bool initialised;
2014-01-27 03:33:17 +00:00
bool response; // true/false attribute in reply
2014-01-25 17:30:04 +00:00
2014-01-27 03:33:17 +00:00
static const std::string CKCLAIM_EXPR();
2014-01-28 18:16:48 +00:00
static const std::string CKKEY_EXPR();
std::string claimsKey;
2014-01-25 17:30:04 +00:00
};
2014-01-27 17:24:42 +00:00
inline bool LPChkRespExtension::isInitialised() const
{
return initialised;
}
2014-01-25 17:30:04 +00:00
#endif /* LPCK_RESPONSE_EXTENSION_H_ */