libpressio 0.93.0
|
#include <io.h>
Public Member Functions | |
struct pressio_data * | read (struct pressio_data *data) |
template<class ContigIterator > | |
int | read_many (ContigIterator data_begin, ContigIterator data_end) |
int | write (struct pressio_data const *data) |
template<class ContigIterator > | |
int | write_many (ContigIterator data_begin, ContigIterator data_end) |
int | check_options (struct pressio_options const &) override final |
int | set_options (struct pressio_options const &options) override final |
struct pressio_options | get_documentation () const override final |
struct pressio_options | get_configuration () const override final |
struct pressio_options | get_options () const override final |
virtual std::shared_ptr< libpressio_io_plugin > | clone ()=0 |
void | set_name (std::string const &new_name) final |
Public Member Functions inherited from pressio_configurable | |
virtual const char * | prefix () const =0 |
std::string const & | get_name () const |
virtual void | set_name (std::string const &new_name) |
virtual void | set_name_impl (std::string const &new_name) |
virtual struct pressio_options | get_configuration () const |
virtual struct pressio_options | get_documentation () const |
virtual int | check_options (struct pressio_options const &) |
virtual struct pressio_options | get_options () const |
virtual int | set_options (struct pressio_options const &options) |
int | cast_options (pressio_options const &early_config, pressio_options const &config) |
Public Member Functions inherited from pressio_errorable | |
const char * | error_msg () const |
int | error_code () const |
Public Member Functions inherited from pressio_versionable | |
virtual | ~pressio_versionable ()=default |
virtual const char * | version () const =0 |
virtual uint64_t | epoch_version () const |
virtual int | major_version () const |
virtual int | minor_version () const |
virtual int | patch_version () const |
Protected Member Functions | |
virtual int | check_options_impl (struct pressio_options const &) |
virtual pressio_data * | read_impl (struct pressio_data *data)=0 |
virtual int | write_impl (struct pressio_data const *data)=0 |
virtual int | read_many_impl (compat::span< struct pressio_data * > const &data) |
virtual int | write_many_impl (compat::span< struct pressio_data const * > const &data) |
virtual struct pressio_options | get_documentation_impl () const =0 |
virtual struct pressio_options | get_configuration_impl () const =0 |
virtual int | set_options_impl (struct pressio_options const &options)=0 |
virtual struct pressio_options | get_options_impl () const =0 |
Protected Member Functions inherited from pressio_configurable | |
template<class StringType > | |
void | set (pressio_options &options, StringType const &key, pressio_option const &value) const |
template<class StringType > | |
void | set_type (pressio_options &options, StringType const &key, pressio_option_type type) const |
template<class StringType , class PointerType > | |
enum pressio_options_key_status | get (pressio_options const &options, StringType &&key, PointerType value) const |
template<class StringType , class Wrapper , class... Args> | |
void | set_meta (pressio_options &options, StringType &&key, std::string const ¤t_id, Wrapper const ¤t_value, Args &&... args) const |
template<class StringType , class Wrapper , class... Args> | |
void | set_meta_docs (pressio_options &options, StringType &&key, std::string const &docstring, Wrapper const ¤t_value, Args &&... args) const |
template<class StringType , class Wrapper , class Registry , class... Args> | |
void | set_meta_configuration (pressio_options &options, StringType &&key, Registry const ®istry, Wrapper const ¤t_value) const |
template<class StringType , class Wrapper , class Registry , class... Args> | |
void | set_meta_many_configuration (pressio_options &options, StringType &&key, Registry const ®istry, std::vector< Wrapper > const ¤t_values) const |
template<class StringType , class Wrapper , class... Args> | |
void | set_meta_many_docs (pressio_options &options, StringType &&key, std::string const &docstring, std::vector< Wrapper > const ¤t_values, Args &&... args) const |
template<class StringType , class Wrapper , class... Args> | |
void | set_meta_many (pressio_options &options, StringType &&key, std::vector< std::string > const ¤t_ids, std::vector< Wrapper > const ¤t_values, Args &&... args) const |
template<class StringType , class Registry , class Wrapper > | |
pressio_options_key_status | get_meta (pressio_options const &options, StringType &&key, Registry const ®istry, std::string ¤t_id, Wrapper ¤t_value) |
template<class StringType , class Registry , class Wrapper > | |
pressio_options_key_status | get_meta_many (pressio_options const &options, StringType &&key, Registry const ®istry, std::vector< std::string > ¤t_ids, std::vector< Wrapper > ¤t_values) |
template<class T > | |
void | set_names_many (std::string const &name, std::vector< T > &plugins, std::vector< std::string > const &names) const |
std::string | get_metrics_key_name () const |
Protected Member Functions inherited from pressio_errorable | |
int | set_error (int code, std::string const &msg) |
void | clear_error () |
Additional Inherited Members | |
Static Protected Member Functions inherited from pressio_configurable | |
static pressio_thread_safety | get_threadsafe (pressio_configurable const &c) |
Protected Attributes inherited from pressio_configurable | |
std::string | name |
plugin extension base class for io modules
|
finaloverridevirtual |
checks for extra arguments set for the io module. Modules should override check_options_impl instead. the default verison just checks for unknown options passed in.
Reimplemented from pressio_configurable.
|
protectedvirtual |
checks for extra arguments set for the io module. the default verison just checks for unknown options passed in.
|
pure virtual |
|
finaloverridevirtual |
get the compile time configuration of a io module. Modules should override get_configuration_impl instead
Reimplemented from pressio_configurable.
|
protectedpure virtual |
get the compile time configuration of a io module
|
finaloverridevirtual |
get the documentation for an io module. Modules should override get_documentation_impl instead
Reimplemented from pressio_configurable.
|
protectedpure virtual |
get the compile time documentation of an io module
|
finaloverridevirtual |
get a set of options available for the io module. Modules should override get_options_impl instead
The io module should set a value if they have been set as default The io module should set a "reset" value if they are required to be set, but don't have a meaningful default
Reimplemented from pressio_configurable.
|
protectedpure virtual |
get a set of options available for the io module
The io module should set a value if they have been set as default The io module should set a "reset" value if they are required to be set, but don't have a meaningful default
struct pressio_data * libpressio_io_plugin::read | ( | struct pressio_data * | data | ) |
reads a pressio_data buffer from some persistent storage. Modules should override read_impl instead.
[in] | data | data object to populate, or nullptr to allocate it from the file if supported. callers should treat this buffer as if it is moved in a C++11 sense |
|
protectedpure virtual |
reads a pressio_data buffer from some persistent storage
[in] | data | data object to populate, or nullptr to allocate it from the file if supported |
|
inline |
reads a multiple pressio_data buffers from some persistent storage. Modules should override read_many_impl instead.
[in,out] | data_begin | contiguous iterator to the beginning of the data objects. Pointed to objects are replaced with the read data, freeing the input if required. |
[in,out] | data_end | contiguous iterator past the end of the data objects. Pointed to objects are replaced with the read data, freeing the output if required. |
|
inlineprotectedvirtual |
reads multiple pressio_data buffers from some persistent storage
[in] | data | data object to populate, or nullptr to allocate it from the file if supported |
|
finalvirtual |
prevent child classes from overriding set_name, override set_name_impl instead
[in] | new_name | the new name to assign |
Reimplemented from pressio_configurable.
|
finaloverridevirtual |
sets a set of options for the io_module
[in] | options | to set for configuration of the io_module |
Reimplemented from pressio_configurable.
|
protectedpure virtual |
sets a set of options for the io_module
[in] | options | to set for configuration of the io_module |
int libpressio_io_plugin::write | ( | struct pressio_data const * | data | ) |
writes a pressio_data buffer to some persistent storage. Modules should override write_impl instead.
[in] | data | data to write |
|
protectedpure virtual |
writes a pressio_data buffer to some persistent storage
[in] | data | data to write |
|
inline |
writes a multiple pressio_data buffers to some persistent storage. Modules should override write_many_impl instead.
[in,out] | data_begin | contiguous iterator to the beginning of the data objects. |
[in,out] | data_end | contiguous iterator past the end of the data objects. |
|
inlineprotectedvirtual |
writes multiple pressio_data buffers to some persistent storage
[in] | data | data to write |