libpressio 0.93.0
|
#include <pressio.h>
Public Member Functions | |
void | set_error (int code, std::string const &msg) |
int | err_code () const |
std::string const & | err_msg () const |
std::shared_ptr< libpressio_compressor_plugin > | get_compressor (std::string const &compressor_id) |
std::shared_ptr< libpressio_io_plugin > | get_io (std::string const &io_module_id) |
template<class Str > | |
std::unique_ptr< libpressio_metrics_plugin > | get_metric (Str id) |
template<class ForwardIt > | |
std::unique_ptr< libpressio_metrics_plugin > | get_metrics (ForwardIt first, ForwardIt last) |
Static Public Member Functions | |
static const char * | version () |
static const char * | features () |
static const char * | supported_compressors () |
static const char * | supported_metrics () |
static const char * | supported_io () |
static unsigned int | major_version () |
static unsigned int | minor_version () |
static unsigned int | patch_version () |
the libraries basic state
|
inline |
|
inline |
|
static |
|
inline |
Returns an instance of a compressor
[in] | compressor_id | name of the compressor to request |
|
inline |
Returns an io module
[in] | io_module_id | name of the compressor to request |
|
inline |
Returns an metrics module
[in] | id | name of the compressor to request |
|
inline |
Returns a composite metric for all the metric_ids requested
[in] | first | iterator to the first metric_id requested |
[in] | last | iterator to the last metric_id requested |
|
static |
|
static |
|
static |
|
inline |
sets an error code and message
[in] | code | non-zero represents an error |
[in] | msg | a human readable description of the error |
|
static |
|
static |
|
static |
|
static |