iceoryx_posh
2.0.5
Loading...
Searching...
No Matches
iceoryx_posh
roudi
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
21
namespace
iox
22
{
23
namespace
config
24
{
25
class
CmdLineParserConfigFileOption
:
public
CmdLineParser
26
{
27
public
:
28
CmdLineParserConfigFileOption
()
noexcept
=
default
;
29
virtual
~CmdLineParserConfigFileOption
()
noexcept
=
default
;
30
CmdLineParserConfigFileOption
& operator=(
const
CmdLineParserConfigFileOption
& other) =
delete
;
31
CmdLineParserConfigFileOption
(
const
CmdLineParserConfigFileOption
& other) =
delete
;
32
CmdLineParserConfigFileOption
& operator=(
CmdLineParserConfigFileOption
&&) =
delete
;
33
CmdLineParserConfigFileOption
(
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
iox::config::CmdLineParserConfigFileOption
Definition
roudi_cmd_line_parser_config_file_option.hpp:26
iox::config::CmdLineParserConfigFileOption::parse
cxx::expected< CmdLineArgs_t, CmdLineParserResult > parse(int argc, char *argv[], const CmdLineArgumentParsingMode cmdLineParsingMode=CmdLineArgumentParsingMode::ALL) noexcept override
process the passed command line arguments
iox::config::CmdLineParser
Definition
roudi_cmd_line_parser.hpp:39
Generated by
1.9.8