1 #ifndef GPM_ExamplesRun_H
2 #define GPM_ExamplesRun_H
36 inline static SP::GPM_ExamplesRun
New() {
60 map<tString,tString> readOptions(
int argc,
char *argv[])
const;
67 int readInt(
const tString& fn)
const;
88 unsigned int lmax=current.length();
92 unsigned int indexOB=current.find(
"[");
94 current=current.substr(indexOB+1);
95 lmax=current.length();
100 unsigned int indexC=current.find(
",");
102 for (i=0;i<n;i++) values[i]=0;
104 while ((indexC<lmax)&& (i<n)) {
106 current=current.substr(indexC+1,lmax-indexC-1);
107 lmax=current.length();
108 indexC=current.find(
",");
111 if (i==n)
return true;
114 unsigned int indexCB=current.find(
"]");
117 v=current.substr(0,indexCB);
118 current=current.substr(indexCB+1,lmax-indexCB-1);
119 if (current[0]==
',') current=current.substr(1);
125 for (d=i+1;d<n;d++) {
149 tBoolean runConway(
const tString& path,
const tString& prefix,
const int& niters,
const tString& fileName,
const int inPixelSize[2],
const int outPixelSize[2])
const;
virtual tString man() const
return the man
Definition: GPM_ExamplesRun.cpp:28
This class is a Run class for GPM/Examples.
Definition: GPM_ExamplesRun.h:15
static SP::GPM_ExamplesRun New()
create a run class
Definition: GPM_ExamplesRun.h:36
#define tBoolean
Definition: types.h:35
DEFINE_SPTR(GPM_ExamplesRun)
static void parse(const tString &str, unsigned char &c)
parse unsigned char c in str
Definition: CORE_String.h:418
virtual ~GPM_ExamplesRun(void)
destroy
Definition: GPM_ExamplesRun.cpp:25
abstract base class for most classes.
Definition: CORE_Object.h:30
GPM_ExamplesRun(void)
create
Definition: GPM_ExamplesRun.cpp:19
#define tString
Definition: types.h:36
virtual tBoolean run(int argc, char *argv[]) const
run the progrm
Definition: GPM_ExamplesRun.cpp:824
#define tReal
Definition: types.h:18
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:106