|
|
CodeList (const string& p)
| CodeList |
Initialize codelist for a specific protocol.
Parameters:
p | protocol. |
~CodeList ()
| ~CodeList |
void push_back (Code* c)
| push_back |
Append code to the list Code is now owned by the code list.
Parameters:
c | code to append. Caller must not delete code. |
string str ()
| str |
[const]
Returns: string representation of the code list.
void link_code (Code& c)
| link_code |
[const]
Links all code in the code list to c. The code is basically added to c.
Parameters:
c | code to link current code list to. |
void get_targets (Code::TargetSet& targets)
| get_targets |
[const]
Parameters:
targets | argument is filled with targets the code list has. |
void get_tags (const string& protocol, Code::TagSet& tagset)
| get_tags |
[const]
Return all tags used by a certain protocol, in the code list.
Parameters:
protocol | protocol caller wants tags of. |
tagset | filled with policytags used by protocol. |