class SetMap

Container of all sets. More...

 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Types

Public Methods


Detailed Description

The SetMap owns all sets in the policy configuration. It also tracks dependencies between sets and policies.

SetMapError (class)

SetMapError

const Element&  getSet (const string& name)

getSet

[const]

Throws exception if set is not found.

Parameters:

nameset name requested.

Returns: set requested.

void  create (const string& name)

create

Create a new set.

Throws exception if set exists.

Parameters:

namename of the set.
void  update_set (const string& type, const string& name, const string& elements, set<string>& modified)

update_set

Replace the elements of a set.

Throws an expcetion if set does not exist.

Parameters:

typetype of the set.
namename of the set.
elementsthe new elements comma separated.
modifiedset filled with policies which are now modified.
void  delete_set (const string& name)

delete_set

Attempts to delete a set.

Throws an exception if set is in use.

Parameters:

namename of the set.
void  add_to_set (const string& type, const string& name, const string& element, set<string>& modified)

add_to_set

Add an element to a set.

Throws an expcetion if set does not exist.

Parameters:

typetype of the set.
namename of the set.
elementthe element to add.
modifiedset filled with policies which are now modified.
void  delete_from_set (const string& type, const string& name, const string& element, set<string>& modified)

delete_from_set

Delete an element from a set.

Throws an expcetion if set does not exist.

Parameters:

typetype of the set.
namename of the set.
elementthe element to delete.
modifiedset filled with policies which are now modified.
void  add_dependency (const string& setname, const string& policyname)

add_dependency

Add a dependency of a policy using a set.

Throws an exception if set is not found.

Parameters:

setnamename of set in which dependency should be added.
policynamename of policy which uses the set.
void  del_dependency (const string& setname, const string& policyname)

del_dependency

Delete a dependency of a policy using a set.

Throws an exception if set or policy is not found.

Parameters:

setnamename of set in which dependency should be removed.
policynamename of policy which no longer uses the set.
string  str ()

str

[const]

Returns: string representation of all sets.

void  sets_by_type (SETS& s, const string& type)

sets_by_type

[const]


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