class ExternalEvaluator

Safe wrapper around the ExternalEvaluatorImpl.

Public Methods

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


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(...);
  * 

o ExternalEvaluator()
Constructor

o ~ExternalEvaluator()
Destructor

obool canHandleSystemAttribute(const string& attribute)
Returns true if this evaluator knows how to handle the SYSTEM attribute specified in the argument.

See Also:
AttributeInfo

obool evaluateSystemAttribute(TokenType op, const AttributeInfo& attrInfo)
Returns true if (attrInfogetAttribute() op attrInfogetValue())

Note: the engine will call this method only if canHandleSystemAttribute

obool canHandleExternalAttribute(const string& attribute)
Returns true if this evaluator knows how to handle the EXT_AUTH attribute specified in the argument.

See Also:
AttributeInfo

obool evaluateExternalAttribute(TokenType op, const AttributeInfo& attrInfo)
Returns true if (attrInfogetAttribute() op attrInfogetValue())

Note: the engine will call this method only if canHandleHandleExternalAttribute returned true.


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

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.