iceoryx_posh 2.0.3
roudi_cmd_line_parser_config_file_option.hpp
1// Copyright (c) 2020 by Robert Bosch GmbH, Apex.AI Inc. 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_CMD_LINE_PARSER_CONFIG_FILE_OPTION_HPP
17#define IOX_POSH_ROUDI_ROUDI_CMD_LINE_PARSER_CONFIG_FILE_OPTION_HPP
18
19#include "iceoryx_posh/roudi/roudi_cmd_line_parser.hpp"
20
21namespace iox
22{
23namespace config
24{
26{
27 public:
28 CmdLineParserConfigFileOption() noexcept = default;
29 virtual ~CmdLineParserConfigFileOption() noexcept = default;
30 CmdLineParserConfigFileOption& operator=(const CmdLineParserConfigFileOption& other) = delete;
34
41 cxx::expected<CmdLineArgs_t, CmdLineParserResult>
42 parse(int argc,
43 char* argv[],
44 const CmdLineArgumentParsingMode cmdLineParsingMode = CmdLineArgumentParsingMode::ALL) noexcept override;
45
46 protected:
47 roudi::ConfigFilePathString_t m_customConfigFilePath;
48};
49
50} // namespace config
51} // namespace iox
52
53#endif // IOX_POSH_ROUDI_ROUDI_CMD_LINE_PARSER_CONFIG_FILE_OPTION_HPP
Definition: roudi_cmd_line_parser_config_file_option.hpp:26
cxx::expected< CmdLineArgs_t, CmdLineParserResult > parse(int argc, char *argv[], const CmdLineArgumentParsingMode cmdLineParsingMode=CmdLineArgumentParsingMode::ALL) noexcept override
process the passed command line arguments
Definition: roudi_cmd_line_parser.hpp:39