class PolicyMap

Container of all policies. More...

 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Types

Public Methods


Detailed Description

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:

namename of policy wanted.

Returns: policy requested.

bool  exists (const string& name)

exists

Checks if a policy exists.

Parameters:

namename 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:

namename of policy.
smapSetMap used for updating dependancies.
void  delete_policy (const string& name)

delete_policy

Attempts to delete a policy.

Throws an exception on error.

Parameters:

namepolicy name.
void  add_dependancy (const string& policyname, const string& protocol)

add_dependancy

Indicates the use of a policy by a protocol.

Parameters:

policynamepolicy name.
protocolname 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:

policynamepolicy name.
protocolname of protocol which no longer uses policy.

Generated by: pavlin on possum.icir.org on Wed Apr 13 21:53:13 2005, using kdoc $.