]> git.treefish.org Git - phys/latlib.git/blobdiff - configcache.h
...
[phys/latlib.git] / configcache.h
index 3dda989c437de8b221c209d5ba70cce7dfef8d53..139218b9cbf3b11c7ea6582cea2cc5f83ae4f1f4 100644 (file)
@@ -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<parameter> Paras;
 
-  int readConfigToMem(char *tmpConfig);
+  int readDataToMem(char *tmpData, long unsigned int dataSize);
+
+  void openOutFile();
+  bool openInFile();
+
+  char *headerData;
+
+  void readHeader();
 };
 
 #endif