GeMA
The GeMA main application
Loading...
Searching...
No Matches
commandLineParameters.h
Go to the documentation of this file.
1/************************************************************************
2**
3** Copyright (C) 2014 by Carlos Augusto Teixera Mendes
4** All rights reserved.
5**
6** This file is part of the "GeMA" software. It's use should respect
7** the terms in the license agreement that can be found together
8** with this source code.
9** It is provided AS IS, with NO WARRANTY OF ANY KIND,
10** INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR
11** A PARTICULAR PURPOSE.
12**
13************************************************************************/
14
24#ifndef _CMD_LINE_PARAMETERS_H_
25#define _CMD_LINE_PARAMETERS_H_
26
27#include <QString>
28class QStringList;
29
82
83#endif
84
Auxiliary strucuture used to interpret and store command line parameters.
Definition commandLineParameters.h:32
bool printVersion
Shows the GeMA version information and quits.
Definition commandLineParameters.h:52
QString logDir
User supplied value for the $LOG macro.
Definition commandLineParameters.h:42
bool timeMode
DEPRECATED. Forces logging of time messages. Overrides config file logger level options.
Definition commandLineParameters.h:62
void printMessage(QString msg) const
Show message to the user.
Definition commandLineParameters.cpp:530
bool restore
Flag indicating a restore request. Forwarded to the dumpLib (from the script libs).
Definition commandLineParameters.h:66
int statsLevel
The progress level definition. A value from 0 to 4 or -1 if not defined. Overrides config file settin...
Definition commandLineParameters.h:59
QString execFileName
The name of the executable file.
Definition commandLineParameters.h:37
bool monitor
Forces the monitor server to be started. Overrides config file options.
Definition commandLineParameters.h:46
int restoreState
The desired restore state number. 0 if not filled. Forwarded to the dumpLib (from the script libs).
Definition commandLineParameters.h:67
bool noConsoleMode
No console logging. Overrides config file option.
Definition commandLineParameters.h:57
unsigned localServerPort
The port that should be used for listening if localMonitor is true (0 for any port).
Definition commandLineParameters.h:49
QString outputDir
User supplied value for the $OUTPUT macro.
Definition commandLineParameters.h:44
bool noParRestore
Request forwarded to the dumpLib (from the script libs) to prevent user parameters from being recover...
Definition commandLineParameters.h:71
QString inputDir
User supplied value for the $INPUT macro.
Definition commandLineParameters.h:43
bool verboseMode
Log every possible message. Overrides config file logger level options.
Definition commandLineParameters.h:56
QString dumpAbort
Request forwarded to the dumpLib (from the script libs) to provoke an abort at the given step enablin...
Definition commandLineParameters.h:72
bool quietMode
Log only warnings and errors. Overrides config file logger level options.
Definition commandLineParameters.h:55
void showVersion() const
Print version information.
Definition commandLineParameters.cpp:438
QString logFileName
Log file name if provided by the user. Overrides config file option if not empty.
Definition commandLineParameters.h:45
bool noDump
Request forwarded to the dumpLib (from the script libs) to prevent any file dumping.
Definition commandLineParameters.h:73
bool parseParams(const QStringList &params, QString &err)
Parses command line parameters. Returns false and fills err if errors where found....
Definition commandLineParameters.cpp:97
CommandLineParameters()
Constructor. Creates an empty parameter set.
Definition commandLineParameters.cpp:35
bool noMonitor
Prevents the monitor server to be started. Overrides config file options.
Definition commandLineParameters.h:47
QString modelFileName
Model definition file name.
Definition commandLineParameters.h:39
bool restoreList
Request forwarded to the dumpLib (from the script libs) to show the list of available restore states.
Definition commandLineParameters.h:69
QString userOptions
User supplied options table to be merged with Simulation.options.
Definition commandLineParameters.h:41
bool printPversion
Shows the GeMA + plugin version information and quits.
Definition commandLineParameters.h:54
QString connectionFileName
User supplied server connection information file.
Definition commandLineParameters.h:50
QString restoreTag
The name of the state tag to be restored. Forwarded to the dumpLib (from the script libs).
Definition commandLineParameters.h:68
bool memoryMode
DEPRECATED. Forces logging of memory messages. Overrides config file logger level options.
Definition commandLineParameters.h:60
bool noTimeMode
DEPRECATED. Prevents logging of time messages. Overrides config file logger level options.
Definition commandLineParameters.h:63
QString restoreFile
Name of the dump control file forwarded to the dumpLib (from the script libs).
Definition commandLineParameters.h:70
bool printBversion
Shows used BLAS version information and quits.
Definition commandLineParameters.h:53
bool parse(const QStringList &params)
Interprets command line parameters received by the application, filling structre attributes with user...
Definition commandLineParameters.cpp:72
QString userParameters
User supplied model parameters.
Definition commandLineParameters.h:40
bool localMonitor
Forces the monitor server to be started, listening on localhost. Overrides config file options.
Definition commandLineParameters.h:48
bool noServerMode
Prevents sending log messages to the monitor server. Overrides config file options.
Definition commandLineParameters.h:65
bool serverMode
Forces sending log messages to the monitor server. Overrides config file options.
Definition commandLineParameters.h:64
int waitForConnection
Simulation loading waits for first client connection timeout in msec. -1 = no waiting,...
Definition commandLineParameters.h:51
void showUsage() const
Show a warning message describing the accepted parameters.
Definition commandLineParameters.cpp:445
bool checkParams(QString &err)
Checks if required parameters where given and fills default values.
Definition commandLineParameters.cpp:331
bool noMemoryMode
DEPRECATED. Prevents logging of memory messages. Overrides config file logger level options.
Definition commandLineParameters.h:61
bool regressionMode
Logger value tags are enabled to aid in regression test comparisons.
Definition commandLineParameters.h:58
QString configFileName
Configuration file name.
Definition commandLineParameters.h:38