It relates policy names with actual policies and deals with dependancies.
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 depndancies.
Throws an exception on error.
Parameters:
name | name of policy. |
smap | SetMap used for updating dependancies. |
void delete_policy (const string& name)
| delete_policy |
Attempts to delete a policy.
Throws an exception on error.
Parameters:
name | policy name. |
void add_dependancy (const string& policyname, const string& protocol)
| add_dependancy |
Indicates the use of a policy by a protocol.
Parameters:
policyname | policy name. |
protocol | name of protocol which uses policy. |
void del_dependancy (const string& policyname, const string& protocol)
| del_dependancy |
Remove the use of a policy by a protocol.
Parameters:
policyname | policy name. |
protocol | name of protocol which no longer uses policy. |