]> git.treefish.org Git - phys/latlib.git/blobdiff - hypercache.h
...
[phys/latlib.git] / hypercache.h
index 1daa6750bd3765c49d2709f9383c6fc24cd225a0..79fe825884a2c0982553ed5b740a8d8d4f51674f 100644 (file)
@@ -20,13 +20,15 @@ class hypercache {
                    char **configmem, const int& configMemSize, const int& cachemode=CACHE_MODE_FULL, ostream *_log=NULL) {
     initCache(&C, cacheid, nequi, nskip, datadir, configmem, configMemSize, cachemode, _log);
   }
                    char **configmem, const int& configMemSize, const int& cachemode=CACHE_MODE_FULL, ostream *_log=NULL) {
     initCache(&C, cacheid, nequi, nskip, datadir, configmem, configMemSize, cachemode, _log);
   }
+
+  static int getNEquiLeft() { return nequileft; }
   
   static void addPara(const string& parid, const double& val=0);
   static void setPara(const string& parid, const double& value);
   static void readO(int obsid, bool& readnewconfig, int& nequileft);
   
   static void addPara(const string& parid, const double& val=0);
   static void setPara(const string& parid, const double& value);
   static void readO(int obsid, bool& readnewconfig, int& nequileft);
-  static void readC(bool& readnewconfig, int& nequileft);
+  static bool readC();
   static void writeO(int obsid, int actnequi);
   static void writeO(int obsid, int actnequi);
-  static void writeC(int actnequi);
+  static void writeC();
   static void writeHeaderO(int obsid, const string& headerid, char *header, long unsigned int size, int actnequi) { Os[obsid]->writeHeader(headerid, header, size, actnequi); }
   static void *getHeaderO(int obsid, const string& headerid) { Os[obsid]->getHeader(headerid); }
   static void writeHeaderC(const string& headerid, char *header, long unsigned int size, int actnequi) { C->writeHeader(headerid, header, size, actnequi); }
   static void writeHeaderO(int obsid, const string& headerid, char *header, long unsigned int size, int actnequi) { Os[obsid]->writeHeader(headerid, header, size, actnequi); }
   static void *getHeaderO(int obsid, const string& headerid) { Os[obsid]->getHeader(headerid); }
   static void writeHeaderC(const string& headerid, char *header, long unsigned int size, int actnequi) { C->writeHeader(headerid, header, size, actnequi); }
@@ -59,6 +61,10 @@ class hypercache {
   static vector<unsigned long> parentConfigs;
   static void addParentConfig(const unsigned long *parentconfig);
   static ostream* log;
   static vector<unsigned long> parentConfigs;
   static void addParentConfig(const unsigned long *parentconfig);
   static ostream* log;
+
+  static int NEQUI;
+  static int NSKIP;
+  static int nequileft;
 };
 
 #endif
 };
 
 #endif