/usr/include/arc/security/ArcPDP/fn/Function.h is in nordugrid-arc-dev 4.0.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | #ifndef __ARC_SEC_FUNCTION_H__
#define __ARC_SEC_FUNCTION_H__
#include <list>
#include <string>
#include <arc/security/ArcPDP/attr/AttributeValue.h>
namespace ArcSec {
//static std::string FUNCTION_NS = "know-arc:function";
//#define FUNCTION_NS "know-arc:function"
///Interface for function, which is in charge of evaluating two AttributeValue
class Function {
public:
Function(std::string, std::string){};
virtual ~Function(){};
public:
/**Evaluate two AttributeValue objects, and return one AttributeValue object */
virtual AttributeValue* evaluate(AttributeValue* arg0, AttributeValue* arg1, bool check_id = true) = 0;
/**Evaluate a list of AttributeValue objects, and return a list of Attribute objects*/
virtual std::list<AttributeValue*> evaluate(std::list<AttributeValue*> args, bool check_id = true) = 0;
};
} // namespace ArcSec
#endif /* __ARC_SEC_FUNCTION_H__ */
|