X-Git-Url: http://git.treefish.org/~alex/phys/latlib.git/blobdiff_plain/d0f60daffa262185ae50df62668cd6affb54e4b7..3bb55613d615dd93b662c4cd1a9c6198f7de53ff:/configcache.h?ds=sidebyside diff --git a/configcache.h b/configcache.h index 3dda989..139218b 100644 --- a/configcache.h +++ b/configcache.h @@ -30,6 +30,7 @@ struct infiledesc { int nequi; int nskip; bool doVirtualEquilibration; + bool extended; }; class configcache{ @@ -41,6 +42,8 @@ class configcache{ void writeConfig(); void addPara(const string& parid, const double& val=0); void setPara(const string& parid, const double& value); + void writeHeader(char *header, const int& size); + void *getHeader(); private: infiledesc openFileDesc; @@ -81,7 +84,14 @@ class configcache{ vector Paras; - int readConfigToMem(char *tmpConfig); + int readDataToMem(char *tmpData, long unsigned int dataSize); + + void openOutFile(); + bool openInFile(); + + char *headerData; + + void readHeader(); }; #endif