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 dependancies 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_dependancy (const string& setname, const string& policyname)

add_dependancy

Add a dependancy of a policy using a set.

Throws an exception if set is not found.

Parameters:

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

del_dependancy

Delete a dependancy of a policy using a set.

Throws an exception if set or policy is not found.

Parameters:

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

str

[const]

Returns: string representation of all sets.


Generated by: bms on anglepoise.lon.incunabulum.net on Wed Jul 23 10:05:59 2008, using kdoc 2.0a54+XORP.