class ExternalEvaluator

Safe wrapper around the ExternalEvaluatorImpl

Public Methods

ExternalEvaluator ()
Constructor
~ExternalEvaluator ()
Destructor
bool canHandleSystemAttribute (const string& attribute)
Returns true if this evaluator knows how to handle the SYSTEM attribute specified in the argument
bool evaluateSystemAttribute (TokenType op, const AttributeInfo& attrInfo)
Returns true if (attrInfo
bool canHandleExternalAttribute (const string& attribute)
Returns true if this evaluator knows how to handle the EXT_AUTH attribute specified in the argument
bool evaluateExternalAttribute (TokenType op, const AttributeInfo& attrInfo)
Returns true if (attrInfo

Documentation

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()
Constructor

~ExternalEvaluator()
Destructor

bool canHandleSystemAttribute(const string& attribute)
Returns true if this evaluator knows how to handle the SYSTEM attribute specified in the argument.
See Also:
AttributeInfo

bool evaluateSystemAttribute(TokenType op, const AttributeInfo& attrInfo)
Returns true if (attrInfo.getAttribute() op attrInfo.getValue()) Note: the engine will call this method only if canHandleSystemAttribute

bool canHandleExternalAttribute(const string& attribute)
Returns true if this evaluator knows how to handle the EXT_AUTH attribute specified in the argument.
See Also:
AttributeInfo

bool evaluateExternalAttribute(TokenType op, const AttributeInfo& attrInfo)
Returns true if (attrInfo.getAttribute() op attrInfo.getValue()) Note: the engine will call this method only if canHandleHandleExternalAttribute returned true.


This class has no child classes.
Author:
Abdelilah Essiari
Version:
1.1 03/04/2003
See Also:
ExternalEvaluatorImpl

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de