Safe wrapper around the ExternalEvaluatorImpl
![]() | ExternalEvaluator () Constructor |
![]() | ~ExternalEvaluator () Destructor |
![]() | canHandleSystemAttribute (const string& attribute) Returns true if this evaluator knows how to handle the SYSTEM attribute specified in the argument |
![]() | evaluateSystemAttribute (TokenType op, const AttributeInfo& attrInfo) Returns true if (attrInfo |
![]() | canHandleExternalAttribute (const string& attribute) Returns true if this evaluator knows how to handle the EXT_AUTH attribute specified in the argument |
![]() | evaluateExternalAttribute (TokenType op, const AttributeInfo& attrInfo) Returns true if (attrInfo |
Safe wrapper around the ExternalEvaluatorImpl.Usage: class MySpecialEvaluator : public ExternalEvaluatorImpl { public: bool canHandleSystemAttribute(const string& attribute) { return attribute == TIME; } bool evaluateSystemAttribute(TokenType op, const AttributeInfo& attrInfo) { string attribute = attrInfo.getAttribute(); string value = attrInfo.getValue(); bool ret = false; switch(op) { case LT: ... case GT: .... } return ret; } }; // INSTALLING AN EVALUATOR. Evaluator mySpecialEvaluator(new MySpecialEvalutor); AkentiEngine eng; eng.setExternalEvaluator(mySpecialEvaluator); eng.checkAccess(...);
~ExternalEvaluator()
bool canHandleSystemAttribute(const string& attribute)
bool evaluateSystemAttribute(TokenType op, const AttributeInfo& attrInfo)
alphabetic index hierarchy of classes this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling bool canHandleExternalAttribute(const string& attribute)
bool evaluateExternalAttribute(TokenType op, const AttributeInfo& attrInfo)
contact: doc++@zib.de