X-Git-Url: http://git.treefish.org/~alex/phys/latlib.git/blobdiff_plain/3db2602cfe30c61445e89cc334541ebb4ff76ed8..22d4f36d4bbd95447a454cceb9084af46927e023:/o815/o815.h diff --git a/o815/o815.h b/o815/o815.h index 31d36da..5776917 100644 --- a/o815/o815.h +++ b/o815/o815.h @@ -15,20 +15,24 @@ class obs; class o815 { public: + class obs { public: - obs(const string& obsid, o815 *_O815); + obs(const string& _obsid, const string& _datadesc, o815 *_O815, char *_obsmem, const int& _obsmemSize); void finish(); void meas(); + void start(); + string getDataDesc() { return datadesc; }; private: virtual void _meas(bool loadedobs)=0; virtual void _finish()=0; + virtual void _start()=0; protected: o815 *O815; char *obsMem; ostream *oout; ostream *olog; - string obsid; + string obsid, datadesc; }; struct { @@ -44,9 +48,12 @@ class o815 { } comargs; o815(int argc, char **argv, const string& programid); + ~o815(); paraq *paraQ; writeout *out; vector observables; + void mainLoop(); + string headMaster(); private: MPI_Status mpiStatus; @@ -54,7 +61,6 @@ private: static void listArg(int *target, int tlen, char *listarg); void parseArgs(int argc, char **argv); string programid; - string headMaster(); }; #endif