|
|
PolicyStatementErr (class) | PolicyStatementErr |
typedef list<Term*> TermContainer | TermContainer |
PolicyStatement (const string& name, SetMap& smap)
| PolicyStatement |
Parameters:
name | the name of the policy. |
smap | the SetMap. Used for dependancy tracking. |
~PolicyStatement ()
| ~PolicyStatement |
void add_term (Term* term)
| add_term |
Append a term at the end of the policy.
Caller must not delete / modify pointer.
Parameters:
term | term to append to policy. |
Term& find_term (const string& name)
| find_term |
[const]
Throws exception if no term is found.
Parameters:
name | name of term to find. |
Returns: term requested.
bool term_exists (const string& name)
| term_exists |
[const]
Checks if a term already exists.
Parameters:
name | term name. |
Returns: true if term exists, false otherwise.
bool delete_term (const string& name)
| delete_term |
Attempts to delete a term.
Parameters:
name | name of term to delete. |
Returns: true on successful delete, false otherwise.
string str ()
| str |
Returns: string representation of policy.
const string& name ()
| name |
[const]
Returns: name of policy.
bool accept (Visitor& v)
| accept |
Visitor implementation.
Parameters:
v | visitor 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:
sets | the new sets this policy is dependant on. |