class PolicyStatement

A policy statement is a collection of terms. More...

 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Types

Public Methods


Detailed Description

PolicyStatementErr (class)

PolicyStatementErr

typedef ConfigNodeIdMap<Term*> TermContainer

TermContainer

 PolicyStatement (const string& name, SetMap& smap)

PolicyStatement

Parameters:

namethe name of the policy.
smapthe SetMap. Used for dependancy tracking.
 ~PolicyStatement ()

~PolicyStatement

void  add_term (const ConfigNodeId& order, Term* term)

add_term

Append a term at the end of the policy.

Caller must not delete / modify pointer.

Parameters:

ordernode ID with position of term.
termterm to append to policy.
Term&  find_term (const string& name)

find_term

[const]

Throws exception if no term is found.

Parameters:

namename of term to find.

Returns: term requested.

bool  term_exists (const string& name)

term_exists

[const]

Checks if a term already exists.

Parameters:

nameterm name.

Returns: true if term exists, false otherwise.

bool  delete_term (const string& name)

delete_term

Attempts to delete a term.

Parameters:

namename of term to delete.

Returns: true on successful delete, false otherwise.

void  set_policy_end ()

set_policy_end

Perform operations at the end of the policy.

const string&  name ()

name

[const]

Returns: name of policy.

bool  accept (Visitor& v)

accept

Visitor implementation.

Parameters:

vvisitor to visit policy.
TermContainer&  terms ()

terms

Returns: terms of this policy

void  set_dependancy (const set<string>& sets)

set_dependancy

Replace the set dependancies.

Parameters:

setsthe new sets this policy is dependant on.

Generated by: pavlin on possum.icir.org on Wed Mar 21 11:23:43 2007, using kdoc $.