41 lines
967 B
C++
41 lines
967 B
C++
#ifndef LPCK_RESPONSE_EXTENSION_H_
|
|
#define LPCK_RESPONSE_EXTENSION_H_
|
|
|
|
#include <set>
|
|
#include <string>
|
|
#include <mdLogger.h>
|
|
#include <se/ResponseExtension.hpp>
|
|
|
|
class XMLDocument;
|
|
|
|
class LPChkRespExtension : public ResponseExtension
|
|
{
|
|
public:
|
|
LPChkRespExtension();
|
|
|
|
virtual void fromXML(XMLDocument *xmlDoc);
|
|
bool affirmativeResponse();
|
|
bool doClaimsExist() { return response; }
|
|
virtual bool isInitialised() const;
|
|
const char *getClaimsKey();
|
|
|
|
private:
|
|
const XMLDocument *xmlDoc;
|
|
|
|
bool typeIsClaims; // False implies type is availablity
|
|
bool initialised;
|
|
bool response; // true/false attribute in reply
|
|
|
|
static const std::string CKCLAIM_EXPR();
|
|
static const std::string CKKEY_EXPR();
|
|
std::string claimsKey;
|
|
};
|
|
|
|
|
|
inline bool LPChkRespExtension::isInitialised() const
|
|
{
|
|
return initialised;
|
|
}
|
|
|
|
#endif /* LPCK_RESPONSE_EXTENSION_H_ */
|