]> git.treefish.org Git - phys/latlib.git/blobdiff - configcache.h
...
[phys/latlib.git] / configcache.h
index 139218b9cbf3b11c7ea6582cea2cc5f83ae4f1f4..4aa245e5e69902e896325498870d8249dad7605a 100644 (file)
@@ -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