12#ifndef RTCTK_COMPONENTFRAMEWORK_RTCCOMPONENTARGS_HPP
13#define RTCTK_COMPONENTFRAMEWORK_RTCCOMPONENTARGS_HPP
38 Args(
int argc,
char** argv);
97 std::string m_component_name;
98 elt::mal::Uri m_service_disc_endpoint{
"consul://localhost:8500"};
99 std::filesystem::path m_log_props_file;
100 bool m_debug_mode =
false;
101 elt::mal::Uri m_model_export_file;
bool GetDebugMode() const
Get debug mode.
Definition rtcComponentArgs.cpp:35
std::optional< std::filesystem::path > GetLogPropsFile() const
Get name of optionally provided log4cplus log properties file.
Definition rtcComponentArgs.cpp:27
std::optional< elt::mal::Uri > GetModelExportFile() const
Get name of optionally provided state machine model export file.
Definition rtcComponentArgs.cpp:39
void Parse()
do the actual parsing of CLI
Definition rtcComponentArgs.cpp:47
const std::string & GetComponentName() const
Get component name or identifier.
Definition rtcComponentArgs.cpp:19
Args(int argc, char **argv)
Constructor for Args class.
Definition rtcComponentArgs.cpp:16
elt::mal::Uri GetServiceDiscEndpoint() const
Get service discovery endpoint.
Definition rtcComponentArgs.cpp:23
int PrintHelpOrErrMsg(const CLI::Error &e) const
Print parsing help/version msg or error msg, and return 0 or 1.
Definition rtcComponentArgs.cpp:66
Provides macros and utilities for exception handling.
Definition commandReplier.cpp:21