Classes | |
class | Array_datatype |
an Array_datatype is a Datatype that represents an array: i.e storage of multiple elements of the same type continuously in memory. More... | |
class | Context |
class | Data_descriptor |
class | Datatype |
A Datatype is a Datatype_template that accepts no argument. More... | |
class | Datatype_template |
class | Error |
class | Expression |
struct | Paraconf_wrapper |
Automatically installs a paraconf error-handler that ignores errors and uninstalls it on destruction. More... | |
class | Plugin |
class | Record_datatype |
A Record_datatype is a Datatype that represents a fixed number of elements of potentially different types layed out in a specific way in memory. More... | |
class | Ref_any |
A dynamically typed reference to data with automatic memory management and read/write locking semantic. More... | |
class | Ref_base |
A common base for all references, whatever their access privileges in order to ensure they share the same Data_content and can access each others. More... | |
class | Scalar_datatype |
Typedefs | |
typedef std::unique_ptr< Datatype_template > | Datatype_template_uptr |
typedef std::unique_ptr< Datatype > | Datatype_uptr |
typedef std::shared_ptr< spdlog::logger > | Logger_sptr |
A shared pointer to a logger instance. More... | |
typedef Ref_any< false, false > | Ref |
typedef Ref_any< true, false > | Ref_r |
typedef Ref_any< false, true > | Ref_w |
typedef Ref_any< true, true > | Ref_rw |
Enumerations | |
enum | Scalar_kind : uint8_t { Scalar_kind::UNKNOWN, Scalar_kind::SIGNED, Scalar_kind::UNSIGNED, Scalar_kind::FLOAT, Scalar_kind::ADDRESS } |
Different possible interpretations for a scalar. More... | |
Functions | |
void | read_log_level (Logger_sptr logger, PC_tree_t logging_tree) |
Sets logger verbosity level from PC_tree. More... | |
Logger_sptr | configure_logger (PC_tree_t config) |
Reads configuration tree and sets up the logger. More... | |
int | len (PC_tree_t tree) |
Returns the length of a node. More... | |
int | len (PC_tree_t tree, int dflt) |
Returns the length of a node. More... | |
long | to_long (PC_tree_t tree) |
Returns the int value of a scalar node. More... | |
long | to_long (PC_tree_t tree, long dflt) |
Returns the int value of a scalar node. More... | |
double | to_double (PC_tree_t tree) |
Returns the floating point value of a scalar node. More... | |
double | to_double (PC_tree_t tree, double dflt) |
Returns the floating point value of a scalar node. More... | |
std::string | to_string (PC_tree_t tree) |
Returns the string content of a scalar node. More... | |
std::string | to_string (PC_tree_t tree, const std::string &dflt) |
Returns the string content of a scalar node. More... | |
bool | to_bool (PC_tree_t tree) |
Returns the boolean value of a scalar node. More... | |
bool | to_bool (PC_tree_t tree, bool dflt) |
Returns the boolean value of a scalar node. More... | |
unsigned long | plugin_api_version (unsigned long expected_version=0) |
Checks compatibility with a plugin API. More... | |
Variables | |
const Scalar_datatype | UNDEF_TYPE = {Scalar_kind::UNKNOWN, 0} |
typedef std::unique_ptr<Datatype_template> PDI::Datatype_template_uptr |
typedef std::unique_ptr<Datatype> PDI::Datatype_uptr |
typedef std::shared_ptr<spdlog::logger> PDI::Logger_sptr |
A shared pointer to a logger instance.
typedef Ref_any<true, false> PDI::Ref_r |
typedef Ref_any<false, true> PDI::Ref_w |
typedef Ref_any<true, true> PDI::Ref_rw |
|
strong |
void PDI::read_log_level | ( | Logger_sptr | logger, |
PC_tree_t | logging_tree | ||
) |
Sets logger verbosity level from PC_tree.
[in] | logger | logger to set up |
[in] | logging_tree | configuration tree from config file |
Logger_sptr PDI::configure_logger | ( | PC_tree_t | config | ) |
Reads configuration tree and sets up the logger.
[in] | config | configuration tree from config file |
int PDI::len | ( | PC_tree_t | tree | ) |
Returns the length of a node.
throws an Error if the provided tree is in error
[in] | tree | the sequence or mapping |
int PDI::len | ( | PC_tree_t | tree, |
int | dflt | ||
) |
Returns the length of a node.
returns the default value in case of error
[in] | tree | the sequence or mapping |
[in] | dflt | the default value in case of error |
long PDI::to_long | ( | PC_tree_t | tree | ) |
Returns the int value of a scalar node.
throws an Error if the provided tree is in error
[in] | tree | the int-valued node |
long PDI::to_long | ( | PC_tree_t | tree, |
long | dflt | ||
) |
Returns the int value of a scalar node.
returns the default value in case of error
[in] | tree | the int-valued node |
[in] | dflt | the default value in case of error |
double PDI::to_double | ( | PC_tree_t | tree | ) |
Returns the floating point value of a scalar node.
throws an Error if the provided tree is in error
[in] | tree | the floating-point-valued node |
double PDI::to_double | ( | PC_tree_t | tree, |
double | dflt | ||
) |
Returns the floating point value of a scalar node.
returns the default value in case of error
[in] | tree | the floating-point-valued node |
[in] | dflt | the default value in case of error |
std::string PDI::to_string | ( | PC_tree_t | tree | ) |
Returns the string content of a scalar node.
throws an Error if the provided tree is in error
[in] | tree | the node |
std::string PDI::to_string | ( | PC_tree_t | tree, |
const std::string & | dflt | ||
) |
Returns the string content of a scalar node.
returns the default value in case of error
[in] | tree | the node |
[in] | dflt | the default value in case of error |
bool PDI::to_bool | ( | PC_tree_t | tree | ) |
Returns the boolean value of a scalar node.
throws an Error if the provided tree is in error
[in] | tree | the node |
bool PDI::to_bool | ( | PC_tree_t | tree, |
bool | dflt | ||
) |
Returns the boolean value of a scalar node.
returns the default value in case of error
[in] | tree | the node |
[in] | dflt | the default value in case of error |
unsigned long PDI::plugin_api_version | ( | unsigned long | expected_version = 0 | ) |
Checks compatibility with a plugin API.
expected_version | the expected version of the API or 0 for no check |
PDI::Error | if the provided version is incompatible with the expected one |
const Scalar_datatype PDI::UNDEF_TYPE = {Scalar_kind::UNKNOWN, 0} |