SNode.C
Loading...
Searching...
No Matches
SubCommand.h
Go to the documentation of this file.
1/*
2 * SNode.C - A Slim Toolkit for Network Communication
3 * Copyright (C) Volker Christian <me@vchrist.at>
4 * 2020, 2021, 2022, 2023, 2024, 2025, 2026
5 *
6 * This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU Lesser General Public License as published
8 * by the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20/*
21 * MIT License
22 *
23 * Permission is hereby granted, free of charge, to any person obtaining a copy
24 * of this software and associated documentation files (the "Software"), to deal
25 * in the Software without restriction, including without limitation the rights
26 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
27 * copies of the Software, and to permit persons to whom the Software is
28 * furnished to do so, subject to the following conditions:
29 *
30 * The above copyright notice and this permission notice shall be included in
31 * all copies or substantial portions of the Software.
32 *
33 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
34 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
35 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
36 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
37 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
38 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
39 * THE SOFTWARE.
40 */
41
42#ifndef UTILS_SUBCOMMAND_H
43#define UTILS_SUBCOMMAND_H
44
45#ifndef DOXYGEN_SHOULD_SKIP_THIS
46
47#include <functional>
48#include <map>
49#include <memory>
50#include <set>
51#include <string>
52#include <utility>
53
54#ifdef __GNUC__
55#pragma GCC diagnostic push
56#pragma GCC diagnostic ignored "-Wfloat-equal"
57#ifdef __has_warning
58#if __has_warning("-Wweak-vtables")
59#pragma GCC diagnostic ignored "-Wweak-vtables"
60#endif
61#if __has_warning("-Wcovered-switch-default")
62#pragma GCC diagnostic ignored "-Wcovered-switch-default"
63#endif
64#if __has_warning("-Wmissing-noreturn")
65#pragma GCC diagnostic ignored "-Wmissing-noreturn"
66#endif
67#if __has_warning("-Wnrvo")
68#pragma GCC diagnostic ignored "-Wnrvo"
69#endif
70#endif
71#endif
72#include "utils/CLI11.hpp" // IWYU pragma: export
73#ifdef __GNUC__
74#pragma GCC diagnostic pop
75#endif
76
77#endif // DOXYGEN_SHOULD_SKIP_THIS
78
79namespace utils {
80 class SubCommand;
81
82 class AppWithPtr : public CLI::App {
83 public:
84 AppWithPtr(const std::string& description, const std::string& name, SubCommand* t);
85
86 ~AppWithPtr() override;
87
88 const SubCommand* getPtr() const;
90
91 void validate();
92
93 private:
95 };
96
97 class SubCommand {
98 protected:
99 SubCommand(SubCommand* parent, std::shared_ptr<utils::AppWithPtr> appWithPtr, const std::string& group, bool final = false);
100
101 template <typename ConcretSubCommand>
102 SubCommand(SubCommand* parent, ConcretSubCommand* concretSubCommand, const std::string& group, bool final = false);
103
104 public:
105 SubCommand(const SubCommand&) = delete;
107
108 SubCommand& operator=(const SubCommand&) = delete;
110
111 virtual ~SubCommand();
112
113 std::string getName() const;
114 std::string version() const;
115
116 protected:
117 void parse(int argc, char* argv[]) const;
118
119 SubCommand* description(const std::string& description);
120 SubCommand* footer(const std::string& footer);
121
122 void removeSubCommand();
123
124 public:
125 CLI::Option* setConfig(const std::string& defaultConfigFile) const;
126 CLI::Option* setLogFile(const std::string& defaultLogFile) const;
127 CLI::Option* setVersionFlag(const std::string& version) const;
128
129 bool hasParent() const;
130 SubCommand* getParent() const;
131
132 SubCommand* allowExtras(bool allow = true);
133
134 SubCommand* required(bool required = true, bool force = true);
135 SubCommand* required(SubCommand* subCommand, bool required = true);
136 SubCommand* required(CLI::Option* option, bool required = true);
137
138 bool getRequired() const {
139 return subCommandApp->get_required();
140 }
141
142 SubCommand* needs(SubCommand* subCommand, bool needs = true);
143 SubCommand* disabled(SubCommand* subCommand, bool disabled = true);
144
145 SubCommand* setRequireCallback(const std::function<void(void)>& callback);
146 SubCommand* finalCallback(const std::function<void()>& finalCallback);
147
148 std::string configToStr() const;
149 std::string help(const CLI::App* helpApp, const CLI::AppFormatMode& mode) const;
150
151 void addSubCommandApp(std::shared_ptr<utils::AppWithPtr> subCommand);
152
153 template <typename NewSubCommand, typename... Args>
154 NewSubCommand* newSubCommand(Args&&... args);
155
156 template <typename RequestedSubCommand>
157 RequestedSubCommand* getSubCommand();
158
159 template <typename RequestedSubCommand>
160 RequestedSubCommand* getSubCommand() const;
161
162 CLI::Option* getOption(const std::string& name) const;
163
164 CLI::Option* addOption(const std::string& name,
165 const std::string& description,
166 const std::string& typeName,
167 const CLI::Validator& validator) const;
168
169 template <typename ValueTypeT>
170 CLI::Option* addOption(const std::string& name,
171 const std::string& description,
172 const std::string& typeName,
173 ValueTypeT defaultValue,
174 const CLI::Validator& validator) const;
175
176 template <typename ValueTypeT>
177 CLI::Option* addOptionVariable(const std::string& name,
178 ValueTypeT& variable,
179 const std::string& description,
180 const std::string& typeName,
181 const CLI::Validator& additionalValidator) const;
182
183 template <typename ValueTypeT>
184 CLI::Option* addOptionVariable(const std::string& name,
185 ValueTypeT& variable,
186 const std::string& description,
187 const std::string& typeName,
188 ValueTypeT defaultValue,
189 const CLI::Validator& additionalValidator) const;
190
191 CLI::Option* addOptionFunction(const std::string& name,
192 const std::function<void(const std::string&)>& callback,
193 const std::string& description,
194 const std::string& typeName,
195 const CLI::Validator& validator) const;
196
197 template <typename ValueTypeT>
198 CLI::Option* addOptionFunction(const std::string& name,
199 const std::function<void(const std::string&)>& callback,
200 const std::string& description,
201 const std::string& typeName,
202 ValueTypeT defaultValue,
203 const CLI::Validator& validator) const;
204
205 CLI::Option* addFlag(const std::string& name,
206 const std::string& description,
207 const std::string& typeName,
208 const CLI::Validator& validator) const;
209
210 template <typename ValueTypeT>
211 CLI::Option* addFlag(const std::string& name,
212 const std::string& description,
213 const std::string& typeName,
214 ValueTypeT defaultValue,
215 const CLI::Validator& validator) const;
216
217 CLI::Option* addFlagFunction(const std::string& name,
218 const std::function<void()>& callback,
219 const std::string& description,
220 const std::string& typeName,
221 const CLI::Validator& validator) const;
222
223 CLI::Option* addFlagFunction(const std::string& name,
224 const std::function<void()>& callback,
225 const std::string& description,
226 const std::string& typeName,
227 const std::string& defaultValue,
228 const CLI::Validator& validator) const;
229
230 protected:
231 template <typename ValueTypeT>
232 CLI::Option* setDefaultValue(CLI::Option* option, const ValueTypeT& value, bool clear = true) const;
233
234 CLI::Option* setConfigurable(CLI::Option* option, bool configurable) const;
235
236 static CLI::App* getHelpTriggerApp();
237 static CLI::App* getShowConfigTriggerApp();
238 static CLI::App* getCommandlineTriggerApp();
239
240 static std::shared_ptr<CLI::Formatter> sectionFormatter;
241
243
244 static CLI::App* helpTriggerApp;
247
248 private:
249 CLI::Option* initialize(CLI::Option* option, const std::string& typeName, const CLI::Validator& validator, bool configurable) const;
250
252 std::string name;
254
257
258 bool final;
259
260 protected:
261 CLI::Option* helpOpt = nullptr;
262
263 private:
264 CLI::Option* showConfigOpt = nullptr;
265 CLI::Option* commandlineOpt = nullptr;
266
268 };
269
270 template <typename ConcretSubCommand>
271 inline SubCommand::SubCommand(SubCommand* parent, ConcretSubCommand* concretSubCommand, const std::string& group, bool final)
272 : SubCommand(parent,
273 std::make_shared<utils::AppWithPtr>(
274 std::string(ConcretSubCommand::DESCRIPTION), std::string(ConcretSubCommand::NAME), concretSubCommand),
275 group,
276 final) {
277 }
278
279 template <typename NewSubCommand, typename... Args>
280 NewSubCommand* SubCommand::newSubCommand(Args&&... args) {
281 NewSubCommand* newSubCommand = nullptr;
282
283 if (!final) {
284 /*
285 helpOpt->description("Print help message and exit\n"
286 "* standard: display help for the last command processed\n"
287 "* exact: display help for the command directly preceding --help\n"
288 "* expanded: display help including all descendant sections");
289 if (auto* existing = helpOpt->get_validator(); existing != nullptr) {
290 *existing = std::move(CLI::IsMember({"standard", "exact", "expanded"})); // replace, do not append
291 }
292 */
293 newSubCommand =
294 dynamic_cast<NewSubCommand*>(*childSubCommands.insert(new NewSubCommand(this, std::forward<Args>(args)...)).first);
295 }
296
297 return newSubCommand;
298 }
299
300 template <typename RequestedSubCommand>
301 RequestedSubCommand* SubCommand::getSubCommand() {
302 auto* appWithPtr = subCommandApp->get_subcommand_no_throw(std::string(RequestedSubCommand::NAME));
303
304 AppWithPtr* subCommandApp = dynamic_cast<utils::AppWithPtr*>(appWithPtr);
305
306 return subCommandApp != nullptr ? dynamic_cast<RequestedSubCommand*>(subCommandApp->getPtr()) : nullptr;
307 }
308
309 template <typename RequestedSubCommand>
310 RequestedSubCommand* SubCommand::getSubCommand() const {
311 auto* appWithPtr = subCommandApp->get_subcommand_no_throw(std::string(RequestedSubCommand::NAME));
312
313 AppWithPtr* subCommandApp = dynamic_cast<utils::AppWithPtr*>(appWithPtr);
314
315 return subCommandApp != nullptr ? dynamic_cast<RequestedSubCommand*>(subCommandApp->getPtr()) : nullptr;
316 }
317
318 template <typename ValueTypeT>
319 CLI::Option* SubCommand::addOption(const std::string& name,
320 const std::string& description,
321 const std::string& typeName,
322 ValueTypeT defaultValue,
323 const CLI::Validator& additionalValidator) const {
324 return setDefaultValue(addOption(name, description, typeName, additionalValidator), defaultValue);
325 }
326
327 template <typename ValueTypeT>
328 CLI::Option* SubCommand::addOptionVariable(const std::string& name,
329 ValueTypeT& variable,
330 const std::string& description,
331 const std::string& typeName,
332 const CLI::Validator& additionalValidator) const {
333 return initialize(
334 subCommandApp->add_option(name, variable, description), typeName, additionalValidator, !subCommandApp->get_disabled());
335 }
336
337 template <typename ValueTypeT>
338 CLI::Option* SubCommand::addOptionVariable(const std::string& name,
339 ValueTypeT& variable,
340 const std::string& description,
341 const std::string& typeName,
342 ValueTypeT defaultValue,
343 const CLI::Validator& additionalValidator) const {
344 return setDefaultValue(addOptionVariable(name, variable, description, typeName, additionalValidator), defaultValue);
345 }
346
347 template <typename ValueTypeT>
348 CLI::Option* SubCommand::addOptionFunction(const std::string& name,
349 const std::function<void(const std::string&)>& callback,
350 const std::string& description,
351 const std::string& typeName,
352 ValueTypeT defaultValue,
353 const CLI::Validator& validator) const {
354 return setDefaultValue(addOptionFunction(name, callback, description, typeName, validator), defaultValue);
355 }
356
357 template <typename ValueTypeT>
358 CLI::Option* SubCommand::addFlag(const std::string& name,
359 const std::string& description,
360 const std::string& typeName,
361 ValueTypeT defaultValue,
362 const CLI::Validator& additionalValidator) const {
363 return setDefaultValue(addFlag(name, description, typeName, additionalValidator), defaultValue);
364 }
365
366 template <typename ValueTypeT>
367 CLI::Option* SubCommand::setDefaultValue(CLI::Option* option, const ValueTypeT& value, bool clear) const {
368 try {
369 option->default_val(value);
370
371 if (clear) {
372 option->clear();
373 }
374 } catch (const CLI::ParseError&) {
375 option = nullptr;
376 }
377
378 return option;
379 }
380
381} // namespace utils
382
383#endif // UTILS_SUBCOMMAND_H
#define VLOG(level)
Definition Logger.h:164
ConfigDb(SubCommand *parent)
CLI::Option * hostOpt
static constexpr std::string_view NAME
static constexpr std::string_view DESCRIPTION
ConfigDb & setHost(const std::string &host)
std::string getHost()
void * operator new(std::size_t count)=delete
static void init(int argc, char *argv[])
Definition SNodeC.cpp:54
~SNodeC()=delete
static TickStatus tick(const utils::Timeval &timeOut=0)
Definition SNodeC.cpp:68
static void free()
Definition SNodeC.cpp:72
static void stop()
Definition SNodeC.cpp:64
SNodeC()=delete
static State state()
Definition SNodeC.cpp:76
static int start(const utils::Timeval &timeOut={LONG_MAX, 0})
Definition SNodeC.cpp:60
Timer(Timer &&timer) noexcept
Definition Timer.cpp:58
virtual ~Timer()
Definition Timer.cpp:78
Timer & operator=(Timer &&timer) noexcept
Definition Timer.cpp:67
Timer(core::TimerEventReceiver *timerEventReceiver)
Definition Timer.cpp:52
void restart()
Definition Timer.cpp:90
TimerEventReceiver * timerEventReceiver
Definition Timer.h:73
void cancel()
Definition Timer.cpp:84
void removeTimerEventReceiver()
Definition Timer.cpp:96
Timer()=default
Timer & operator=(const Timer &)=delete
Timer & operator=(Timer &&timer) noexcept=default
static Timer singleshotTimer(const std::function< void()> &dispatcher, const utils::Timeval &timeout)
Definition Timer.cpp:57
~Timer() override
Definition Timer.cpp:54
static Timer intervalTimer(const std::function< void(const std::function< void()> &)> &dispatcher, const utils::Timeval &timeout)
Definition Timer.cpp:61
Timer(Timer &&timer) noexcept=default
static Timer intervalTimer(const std::function< void()> &dispatcher, const utils::Timeval &timeout)
Definition Timer.cpp:65
MariaDBClientASyncAPI(const MariaDBClientASyncAPI &)=default
virtual MariaDBCommandSequence & execute_async(MariaDBCommand *mariaDBCommand)=0
virtual void execute_sync(MariaDBCommandSync *mariaDBCommand)=0
MariaDBClientSyncAPI(const MariaDBClientSyncAPI &)=default
MariaDBClient(const MariaDBConnectionDetails &details, const std::function< void(const MariaDBState &)> &onStateChanged)
void execute_sync(MariaDBCommandSync *mariaDBCommand) final
MariaDBCommandSequence & execute_async(MariaDBCommand *mariaDBCommand) final
std::function< void(const MariaDBState &)> onStateChanged
MariaDBConnection * mariaDBConnection
MariaDBConnectionDetails details
MariaDBCommandSequence & operator=(MariaDBCommandSequence &&mariaDBCommandSequence)=default
void execute_sync(MariaDBCommandSync *mariaDBCommand) final
std::deque< MariaDBCommand * > & sequence()
MariaDBCommandSequence & execute_async(MariaDBCommand *mariaDBCommand) final
std::deque< MariaDBCommand * > commandSequence
MariaDBCommandSequence(MariaDBCommandSequence &&mariaDBCommandSequence) noexcept=default
LogMessage(Level level, int verboseLevel=-1, bool withErrno=false)
Definition Logger.cpp:280
const SubCommand * getPtr() const
SubCommand * getPtr()
~AppWithPtr() override
AppWithPtr(const std::string &description, const std::string &name, SubCommand *t)
SubCommand * ptr
Definition SubCommand.h:94
CLI::Option * enforceLogFileOpt
Definition Config.h:87
std::string pidDirectory
Definition Config.h:80
bool parse1(int argc, char *argv[])
Definition Config.cpp:463
CLI::Option * logFileOpt
Definition Config.h:83
CLI::Option * versionOpt
Definition Config.h:91
bool parse2(int argc, char *argv[], bool parse1=false)
Definition Config.cpp:552
CLI::Option * verboseLevelOpt
Definition Config.h:89
CLI::Option * killOpt
Definition Config.h:93
CLI::Option * aliasOpt
Definition Config.h:94
bool bootstrap(int argc, char *argv[])
Definition Config.cpp:501
std::string applicationName
Definition Config.h:79
CLI::Option * userNameOpt
Definition Config.h:85
void * operator new(std::size_t)=delete
CLI::Option * daemonizeOpt
Definition Config.h:82
CLI::Option * monochromLogOpt
Definition Config.h:84
ConfigRoot * addRootOptions(const std::string &applicationName, const std::string &userName, const std::string &groupName, const std::string &configDirectory, const std::string &logDirectory, const std::string &pidDirectory)
Definition Config.cpp:361
CLI::Option * writeConfigOpt
Definition Config.h:92
CLI::Option * groupNameOpt
Definition Config.h:86
CLI::Option * quietOpt
Definition Config.h:90
CLI::Option * logLevelOpt
Definition Config.h:88
~ConfigRoot() override
Definition Config.cpp:358
static std::string applicationName
Definition Config.h:122
Config(const Config &)=delete
static const std::string & getApplicationName()
Definition Config.cpp:791
static std::string configDirectory
Definition Config.h:124
static std::string pidDirectory
Definition Config.h:126
~Config()=delete
static void terminate()
Definition Config.cpp:787
static void parse()
Definition Config.cpp:783
static int argc
Definition Config.h:119
static std::string logDirectory
Definition Config.h:125
static bool init(int argc, char *argv[])
Definition Config.cpp:657
static ConfigRoot configRoot
Definition Config.h:116
Config & operator=(const Config &)=delete
Config()=delete
static char ** argv
Definition Config.h:120
static bool bootstrap()
Definition Config.cpp:779
static int getLogLevel()
Definition Config.cpp:795
static int getVerboseLevel()
Definition Config.cpp:799
CLI::Option * addFlagFunction(const std::string &name, const std::function< void()> &callback, const std::string &description, const std::string &typeName, const CLI::Validator &validator) const
std::string version() const
NewSubCommand * newSubCommand(Args &&... args)
Definition SubCommand.h:280
SubCommand * description(const std::string &description)
std::shared_ptr< AppWithPtr > selfAnchoredSubCommandApp
Definition SubCommand.h:255
SubCommand * required(SubCommand *subCommand, bool required=true)
CLI::Option * addOptionVariable(const std::string &name, ValueTypeT &variable, const std::string &description, const std::string &typeName, ValueTypeT defaultValue, const CLI::Validator &additionalValidator) const
Definition SubCommand.h:338
SubCommand * allowExtras(bool allow=true)
CLI::Option * addFlagFunction(const std::string &name, const std::function< void()> &callback, const std::string &description, const std::string &typeName, const std::string &defaultValue, const CLI::Validator &validator) const
bool getRequired() const
Definition SubCommand.h:138
SubCommand * required(bool required=true, bool force=true)
SubCommand * footer(const std::string &footer)
RequestedSubCommand * getSubCommand()
Definition SubCommand.h:301
SubCommand * disabled(SubCommand *subCommand, bool disabled=true)
void parse(int argc, char *argv[]) const
static CLI::App * showConfigTriggerApp
Definition SubCommand.h:245
CLI::Option * addFlag(const std::string &name, const std::string &description, const std::string &typeName, ValueTypeT defaultValue, const CLI::Validator &validator) const
Definition SubCommand.h:358
CLI::Option * addOption(const std::string &name, const std::string &description, const std::string &typeName, ValueTypeT defaultValue, const CLI::Validator &validator) const
Definition SubCommand.h:319
SubCommand * required(CLI::Option *option, bool required=true)
bool hasParent() const
SubCommand(SubCommand *parent, std::shared_ptr< utils::AppWithPtr > appWithPtr, const std::string &group, bool final=false)
RequestedSubCommand * getSubCommand() const
Definition SubCommand.h:310
CLI::Option * setDefaultValue(CLI::Option *option, const ValueTypeT &value, bool clear=true) const
Definition SubCommand.h:367
std::set< SubCommand * > childSubCommands
Definition SubCommand.h:256
CLI::Option * setVersionFlag(const std::string &version) const
CLI::Option * commandlineOpt
Definition SubCommand.h:265
CLI::Option * helpOpt
Definition SubCommand.h:261
SubCommand * finalCallback(const std::function< void()> &finalCallback)
AppWithPtr * subCommandApp
Definition SubCommand.h:251
virtual ~SubCommand()
static std::shared_ptr< CLI::Formatter > sectionFormatter
Definition SubCommand.h:240
SubCommand * parent
Definition SubCommand.h:253
static CLI::App * helpTriggerApp
Definition SubCommand.h:244
std::string name
Definition SubCommand.h:252
CLI::Option * addOption(const std::string &name, const std::string &description, const std::string &typeName, const CLI::Validator &validator) const
CLI::Option * getOption(const std::string &name) const
SubCommand & operator=(const SubCommand &)=delete
SubCommand(const SubCommand &)=delete
static CLI::App * getHelpTriggerApp()
static CLI::App * getCommandlineTriggerApp()
SubCommand & operator=(SubCommand &&)=delete
CLI::Option * addOptionFunction(const std::string &name, const std::function< void(const std::string &)> &callback, const std::string &description, const std::string &typeName, ValueTypeT defaultValue, const CLI::Validator &validator) const
Definition SubCommand.h:348
CLI::Option * setConfig(const std::string &defaultConfigFile) const
CLI::Option * showConfigOpt
Definition SubCommand.h:264
static std::map< std::string, std::string > aliases
Definition SubCommand.h:242
std::string help(const CLI::App *helpApp, const CLI::AppFormatMode &mode) const
SubCommand * needs(SubCommand *subCommand, bool needs=true)
std::string configToStr() const
static CLI::App * commandlineTriggerApp
Definition SubCommand.h:246
CLI::Option * setLogFile(const std::string &defaultLogFile) const
void addSubCommandApp(std::shared_ptr< utils::AppWithPtr > subCommand)
CLI::Option * addOptionFunction(const std::string &name, const std::function< void(const std::string &)> &callback, const std::string &description, const std::string &typeName, const CLI::Validator &validator) const
SubCommand * getParent() const
static CLI::App * getShowConfigTriggerApp()
SubCommand(SubCommand *parent, ConcretSubCommand *concretSubCommand, const std::string &group, bool final=false)
Definition SubCommand.h:271
CLI::Option * setConfigurable(CLI::Option *option, bool configurable) const
SubCommand(SubCommand &&)=delete
std::string getName() const
CLI::Option * addFlag(const std::string &name, const std::string &description, const std::string &typeName, const CLI::Validator &validator) const
CLI::Option * initialize(CLI::Option *option, const std::string &typeName, const CLI::Validator &validator, bool configurable) const
SubCommand * setRequireCallback(const std::function< void(void)> &callback)
CLI::Option * addOptionVariable(const std::string &name, ValueTypeT &variable, const std::string &description, const std::string &typeName, const CLI::Validator &additionalValidator) const
Definition SubCommand.h:328
Timeval(const std::initializer_list< time_t > &initList) noexcept
Definition Timeval.cpp:59
int main(int argc, char *argv[])
Definition Timer.h:59
TickStatus
Definition TickStatus.h:51
State
Definition State.h:51
@ RUNNING
Definition State.h:51
@ INITIALIZED
Definition State.h:51
@ STOPPING
Definition State.h:51
State eventLoopState()
Definition State.cpp:52
Definition Config.h:54