65 static inline SP::CORE_Run
New() {
111 "CORE_Run::getClassFactory()",
112 "global variable CORE_Run::CLASS_FACTORY not set");
113 return *CLASS_FACTORY.get();
124 static void createIO(
const map<tString,tString>& options);
164 if (arg.compare(
"tests")==0)
return makeTests(options);
165 else if (arg.compare(
"performance")==0)
return makePerformance(options);
166 else if (arg.compare(
"help")==0) {
170 else if (arg.compare(
"type")==0)
return makeType();
171 else if (arg.compare(
"validation")==0)
return makeValidation(options);
172 else if (arg.compare(
"run")==0)
return makeRun(options);
175 cout << arg <<
" unrecognized.\n";
230 static void readOptions(
int argc,
char *argv[],map<tString,tString>& options);
247 virtual void initOptions(map<tString,tString>& options)
const;
271 map<tString,tString>& options)
const;
277 const map<tString,tString>& options)
const;
284 const map<
tString,map<tString,tString> >& manOptions,
285 const map<tString,tString>& options)
const;
293 const map<tString,tString>& options)
const;
302 const map<
tString,map<tString,tString> >& manOptions,
303 const map<tString,tString>& options)
const;
351 tFlag i,p=(vs.size()<3)?vs.size():3;
352 for (i=0;i<p;i++) value[i]=vs[i];
364 for (
tFlag i=0;i<3;i++) value[i]=(
int) rv[i];
376 tFlag i,p=(vs.size()<3)?vs.size():3;
377 for (i=0;i<p;i++) value[i]=vs[i];
static void readOptions(int argc, char *argv[], map< tString, tString > &options)
read the options
Definition: CORE_Run.cpp:403
static tString readPath(const tString &path)
read the path from options
Definition: CORE_Run.cpp:318
CORE_Run(void)
create
Definition: CORE_Run.cpp:11
virtual tBoolean makeValidation(const map< tString, tString > &options) const
compare the result with validated results
Definition: CORE_Run.h:197
void setSoftName(const tString &soft)
set soft name
Definition: CORE_Run.h:76
virtual void initManOptions(map< tString, map< tString, tString > > &options) const
init the man options by theme
Definition: CORE_Run.cpp:198
This class is a Run class for Common package.
Definition: CORE_Run.h:38
CORE_Out & printOptions(CORE_Out &out, const map< tString, tString > &options) const
print the options
Definition: CORE_Run.cpp:513
static tReal readReal(const tString &fn)
read real
Definition: CORE_Run.cpp:351
virtual ~CORE_Run(void)
destroy
Definition: CORE_Run.cpp:15
static tString VERSION
Definition: CORE_Run.h:45
virtual tBoolean makeRun(const map< tString, tString > &options) const
run the program
Definition: CORE_Run.h:218
static tBoolean readVector(const tString &str, CORE_Array< T > &value)
read a double vector
Definition: CORE_Run.h:326
static tBoolean readVector(const tString &str, vector< tReal > &value)
read a double vector
Definition: CORE_Run.h:336
virtual void readOptionsFromFile(const tString &fileName, map< tString, tString > &options) const
read the options from the file
Definition: CORE_Run.cpp:570
static SP::CORE_Run New()
create a new class
Definition: CORE_Run.h:65
static tString readOption(const tString &opt, int argc, char *argv[], tBoolean &isExists)
read the option with name from the command line
Definition: CORE_Run.cpp:355
tString mSoftName
Definition: CORE_Run.h:44
#define tBoolean
Definition: types.h:139
const tString & getSoftName() const
get soft name
Definition: CORE_Run.h:82
#define null
Definition: types.h:144
virtual tBoolean make(const map< tString, tString > &options, const tString &arg) const
make the arg in parameter
Definition: CORE_Run.h:161
static tInteger readInt(const tString &fn)
read int
Definition: CORE_Run.cpp:348
virtual tBoolean run(int argc, char *argv[]) const
run the program
Definition: CORE_Run.cpp:21
static void setVersion(const tString &version)
set the version
Definition: CORE_Run.h:90
tBoolean saveOptionsToFile(const tString &fileName, const map< tString, tString > &options) const
save the options to the file
Definition: CORE_Run.cpp:522
static tBoolean readVector(tString &str, vector< T > &vs)
read vector of string str v=[x,y,z,t] or x,y,z,t
Definition: CORE_VectorReader.hpp:7
this class describes the exceptions raised for CORE package
Definition: CORE_Exception.h:15
virtual void createClassFactories(const map< tString, tString > &options) const
create the class factories from options
Definition: CORE_Run.h:149
this class describes an array
Definition: CORE_Array.h:19
static tString readFile(const tString &path, const tString &fn)
read the file name from options
Definition: CORE_Run.cpp:327
virtual void readOptionsFromCommandLine(int argc, char *argv[], map< tString, tString > &options) const
read the options from the commanand line
Definition: CORE_Run.h:260
static tBoolean readVector(const tString &str, tReal value[3])
read a double vector
Definition: CORE_Run.h:346
virtual tBoolean makeTests(const map< tString, tString > &options) const
run the tests
Definition: CORE_Run.cpp:103
static tBoolean readVector(const tString &str, int value[3])
read an int vector
Definition: CORE_Run.h:360
virtual tBoolean makePerformance(const map< tString, tString > &options) const
run the performance tests
Definition: CORE_Run.cpp:113
abstract base class for most classes.
Definition: CORE_Object.h:53
#define tString
Definition: types.h:135
static void createIO(const map< tString, tString > &options)
read the options for log
Definition: CORE_Run.cpp:254
static void setClassFactory(SP::CORE_ClassFactory cf)
set the class factory to create classes
Definition: CORE_Run.h:103
static CORE_Out & out()
get the output
Definition: CORE_Object.h:198
this class describes a class factory to generate classes for User Interface Software ...
Definition: CORE_ClassFactory.h:18
this class describes the output by default write on standart output
Definition: CORE_Out.h:22
tString man() const
return the man
Definition: CORE_Run.cpp:140
virtual void initOptions(map< tString, tString > &options) const
init the default options
Definition: CORE_Run.cpp:223
static SP::CORE_ClassFactory CLASS_FACTORY
Definition: CORE_Run.h:46
static CORE_ClassFactory & getClassFactory()
get the class factory to create classes
Definition: CORE_Run.h:109
#define tReal
Definition: types.h:118
static tString getVersion()
get the version
Definition: CORE_Run.h:96
virtual tBoolean makeType() const
print the types used in the program
Definition: CORE_Run.cpp:124
#define tInteger
Definition: types.h:90
static tBoolean readVector(const tString &str, tBoolean value[3])
read a boolean vector
Definition: CORE_Run.h:372
static tBoolean readBoolean(const tString &fn)
read boolean from string
Definition: CORE_Run.cpp:340
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:141
#define tFlag
Definition: types.h:74