|
|
Instances push commands pushed into them into multiple objects derived from IfMgrCommandSinkBase.
typedef IfMgrCommandSinkBase::Cmd Cmd | Cmd |
typedef list<SinkType*> SinkList | SinkList |
void push (const Cmd& cmd)
| push |
Reimplemented from IfMgrCommandSinkBase.
bool add_sink (SinkType* sink)
| add_sink |
Add an additional output for pushed commands.
Parameters:
sink | receiver for commands pushed into instance. |
Returns: true if sink is successfully added, false otherwise.
bool remove_sink (SinkType* sink)
| remove_sink |
Remove an sink for pushed commands.
Parameters:
sink | receiver for commands pushed into instance. |
Returns: true if sink is successfully remove, false otherwise.
SinkList _sinks | _sinks |
[protected]
template <typename SinkType>
void
push (const Cmd& cmd)
| push |
[protected]
Reimplemented from IfMgrCommandSinkBase.
template <typename SinkType>
bool
add_sink (SinkType* o)
| add_sink |
[protected]
template <typename SinkType>
bool
remove_sink (SinkType* o)
| remove_sink |
[protected]