13#ifndef RTCTK_COMPONENTFRAMEWORK_RTCCOMPONENTARGS_HPP
14#define RTCTK_COMPONENTFRAMEWORK_RTCCOMPONENTARGS_HPP
98 std::string m_component_name;
99 elt::mal::Uri m_service_disc_endpoint{
"consul://localhost:8500"};
100 std::filesystem::path m_log_props_file;
101 bool m_debug_mode =
false;
102 elt::mal::Uri m_model_export_file;
Class used to parse default command line arguments.
Definition rtcComponentArgs.hpp:33
bool GetDebugMode() const
Get debug mode.
Definition rtcComponentArgs.cpp:36
std::optional< std::filesystem::path > GetLogPropsFile() const
Get name of optionally provided log4cplus log properties file.
Definition rtcComponentArgs.cpp:28
std::optional< elt::mal::Uri > GetModelExportFile() const
Get name of optionally provided state machine model export file.
Definition rtcComponentArgs.cpp:40
void Parse()
do the actual parsing of CLI
Definition rtcComponentArgs.cpp:48
std::string GetComponentName() const
Get component name or identifier.
Definition rtcComponentArgs.cpp:20
Args(int argc, char **argv)
Constructor for Args class.
Definition rtcComponentArgs.cpp:17
elt::mal::Uri GetServiceDiscEndpoint() const
Get service discovery endpoint.
Definition rtcComponentArgs.cpp:24
int PrintHelpOrErrMsg(const CLI::Error &e) const
Print parsing help/version msg or error msg, and return 0 or 1.
Definition rtcComponentArgs.cpp:67
Provides macros and utilities for exception handling.
Definition commandReplier.cpp:22
elt::mal::future< std::string > InjectReqRepEvent(StateMachineEngine &engine)
Definition malEventInjector.hpp:23