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

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 depndencies.

Throws an exception on error.

Parameters:

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

delete_policy

Attempts to delete a policy.

Throws an exception on error.

Parameters:

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

add_dependency

Indicates the use of a policy by a protocol.

Parameters:

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

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


Generated by: pavlin on kobe.xorp.net on Wed Jan 7 19:11:02 2009, using kdoc 2.0a54+XORP.