19 #ifndef MIRAL_COMMAND_LINE_OPTION_H 20 #define MIRAL_COMMAND_LINE_OPTION_H 22 #include <mir/optional_value.h> 28 namespace mir {
class Server; }
39 std::function<
void(
int value)> callback,
40 std::string
const& option,
41 std::string
const& description,
45 std::function<
void(
double value)> callback,
46 std::string
const& option,
47 std::string
const& description,
48 double default_value);
51 std::function<
void(std::string
const& value)> callback,
52 std::string
const& option,
53 std::string
const& description,
54 std::string
const& default_value);
57 std::function<
void(std::string
const& value)> callback,
58 std::string
const& option,
59 std::string
const& description,
60 char const* default_value);
63 std::function<
void(
bool value)> callback,
64 std::string
const& option,
65 std::string
const& description,
69 std::function<
void(mir::optional_value<int>
const& value)> callback,
70 std::string
const& option,
71 std::string
const& description);
74 std::function<
void(mir::optional_value<std::string>
const& value)> callback,
75 std::string
const& option,
76 std::string
const& description);
79 std::function<
void(mir::optional_value<bool>
const& value)> callback,
80 std::string
const& option,
81 std::string
const& description);
84 std::function<
void(
bool is_set)> callback,
85 std::string
const& option,
86 std::string
const& description);
88 void operator()(mir::Server& server)
const;
96 std::shared_ptr<Self>
self;
100 #endif //MIRAL_COMMAND_LINE_OPTION_H
Add a user configuration option to Mir's option handling. The callback will be invoked during initial...
Definition: command_line_option.h:35
Mir Abstraction Layer.
Definition: active_outputs.h:27