1818
1919namespace hpx ::util {
2020
21- enum class commandline_error_mode : std::uint8_t
22- {
21+ HPX_CXX_EXPORT enum class commandline_error_mode : std::uint8_t {
2322 return_on_error = 1 ,
2423 rethrow_on_error = 2 ,
2524 allow_unregistered = 3 ,
2625 ignore_aliases = 0x40 ,
2726 report_missing_config_file = 0x80
2827 };
2928
30- constexpr bool as_bool (commandline_error_mode val) noexcept
29+ HPX_CXX_EXPORT constexpr bool as_bool (commandline_error_mode val) noexcept
3130 {
3231 return static_cast <int >(val) != 0 ;
3332 }
3433
35- constexpr int operator ~(commandline_error_mode val) noexcept
34+ HPX_CXX_EXPORT constexpr int operator ~(commandline_error_mode val) noexcept
3635 {
3736 return ~static_cast <int >(val);
3837 }
3938
40- constexpr commandline_error_mode operator &(
39+ HPX_CXX_EXPORT constexpr commandline_error_mode operator &(
4140 commandline_error_mode lhs, commandline_error_mode rhs) noexcept
4241 {
4342 return static_cast <commandline_error_mode>(
4443 static_cast <int >(lhs) & static_cast <int >(rhs));
4544 }
4645
47- constexpr commandline_error_mode operator &(
46+ HPX_CXX_EXPORT constexpr commandline_error_mode operator &(
4847 commandline_error_mode lhs, int rhs) noexcept
4948 {
5049 return static_cast <commandline_error_mode>(static_cast <int >(lhs) & rhs);
5150 }
5251
53- constexpr commandline_error_mode operator |(
52+ HPX_CXX_EXPORT constexpr commandline_error_mode operator |(
5453 commandline_error_mode lhs, commandline_error_mode rhs) noexcept
5554 {
5655 return static_cast <commandline_error_mode>(
@@ -68,11 +67,12 @@ namespace hpx::util {
6867
6968namespace hpx ::local::detail {
7069
71- HPX_CORE_EXPORT std::string enquote (std::string arg);
70+ HPX_CXX_EXPORT HPX_CORE_EXPORT std::string enquote (std::string arg);
7271
73- HPX_CORE_EXPORT std::string trim_whitespace (std::string const & s);
72+ HPX_CXX_EXPORT HPX_CORE_EXPORT std::string trim_whitespace (
73+ std::string const & s);
7474
75- struct HPX_CORE_EXPORT option_parser
75+ HPX_CXX_EXPORT struct HPX_CORE_EXPORT option_parser
7676 {
7777 option_parser (util::section const & ini, bool ignore_aliases) noexcept ;
7878
@@ -83,17 +83,17 @@ namespace hpx::local::detail {
8383 bool ignore_aliases_;
8484 };
8585
86- HPX_CORE_EXPORT
87- hpx::program_options::basic_command_line_parser<char >&
88- get_commandline_parser (
89- hpx::program_options::basic_command_line_parser<char >& p,
90- util::commandline_error_mode mode);
86+ HPX_CXX_EXPORT HPX_CORE_EXPORT
87+ hpx::program_options::basic_command_line_parser<char >&
88+ get_commandline_parser (
89+ hpx::program_options::basic_command_line_parser<char >& p,
90+ util::commandline_error_mode mode);
9191
92- HPX_CORE_EXPORT std::vector<std::string> read_config_file_options (
92+ HPX_CXX_EXPORT HPX_CORE_EXPORT std::vector<std::string>
93+ read_config_file_options (
9394 std::string const & filename, util::commandline_error_mode error_mode);
9495
95- enum class options_type
96- {
96+ HPX_CXX_EXPORT enum class options_type {
9797 commandline_options,
9898 hpx_options,
9999 hidden_options,
@@ -104,35 +104,37 @@ namespace hpx::local::detail {
104104 desc_cmdline
105105 };
106106
107- using options_map =
107+ HPX_CXX_EXPORT using options_map =
108108 std::map<options_type, hpx::program_options::options_description>;
109109
110- HPX_CORE_EXPORT options_map compose_local_options ();
111- HPX_CORE_EXPORT void compose_all_options (
110+ HPX_CXX_EXPORT HPX_CORE_EXPORT options_map compose_local_options ();
111+ HPX_CXX_EXPORT HPX_CORE_EXPORT void compose_all_options (
112112 hpx::program_options::options_description const & app_options,
113113 options_map& all_options);
114114
115- HPX_CORE_EXPORT std::string reconstruct_command_line (
115+ HPX_CXX_EXPORT HPX_CORE_EXPORT std::string reconstruct_command_line (
116116 int argc, char * argv[]);
117117
118- HPX_CORE_EXPORT bool parse_commandline (util::section const & rtcfg,
119- options_map& all_options,
118+ HPX_CXX_EXPORT HPX_CORE_EXPORT bool parse_commandline (
119+ util::section const & rtcfg, options_map& all_options,
120120 hpx::program_options::options_description const & app_options,
121121 std::vector<std::string> const & args,
122122 hpx::program_options::variables_map& vm,
123123 util::commandline_error_mode error_mode,
124124 hpx::program_options::options_description* visible,
125125 std::vector<std::string>* unregistered_options);
126126
127- HPX_CORE_EXPORT bool parse_commandline (hpx::util::section const & rtcfg,
127+ HPX_CXX_EXPORT HPX_CORE_EXPORT bool parse_commandline (
128+ hpx::util::section const & rtcfg,
128129 hpx::program_options::options_description const & app_options,
129130 std::string const & cmdline, hpx::program_options::variables_map& vm,
130131 util::commandline_error_mode error_mode =
131132 util::commandline_error_mode::return_on_error,
132133 hpx::program_options::options_description* visible = nullptr ,
133134 std::vector<std::string>* unregistered_options = nullptr );
134135
135- HPX_CORE_EXPORT bool parse_commandline (hpx::util::section const & rtcfg,
136+ HPX_CXX_EXPORT HPX_CORE_EXPORT bool parse_commandline (
137+ hpx::util::section const & rtcfg,
136138 hpx::program_options::options_description const & app_options,
137139 std::string const & arg0, std::vector<std::string> const & args,
138140 hpx::program_options::variables_map& vm,
0 commit comments