Public Member Functions | |
| Context_proxy (Context &ctx) | |
| Creates Context proxy without plugin logger. More... | |
| Context_proxy (Context &ctx, const std::string &logger_name, PC_tree_t logging_tree) | |
| Creates Context proxy. More... | |
| void | setup_logger (const std::string &logger_name, PC_tree_t logging_tree) |
| Sets up logger. More... | |
| Data_descriptor & | desc (const std::string &name) override |
| Context::desc proxy for plugins. More... | |
| Data_descriptor & | desc (const char *name) override |
| Context::desc proxy for plugins. More... | |
| Data_descriptor & | operator[] (const std::string &name) override |
| Context::operator[] proxy for plugins. More... | |
| Data_descriptor & | operator[] (const char *name) override |
| Context::operator[] proxy for plugins. More... | |
| Iterator | begin () override |
| Context::begin proxy for plugins. More... | |
| Iterator | end () override |
| Context::end proxy for plugins. More... | |
| void | event (const char *name) override |
| Context::event proxy for plugins. More... | |
| Logger & | logger () override |
| Returns plugin logger. More... | |
| Logger & | pdi_core_logger () |
| Returns pdi core logger. More... | |
| Datatype_template_ptr | datatype (PC_tree_t node) override |
| Context::datatype proxy for plugins. More... | |
| void | add_datatype (const std::string &name, Datatype_template_parser parser) override |
| Context::add_datatype proxy for plugins. More... | |
| Callbacks & | callbacks () override |
| Context::callbacks proxy for plugins. More... | |
| void | finalize_and_exit () override |
| Finalizes PDI and exits application. More... | |
Public Member Functions inherited from PDI::Context | |
| virtual | ~Context () |
| virtual Data_descriptor & | desc (const std::string &name)=0 |
| Accesses the descriptor for a specific name. More... | |
| virtual Data_descriptor & | desc (const char *name)=0 |
| Accesses the descriptor for a specific name. More... | |
| virtual Data_descriptor & | operator[] (const std::string &name)=0 |
| Accesses the descriptor for a specific name. More... | |
| virtual Data_descriptor & | operator[] (const char *name)=0 |
| Accesses the descriptor for a specific name. More... | |
| virtual Iterator | begin ()=0 |
| Returns an iterator on the first descriptor. More... | |
| virtual Iterator | end ()=0 |
| Returns an iterator past the last descriptor. More... | |
| virtual void | event (const char *name)=0 |
| Triggers a PDI "event". More... | |
| virtual Logger & | logger ()=0 |
| Logger getter. More... | |
| virtual Callbacks & | callbacks ()=0 |
| Callbacks of the context. More... | |
| virtual Datatype_template_ptr | datatype (PC_tree_t node)=0 |
| Creates a new datatype template from a paraconf-style config. More... | |
| virtual void | add_datatype (const std::string &name, Datatype_template_parser parser)=0 |
| Adds new datatype parser to the context. More... | |
| virtual void | finalize_and_exit ()=0 |
| Finalizes PDI and exits application. More... | |
Additional Inherited Members | |
Public Types inherited from PDI::Context | |
| typedef std::function< Datatype_template_ptr(Context &, PC_tree_t)> | Datatype_template_parser |
| A function that parses a PC_tree_t to create a datatype_template. More... | |
Protected Member Functions inherited from PDI::Context | |
| Iterator | get_iterator (const std::unordered_map< std::string, std::unique_ptr< Data_descriptor > >::iterator &data) |
| Iterator | get_iterator (std::unordered_map< std::string, std::unique_ptr< Data_descriptor > >::iterator &&data) |
| PDI::Context_proxy::Context_proxy | ( | Context & | ctx | ) |
Creates Context proxy without plugin logger.
| [in] | ctx | context to make a proxy |
| PDI::Context_proxy::Context_proxy | ( | Context & | ctx, |
| const std::string & | logger_name, | ||
| PC_tree_t | logging_tree | ||
| ) |
Creates Context proxy.
| [in] | ctx | context to make a proxy |
| [in] | logger_name | name of the logger (will be used in logger pattern) |
| [in] | logging_tree | logging yaml tree of the plugin |
| void PDI::Context_proxy::setup_logger | ( | const std::string & | logger_name, |
| PC_tree_t | logging_tree | ||
| ) |
Sets up logger.
| [in] | logger_name | name of the logger (will be used in logger pattern) |
| [in] | logging_tree | logging yaml tree of the plugin |
|
overridevirtual |
Context::desc proxy for plugins.
Implements PDI::Context.
|
overridevirtual |
Context::desc proxy for plugins.
Implements PDI::Context.
|
overridevirtual |
Context::operator[] proxy for plugins.
Implements PDI::Context.
|
overridevirtual |
Context::operator[] proxy for plugins.
Implements PDI::Context.
|
overridevirtual |
Context::begin proxy for plugins.
Implements PDI::Context.
|
overridevirtual |
Context::end proxy for plugins.
Implements PDI::Context.
|
overridevirtual |
|
overridevirtual |
| Logger & PDI::Context_proxy::pdi_core_logger | ( | ) |
Returns pdi core logger.
|
overridevirtual |
Context::datatype proxy for plugins.
Implements PDI::Context.
|
overridevirtual |
Context::add_datatype proxy for plugins.
Implements PDI::Context.
|
overridevirtual |
Context::callbacks proxy for plugins.
Implements PDI::Context.
|
overridevirtual |
Finalizes PDI and exits application.
Implements PDI::Context.