|
iceoryx2
C++ Language Bindings
|
#include <config.hpp>
Public Member Functions | |
| Config () | |
| Config (const Config &rhs) | |
| Config (Config &&rhs) noexcept | |
| ~Config () | |
| auto | operator= (const Config &rhs) -> Config & |
| auto | operator= (Config &&rhs) noexcept -> Config & |
| auto | global () -> config::Global |
Returns the [config::Global] part of the config. | |
| auto | defaults () -> config::Defaults |
Returns the [config::Defaults] part of the config. | |
| auto | view () -> ConfigView |
Returns the [ConfigView] to this [Config]. | |
Static Public Member Functions | |
| static auto | from_file (const iox2::bb::FilePath &file) -> iox2::bb::Expected< Config, ConfigCreationError > |
| static auto | setup_global_config_from_file (const iox2::bb::FilePath &file) -> iox2::bb::Expected< ConfigView, ConfigCreationError > |
| static auto | global_config () -> ConfigView |
Returns a [ConfigView] to the current global config. | |
Friends | |
| class | ConfigView |
| class | config::Global |
| class | NodeBuilder |
| template<ServiceType > | |
| class | DeadNodeView |
Represents the configuration that iceoryx2 will utilize. It is divided into two sections: the [Global] settings, which must align with the iceoryx2 instance the application intends to join, and the [Defaults] for communication within that iceoryx2 instance. The user has the flexibility to override both sections.
Definition at line 444 of file config.hpp.
| iox2::Config::Config | ( | ) |
| iox2::Config::Config | ( | const Config & | rhs | ) |
|
noexcept |
| iox2::Config::~Config | ( | ) |
| auto iox2::Config::defaults | ( | ) | -> config::Defaults |
Returns the [config::Defaults] part of the config.
|
static |
Loads a configuration from a file. On success it returns a [Config] object otherwise a [ConfigCreationError] describing the failure.
| auto iox2::Config::global | ( | ) | -> config::Global |
Returns the [config::Global] part of the config.
|
static |
Returns a [ConfigView] to the current global config.
|
static |
Sets the global configuration from a file. On success it returns the global config as [ConfigView] object otherwise a [ConfigCreationError] describing the failure.
| auto iox2::Config::view | ( | ) | -> ConfigView |
Returns the [ConfigView] to this [Config].
|
friend |
Definition at line 476 of file config.hpp.
|
friend |
Definition at line 475 of file config.hpp.
|
friend |
Definition at line 479 of file config.hpp.
|
friend |
Definition at line 477 of file config.hpp.