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. More... | |
virtual void | declareSources (SourceList &sl)=0 |
Declares the required sources for this data selector to the source list. More... | |
virtual void | select (Bottle &bot, SourceList &sl)=0 |
Selectively adds data from the source list to an output bottle. More... | |
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::CompositeSelector, and iCub::learningmachine::merge::IndexSelector.
|
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::RootSelector, iCub::learningmachine::merge::CompositeSelector, and iCub::learningmachine::merge::IndexSelector.
|
pure virtual |
Returns a string specification of the data selector.
indent | a number of spaces of indentation |
Implemented in iCub::learningmachine::merge::CompositeSelector, and iCub::learningmachine::merge::IndexSelector.