|
|
A target consists of a protocol and a filter type. It identifies exactly which filter of which protocol has to be configured with this code.
Target ()
| Target |
Target (const string& p, filter::Filter f)
| Target |
Construct a target [protocol/filter pair].
Parameters:
p | target protocol. |
f | target filter. |
bool operator< (const Target& rhs)
| operator< |
[const]
Operator to compare Targets. Needed for STL set storage.
Parameters:
rhs | target to compare with |
Returns: true if target is less than argument
bool operator== (const Target& rhs)
| operator== |
[const]
bool operator!= (const Target& rhs)
| operator!= |
[const]
const string protocol ()
| protocol |
[const]
Get the protocol.
Returns: the protocol.
void set_protocol (const string& protocol)
| set_protocol |
Set the protocol.
Parameters:
protocol | the protocol name. |
filter::Filter filter ()
| filter |
[const]
Get the filter type.
Returns: the filter type.
void set_filter (const filter::Filter& filter)
| set_filter |
Set the filter type.
Parameters:
filter | the filter type. |
string str ()
| str |
[const]
Returns: string representation of target.