|
ADTF File Library
|
#include <processor.h>
Public Member Functions | |
| void | add (const std::shared_ptr< const ProcessorFactory > &factory) |
| std::shared_ptr< Processor > | makeProcessor (const std::string &processor_id) const |
make a processor with the given processor_id | |
| void | getCapableProcessors (const adtf_file::Stream &stream, const std::function< bool(const std::shared_ptr< Processor > &)> callback_processor, const adtf_file::Configuration &configuration={}) const |
Get the capable and compatible processors for the given stream. It will make all capable processors and return it to the callback_processor. As long as the callback_processor return true further processors may be created. | |
| const std::unordered_map< std::string, std::shared_ptr< const ProcessorFactory > > & | getFactories () const |
| Get the Factories. | |
A container for processor factories.
|
inline |
Adds the given factory to the container-
| [in] | factory | The factory to add. |
|
inline |
Get the capable and compatible processors for the given stream. It will make all capable processors and return it to the callback_processor. As long as the callback_processor return true further processors may be created.
stream no callback is made! | [in] | stream | The stream. |
| callback_processor | The callback to return the created and compatible processors. | |
| configuration | The processors configuration to set before check compatibility. |
|
inline |
Get the Factories.
|
inline |
make a processor with the given processor_id
| processor_id | The id to create the processor for |