UCX++
config.h
1#pragma once
2
3#include <ucp/api/ucp.h>
4
5#include "ucxpp/detail/noncopyable.h"
6
7namespace ucxpp {
8
13class config : public noncopyable {
14 ucp_config_t *config_;
15
16public:
27 config(char const *env_prefix = nullptr, char const *filename = nullptr);
28
33 ~config();
34
40 ucp_config_t *handle() const;
41
48 void modify(char const *name, char const *value);
49
54 void print() const;
55};
56
57} // namespace ucxpp
Stores UCX configuration options.
Definition: config.h:13
void modify(char const *name, char const *value)
Modify a configuration option.
Definition: config.cc:15
void print() const
Print the configuration to the standard output.
Definition: config.cc:20
~config()
Destroy the config object and release memory.
Definition: config.cc:11
config(char const *env_prefix=nullptr, char const *filename=nullptr)
Construct a new config object.
Definition: config.cc:6
ucp_config_t * handle() const
Get the native UCX configuration handle.
Definition: config.cc:13
Definition: noncopyable.h:5