iCub-main
|
The DataSelector is an interface for an object that selects data from one or more DataSources. More...
Public Member Functions | |
virtual std::string | toString (int indent=0)=0 |
Returns a string specification of the data selector. | |
virtual void | declareSources (SourceList &sl)=0 |
Declares the required sources for this data selector to the source list. | |
virtual void | select (Bottle &bot, SourceList &sl)=0 |
Selectively adds data from the source list to an output bottle. | |
The DataSelector is an interface for an object that selects data from one or more DataSources.
The structure of DataSelector and its subclasses follows the composite pattern.
|
pure virtual |
Declares the required sources for this data selector to the source list.
sl | the source list |
Implemented in iCub::learningmachine::merge::IndexSelector, and iCub::learningmachine::merge::CompositeSelector.
|
pure virtual |
Selectively adds data from the source list to an output bottle.
bot | a reference to the output Bottle |
sl | the source list |
Implemented in iCub::learningmachine::merge::IndexSelector, iCub::learningmachine::merge::CompositeSelector, and iCub::learningmachine::merge::RootSelector.
|
pure virtual |
Returns a string specification of the data selector.
indent | a number of spaces of indentation |
Implemented in iCub::learningmachine::merge::IndexSelector, and iCub::learningmachine::merge::CompositeSelector.