iceoryx2
C++ Bindings
Loading...
Searching...
No Matches
iox2::Config Class Reference

#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

Detailed Description

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 452 of file config.hpp.

Constructor & Destructor Documentation

◆ Config() [1/3]

iox2::Config::Config ( )

Referenced by Config(), Config(), operator=(), and operator=().

◆ Config() [2/3]

iox2::Config::Config ( const Config & rhs)

References Config().

◆ Config() [3/3]

iox2::Config::Config ( Config && rhs)
noexcept

References Config().

◆ ~Config()

iox2::Config::~Config ( )

Member Function Documentation

◆ defaults()

auto iox2::Config::defaults ( ) ->config::Defaults

Returns the [config::Defaults] part of the config.

◆ from_file()

auto iox2::Config::from_file ( const iox2::bb::FilePath & file) ->iox2::bb::Expected< Config, ConfigCreationError >
static

Loads a configuration from a file. On success it returns a [Config] object otherwise a [ConfigCreationError] describing the failure.

◆ global()

auto iox2::Config::global ( ) ->config::Global

Returns the [config::Global] part of the config.

◆ global_config()

auto iox2::Config::global_config ( ) ->ConfigView
static

Returns a [ConfigView] to the current global config.

References ConfigView.

◆ operator=() [1/2]

auto iox2::Config::operator= ( Config && rhs) ->Config &
noexcept

References Config().

◆ operator=() [2/2]

auto iox2::Config::operator= ( const Config & rhs) ->Config &

References Config().

◆ setup_global_config_from_file()

auto iox2::Config::setup_global_config_from_file ( const iox2::bb::FilePath & file) ->iox2::bb::Expected< ConfigView, ConfigCreationError >
static

Sets the global configuration from a file. On success it returns the global config as [ConfigView] object otherwise a [ConfigCreationError] describing the failure.

◆ view()

auto iox2::Config::view ( ) ->ConfigView

Returns the [ConfigView] to this [Config].

References ConfigView.

◆ config::Global

friend class config::Global
friend

Definition at line 484 of file config.hpp.

◆ ConfigView

friend class ConfigView
friend

Definition at line 483 of file config.hpp.

References ConfigView.

Referenced by ConfigView, global_config(), and view().

◆ DeadNodeView

template<ServiceType>
friend class DeadNodeView
friend

Definition at line 487 of file config.hpp.

References DeadNodeView.

Referenced by DeadNodeView.

◆ NodeBuilder

friend class NodeBuilder
friend

Definition at line 485 of file config.hpp.

References NodeBuilder.

Referenced by NodeBuilder.


The documentation for this class was generated from the following file: