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& name, const string& elements, set<string>& modified)

update_set

Replace the elements of a set.

Throws an expcetion if set does not exist.

Parameters:

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_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: pavlin on possum.icir.org on Wed Apr 13 21:53:13 2005, using kdoc $.