17#ifndef IOX_POSH_ROUDI_ROUDI_CONFIG_FILE_PROVIDER_HPP
18#define IOX_POSH_ROUDI_ROUDI_CONFIG_FILE_PROVIDER_HPP
20#include "iceoryx_hoofs/cxx/expected.hpp"
21#include "iceoryx_hoofs/cxx/string.hpp"
22#include "iceoryx_posh/iceoryx_posh_config.hpp"
23#include "iceoryx_posh/iceoryx_posh_types.hpp"
41 INVALID_CONFIG_FILE_VERSION,
43 MAX_NUMBER_OF_SEGMENTS_EXCEEDED,
44 SEGMENT_WITHOUT_MEMPOOL,
45 MAX_NUMBER_OF_MEMPOOLS_PER_SEGMENT_EXCEEDED,
46 MEMPOOL_WITHOUT_CHUNK_SIZE,
47 MEMPOOL_WITHOUT_CHUNK_COUNT,
51constexpr const char* ROUDI_CONFIG_FILE_PARSE_ERROR_STRINGS[] = {
"NO_GENERAL_SECTION",
52 "INVALID_CONFIG_FILE_VERSION",
54 "MAX_NUMBER_OF_SEGMENTS_EXCEEDED",
55 "SEGMENT_WITHOUT_MEMPOOL",
56 "MAX_NUMBER_OF_MEMPOOLS_PER_SEGMENT_EXCEEDED",
57 "MEMPOOL_WITHOUT_CHUNK_SIZE",
58 "MEMPOOL_WITHOUT_CHUNK_COUNT",
59 "EXCEPTION_IN_PARSER"};
68 virtual cxx::expected<RouDiConfig_t, RouDiConfigFileParseError>
parse() noexcept = 0;
71 ConfigFilePathString_t m_customConfigFilePath;
Base class for a config file provider.
Definition roudi_config_file_provider.hpp:63
virtual cxx::expected< RouDiConfig_t, RouDiConfigFileParseError > parse() noexcept=0
interface to parse a config file which needs to be implemented for a custom parser
RouDiConfigFileParseError
This are the errors which can occur when a config file is parsed NO_GENERAL_SECTION - the section for...
Definition roudi_config_file_provider.hpp:39