X-Git-Url: http://git.treefish.org/~alex/phys/latlib.git/blobdiff_plain/f46daea04f594f9f386ac6514733ec1eff860462..36bc55ceb7b62569c7604f28b3e53bc2e42cf0ce:/hypercache.h?ds=sidebyside diff --git a/hypercache.h b/hypercache.h index a30e28e..1daa675 100644 --- a/hypercache.h +++ b/hypercache.h @@ -23,18 +23,17 @@ class hypercache { static void addPara(const string& parid, const double& val=0); static void setPara(const string& parid, const double& value); - static int readO(int obsid); - static int readC(); - static void writeO(int obsid); - static void writeC(); - static void writeHeaderO(int obsid, const string& headerid, char *header, long unsigned int size) { Os[obsid]->writeHeader(headerid, header, size); } + static void readO(int obsid, bool& readnewconfig, int& nequileft); + static void readC(bool& readnewconfig, int& nequileft); + static void writeO(int obsid, int actnequi); + static void writeC(int 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) { C->writeHeader(headerid, header, size); } + static void writeHeaderC(const string& headerid, char *header, long unsigned int size, int actnequi) { C->writeHeader(headerid, header, size, actnequi); } static void *getHeaderC(const string& headerid) { C->getHeader(headerid); } static void finalize(); - static int read1CForEqui(); static int CFilesLeft() { return C->inFilesLeft(); } private: