10 #include "latlib/paraq.h"
11 #include "latlib/writeout.h"
12 #include "latlib/hypercache.h"
23 obs(const string& _obsid, const string& _datadesc, o815 *_O815, const int& _obsmemSize, const string& _obsidpostfix="");
25 void meas(bool loadedobs, const int& nthmeas);
27 string getDataDesc() { return datadesc; };
32 virtual void _meas(bool loadedobs, const int& nthmeas)=0;
33 virtual void _finish()=0;
34 virtual void _start()=0;
38 string simid, datadesc;
45 sim(o815 *_O815, const int& _confmemSize);
48 virtual void _newParas()=0;
51 virtual void _makeSweep()=0;
63 pair<string,int> obscache;
64 pair<string,int> confcache;
79 o815(int argc, char **argv, const string& _programid, comoption specOps[]=NULL, void (*helpHeader)()=NULL);
84 vector<obs*> observables;
88 void addPara(const string& paraid, const double& paraDefault);
89 void addComOption(const char* name, int has_arg, int *flag, int val, const char* optdesc, const char* argdesc);
90 vector< pair<int,char*> > parsedSpecOps;
91 vector<char*> lonelyArgs;
94 vector<comoption> comOptions;
97 static void listArg(int *target, int tlen, char *listarg);
98 void parseArgs(int argc, char **argv, comoption specOps[]);
101 comoption* getOptionByVal(int val);