26#ifndef PDI_CONTEXT_PROXY_H_
27#define PDI_CONTEXT_PROXY_H_
29#include <pdi/pdi_fwd.h>
30#include <pdi/callbacks.h>
31#include <pdi/context.h>
32#include <pdi/logger.h>
64 void setup_logger(
const std::string& logger_name, PC_tree_t logging_tree);
94 void event(
const char* name)
override;
Definition: callbacks.h:39
An iterator used to go through the descriptor store.
Definition: context.h:49
Definition: context_proxy.h:40
Iterator end() override
Context::end proxy for plugins.
Logger & pdi_core_logger()
Returns pdi core logger.
void setup_logger(const std::string &logger_name, PC_tree_t logging_tree)
Sets up logger.
Context_proxy(Context &ctx)
Creates Context proxy without plugin logger.
Iterator begin() override
Context::begin proxy for plugins.
Context_proxy(Context &ctx, const std::string &logger_name, PC_tree_t logging_tree)
Creates Context proxy.
void event(const char *name) override
Context::event proxy for plugins.
Logger & logger() override
Returns plugin logger.
Datatype_template_ptr datatype(PC_tree_t node) override
Context::datatype proxy for plugins.
void finalize_and_exit() override
Finalizes PDI and exits application.
void add_datatype(const std::string &name, Datatype_template_parser parser) override
Context::add_datatype proxy for plugins.
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.
Callbacks & callbacks() override
Context::callbacks proxy for plugins.
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.
Definition: context.h:65
Definition: data_descriptor.h:39
Wrapper for spdlog::logger with additional pattern getter method.
Definition: logger.h:42
Definition: array_datatype.h:38
std::shared_ptr< const Datatype_template > Datatype_template_ptr
Definition: pdi_fwd.h:76