|
xorp
|
A target represents where the code should be placed. More...
#include <code.hh>
Public Member Functions | |
| Target () | |
| Default constructor. | |
| Target (const string &p, filter::Filter f) | |
| Construct a target [protocol/filter pair]. | |
| bool | operator< (const Target &rhs) const |
| Operator to compare Targets. | |
| bool | operator== (const Target &rhs) const |
| bool | operator!= (const Target &rhs) const |
| const string | protocol () const |
| Get the protocol. | |
| void | set_protocol (const string &protocol) |
| Set the protocol. | |
| filter::Filter | filter () const |
| Get the filter type. | |
| void | set_filter (const filter::Filter &filter) |
| Set the filter type. | |
| string | str () const |
Private Attributes | |
| string | _protocol |
| filter::Filter | _filter |
A target represents where the code should be placed.
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.
| Code::Target::Target | ( | const string & | p, |
| filter::Filter | f | ||
| ) | [inline] |
Construct a target [protocol/filter pair].
| p | target protocol. |
| f | target filter. |
| filter::Filter Code::Target::filter | ( | ) | const [inline] |
| bool Code::Target::operator< | ( | const Target & | rhs | ) | const |
Operator to compare Targets.
Needed for STL set storage.
| rhs | target to compare with |
| void Code::Target::set_filter | ( | const filter::Filter & | filter | ) | [inline] |
| void Code::Target::set_protocol | ( | const string & | protocol | ) | [inline] |
| string Code::Target::str | ( | ) | const |