ARGoS
3
A parallel, multi-engine simulator for swarm robotics
|
Go to the documentation of this file.
7 #ifndef ARGOS_COMMAND_LINE_ARG_PARSER_H
8 #define ARGOS_COMMAND_LINE_ARG_PARSER_H
11 class CARGoSCommandLineArgParser;
14 #include <argos3/core/utility/configuration/command_line_arg_parser.h>
98 return m_strExperimentConfigFile;
119 return ! m_bNonColoredLog;
129 return m_bHelpWanted;
135 std::string m_strExperimentConfigFile;
136 std::string m_strQuery;
137 std::string m_strLogFileName;
138 std::ofstream m_cLogFile;
139 std::streambuf* m_pcInitLogStream;
140 std::string m_strLogErrFileName;
141 std::ofstream m_cLogErrFile;
142 std::streambuf* m_pcInitLogErrStream;
143 bool m_bNonColoredLog;
145 bool m_bVersionWanted;
virtual ~CARGoSCommandLineArgParser()
Class destructor.
virtual void Parse(SInt32 n_argc, char **ppch_argv)
Parses the command line.
The namespace containing all the ARGoS related code.
const std::string & GetExperimentConfigFile()
Returns the experiment configuration file as parsed by Parse().
bool IsLogColored()
Returns true if color is enabled for LOG and LOGERR.
Easy-to-use command line argument parser.
const std::string & GetQuery()
Returns the query on the plugins as parsed by Parse().
virtual void PrintUsage(CARGoSLog &c_log)
Prints usage information to the wanted log.
signed int SInt32
32-bit signed integer.
EAction
The possible actions that can be done.
The command line argument parser used by the main ARGoS executable.
bool IsHelpWanted()
Returns true if color if a help message must be displayed.
EAction GetAction()
Returns the action parsed by Parse().
virtual void PrintVersion()
Prints the current ARGoS version and release.
CARGoSCommandLineArgParser()
Class constructor.