CLI11 2.7.2
C++11 Command Line Interface Parser
Loading...
Searching...
No Matches
Config.hpp
1// Copyright (c) 2017-2026, University of Cincinnati, developed by Henry Schreiner
2// under NSF AWARD 1414736 and by the respective contributors.
3// All rights reserved.
4//
5// SPDX-License-Identifier: BSD-3-Clause
6
7#pragma once
8
9// IWYU pragma: private, include "CLI/CLI.hpp"
10
11// [CLI11:public_includes:set]
12#include <string>
13#include <vector>
14// [CLI11:public_includes:end]
15
16#include "App.hpp"
17#include "ConfigFwd.hpp"
18#include "StringTools.hpp"
19
20namespace CLI {
21// [CLI11:config_hpp:verbatim]
22namespace detail {
23
24std::string convert_arg_for_ini(const std::string &arg,
25 char stringQuote = '"',
26 char literalQuote = '\'',
27 bool disable_multi_line = false);
28
30std::string ini_join(const std::vector<std::string> &args,
31 char sepChar = ',',
32 char arrayStart = '[',
33 char arrayEnd = ']',
34 char stringQuote = '"',
35 char literalQuote = '\'');
36
37void clean_name_string(std::string &name, const std::string &keyChars);
38
39std::vector<std::string> generate_parents(const std::string &section, std::string &name, char parentSeparator);
40
42void checkParentSegments(std::vector<ConfigItem> &output, const std::string &currentSection, char parentSeparator);
43} // namespace detail
44
45// [CLI11:config_hpp:end]
46} // namespace CLI
47
48#ifndef CLI11_COMPILE
49#include "impl/Config_inl.hpp" // IWYU pragma: export
50#endif