iceoryx_doc  1.0.1
roudi_config_toml_file_provider.hpp
1 // Copyright (c) 2019 by Robert Bosch GmbH. All rights reserved.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 //
15 // SPDX-License-Identifier: Apache-2.0
16 #ifndef IOX_POSH_ROUDI_ROUDI_CONFIG_TOML_FILE_PROVIDER_HPP
17 #define IOX_POSH_ROUDI_ROUDI_CONFIG_TOML_FILE_PROVIDER_HPP
18 
19 #include "iceoryx_posh/roudi/cmd_line_args.hpp"
20 #include "iceoryx_posh/roudi/roudi_config_file_provider.hpp"
21 
22 namespace iox
23 {
24 namespace config
25 {
26 static constexpr char defaultConfigFilePath[] = "/etc/iceoryx/roudi_config.toml";
27 
29 {
30  public:
32 
33  iox::cxx::expected<iox::RouDiConfig_t, iox::roudi::RouDiConfigFileParseError> parse() override;
34 };
35 } // namespace config
36 } // namespace iox
37 
38 #endif // IOX_POSH_ROUDI_ROUDI_CONFIG_TOML_FILE_PROVIDER_HPP
Definition: roudi_config_toml_file_provider.hpp:29
iox::cxx::expected< iox::RouDiConfig_t, iox::roudi::RouDiConfigFileParseError > parse() override
interface to parse a config file which needs to be implemented for a custom parser
Base class for a config file provider.
Definition: roudi_config_file_provider.hpp:65
Definition: service_description.hpp:29
Definition: cmd_line_args.hpp:30