23 using ObserverPtrVector = std::vector<std::shared_ptr<observation::Observer>>;
24 using SourcePtrVector = std::vector<std::shared_ptr<observation::Source>>;
25 using Dictionary = palimpsest::Dictionary;
34 void reset(
const Dictionary& config);
45 sources_.push_back(std::shared_ptr<Source>(source));
53 observers_.push_back(std::shared_ptr<Observer>(observer));
57 SourcePtrVector&
sources() {
return sources_; }
63 ObserverPtrVector&
observers() {
return observers_; }
72 void run(Dictionary& observation);
76 SourcePtrVector sources_;
79 ObserverPtrVector observers_;
SourcePtrVector & sources()
Sources of the pipeline.
void reset(const Dictionary &config)
Reset observers.
ObserverPtrVector & observers()
Observers of the pipeline. Order matters.
void run(Dictionary &observation)
Run observer pipeline on an observation dictionary.
size_t nb_observers()
Number of observers in the pipeline.
size_t nb_sources()
Number of sources in the pipeline.
void connect_source(std::shared_ptr< Source > source)
void append_observer(std::shared_ptr< Observer > observer)
ObserverPtrVector::iterator iterator