It relates policy names with actual policies and deals with dependencies.
typedef Dependency<PolicyStatement>::KEYS KEYS | KEYS |
PolicyMapError (class) | PolicyMapError |
PolicyStatement& find (const string& name)
| find |
[const]
Find a policy.
Throws an exception if not found.
Parameters:
name | name of policy wanted. |
Returns: policy requested.
bool exists (const string& name)
| exists |
Checks if a policy exists.
Parameters:
name | name of policy. |
Returns: true if policy exists.
void create (const string& name, SetMap& smap)
| create |
Attempts to create a policy and update depndencies.
Throws an exception on error.
Parameters:
name | name of policy. |
smap | SetMap used for updating dependencies. |
void delete_policy (const string& name)
| delete_policy |
Attempts to delete a policy.
Throws an exception on error.
Parameters:
name | policy name. |
void add_dependency (const string& policyname, const string& protocol)
| add_dependency |
Indicates the use of a policy by a protocol.
Parameters:
policyname | policy name. |
protocol | name of protocol which uses policy. |
void del_dependency (const string& policyname, const string& protocol)
| del_dependency |
Remove the use of a policy by a protocol.
Parameters:
policyname | policy name. |
protocol | name of protocol which no longer uses policy. |
string str ()
| str |
Dumps all policies in human readable format.
Returns: string representation of all policies.
void clear ()
| clear |
void policy_deps (const string& policy, DEPS& deps)
| policy_deps |
void policies (KEYS& out)
| policies |