X-Git-Url: http://git.treefish.org/~alex/phys/latlib.git/blobdiff_plain/3bb55613d615dd93b662c4cd1a9c6198f7de53ff..a55a5830c5c98e950d58593697dd4ee5e4384716:/configcache.h diff --git a/configcache.h b/configcache.h index 139218b..4aa245e 100644 --- a/configcache.h +++ b/configcache.h @@ -42,7 +42,7 @@ 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 writeHeader(char *header, long unsigned int size); void *getHeader(); private: @@ -87,11 +87,14 @@ class configcache{ int readDataToMem(char *tmpData, long unsigned int dataSize); void openOutFile(); - bool openInFile(); - char *headerData; + char *readHeaderData; - void readHeader(); + bool readHeader(); + + bool headerWritten; + + int readFullBlock(char *tmpData, long unsigned int dataSize); }; #endif