#ifndef __ARC_SEC_INRANGE_FUNCTION_H__ #define __ARC_SEC_INRANGE_FUNCTION_H__ #include namespace ArcSec { #define IN_RANGE "-in-range" #define NAME_STRING_IN_RANGE "string-in-range" #define NAME_TIME_IN_RANGE "time-in-range" class InRangeFunction : public Function { public: InRangeFunction(std::string functionName, std::string argumentType); public: virtual AttributeValue* evaluate(AttributeValue* arg0, AttributeValue* arg1, bool check_id = true); virtual std::list evaluate(std::list args, bool check_id = true); //help function specific for existing policy expression because of no exiplicit function defined in policy static std::string getFunctionName(std::string datatype); private: std::string fnName; std::string argType; }; } // namespace ArcSec #endif /* __ARC_SEC_INRANGE_FUNCTION_H__ */