Public Member Functions | |
Context_proxy (Context &ctx) | |
Creates Context proxy without plugin logger. | |
Context_proxy (Context &ctx, const std::string &logger_name, PC_tree_t logging_tree) | |
Creates Context proxy. | |
void | setup_logger (const std::string &logger_name, PC_tree_t logging_tree) |
Sets up logger. | |
Data_descriptor & | desc (const std::string &name) override |
Context::desc proxy for plugins. | |
Data_descriptor & | desc (const char *name) override |
Context::desc proxy for plugins. | |
Data_descriptor & | operator[] (const std::string &name) override |
Context::operator[] proxy for plugins. | |
Data_descriptor & | operator[] (const char *name) override |
Context::operator[] proxy for plugins. | |
Iterator | begin () override |
Context::begin proxy for plugins. | |
Iterator | end () override |
Context::end proxy for plugins. | |
void | event (const char *name) override |
Context::event proxy for plugins. | |
Logger & | logger () override |
Returns plugin logger. | |
Logger & | pdi_core_logger () |
Returns pdi core logger. | |
Datatype_template_ptr | datatype (PC_tree_t node) override |
Context::datatype proxy for plugins. | |
void | add_datatype (const std::string &name, Datatype_template_parser parser) override |
Context::add_datatype proxy for plugins. | |
Callbacks & | callbacks () override |
Context::callbacks proxy for plugins. | |
void | finalize_and_exit () override |
Finalizes PDI and exits application. | |
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. | |
virtual Data_descriptor & | desc (const char *name)=0 |
Accesses the descriptor for a specific name. | |
virtual Data_descriptor & | operator[] (const std::string &name)=0 |
Accesses the descriptor for a specific name. | |
virtual Data_descriptor & | operator[] (const char *name)=0 |
Accesses the descriptor for a specific name. | |
virtual Iterator | begin ()=0 |
Returns an iterator on the first descriptor. | |
virtual Iterator | end ()=0 |
Returns an iterator past the last descriptor. | |
virtual void | event (const char *name)=0 |
Triggers a PDI "event". | |
virtual Logger & | logger ()=0 |
Logger getter. | |
virtual Callbacks & | callbacks ()=0 |
Callbacks of the context. | |
virtual Datatype_template_ptr | datatype (PC_tree_t node)=0 |
Creates a new datatype template from a paraconf-style config. | |
virtual void | add_datatype (const std::string &name, Datatype_template_parser parser)=0 |
Adds new datatype parser to the context. | |
virtual void | finalize_and_exit ()=0 |
Finalizes PDI and exits application. | |
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. | |
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.