47 static inline SP::CORE_Run
New() {
103 unsigned int i,p=(vs.size()<3)?vs.size():3;
104 for (i=0;i<p;i++) value[i]=vs[i];
113 for (
int i=0;i<3;i++) value[i]=(
int) rv[i];
122 unsigned int i,p=(vs.size()<3)?vs.size():3;
123 for (i=0;i<p;i++) value[i]=vs[i];
139 map<tString,tString>
readOptions(
int argc,
char *argv[])
const;
145 const tFlag& mode)
const;
150 const tString& verboseFile)
const {
SP::CORE_Out createIO(const tBoolean &isVerbose, const tString &verboseFile, const tFlag &mode) const
create the io
Definition: CORE_Run.cpp:91
static const tFlag CREATE
Definition: CORE_Out.h:34
tBoolean readVector(const tString &str, int value[3]) const
read an int vector
Definition: CORE_Run.h:109
CORE_Run(void)
create
Definition: CORE_Run.cpp:5
map< tString, tString > readOptions(int argc, char *argv[]) const
read the options
Definition: CORE_Run.cpp:31
This class is a Run class for Common package.
Definition: CORE_Run.h:21
tBoolean readVector(const tString &str, tBoolean value[3]) const
read an int vector
Definition: CORE_Run.h:118
virtual ~CORE_Run(void)
destroy
Definition: CORE_Run.cpp:9
int readInt(const tString &fn) const
read int
Definition: CORE_Run.cpp:85
void setVersion(const tString &version)
set the version
Definition: CORE_Run.h:56
static SP::CORE_Run New()
create a new class
Definition: CORE_Run.h:47
#define tBoolean
Definition: types.h:35
virtual tBoolean run(int argc, char *argv[]) const
run the progrm
Definition: CORE_Run.cpp:109
tBoolean readVector(const tString &str, tReal value[3]) const
read a double vector
Definition: CORE_Run.h:98
tString readFile(const tString &path, const tString &fn) const
read the file name from options
Definition: CORE_Run.cpp:22
static tBoolean readVector(tString &str, vector< T > &vs)
read vector of string v v=[x,y,z,t] or x,y,z,t
Definition: CORE_VectorReader.hpp:7
SP::CORE_Out createIO(const tBoolean &isVerbose, const tString &verboseFile) const
create the io
Definition: CORE_Run.h:149
tBoolean readBoolean(const tString &fn) const
read boolean
Definition: CORE_Run.cpp:79
tString readPath(const tString &path) const
read the path from options
Definition: CORE_Run.cpp:14
abstract base class for most classes.
Definition: CORE_Object.h:30
virtual tString man() const
return the man
Definition: CORE_Run.cpp:115
tBoolean readVector(const tString &str, vector< tReal > &value) const
read a double vector
Definition: CORE_Run.h:91
#define tString
Definition: types.h:36
#define tReal
Definition: types.h:18
tReal readReal(const tString &fn) const
read real
Definition: CORE_Run.cpp:88
virtual tBoolean runTests() const
run the tests
Definition: CORE_Run.cpp:119
tString getVersion() const
get the version
Definition: CORE_Run.h:61
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:106
#define tFlag
Definition: types.h:14