Motorcortex Core
version: 2.7.6
utl_cmdparser.h
1
/*
2
* Developer : Alexey Zakharov (alexey.zakharov@vectioneer.com)
3
* All rights reserved. Copyright (c) 2017 VECTIONEER.
4
*/
5
6
#ifndef UTILS_UTL_CMDPARSER_H
7
#define UTILS_UTL_CMDPARSER_H
8
9
#include <string>
10
11
#include "cm_conndata.h"
12
#include "cmdline_config.h"
13
#include "cmdline_systemmode.h"
14
15
namespace
mcx {
16
17
namespace
utils {
18
19
using
SystemMode = cmd_line::SystemMode;
20
21
struct
CommandLineArgs
{
22
int
system_type;
23
SystemMode system_mode;
24
std::string log_path;
25
std::string config_path;
26
std::string app_version;
27
std::string lib_version;
28
comm::ConnectionData
conn_data;
29
int
error_level;
30
};
31
32
void
parseCmdLine(
int
argc,
char
** argv,
CommandLineArgs
* cmd_args);
33
34
void
printSystemConfig(
const
CommandLineArgs
& cmd_args,
const
char
* system_name);
35
36
}
// namespace utils
37
38
}
// namespace mcx
39
40
#endif // UTILS_UTL_CMDPARSER_H
mcx::comm::ConnectionData
Definition:
cm_conndata.h:18
mcx::utils::CommandLineArgs
Definition:
utl_cmdparser.h:21
utils
utl_cmdparser.h
Generated by
1.8.18