9 #include <boost/iostreams/filtering_streambuf.hpp>
10 #include <boost/iostreams/stream.hpp>
11 #include <boost/iostreams/filter/bzip2.hpp>
12 #include <boost/iostreams/device/array.hpp>
13 #include <boost/iostreams/copy.hpp>
17 #define CACHE_MODE_DISABLED 0
18 #define CACHE_MODE_READ 1
19 #define CACHE_MODE_FULL 2
32 bool doVirtualEquilibration;
39 configcache(const string& cacheid, const int& nequi, const int& nskip, const string& datadir, char **configmem, const int& configMemSize,
40 const int& cachemode=CACHE_MODE_FULL, writeout *out_a=NULL);
43 void addPara(const string& parid, const double& val=0);
44 void setPara(const string& parid, const double& value);
45 void writeHeader(char *header, const int& size);
49 infiledesc openFileDesc;
51 int getParIndex(const string& parid);
57 string getFileId(const bool& shortid=false);
64 stringstream outFileName;
68 boost::iostreams::filtering_istreambuf *inBuffer;
69 boost::iostreams::filtering_ostreambuf *outBuffer;
77 bool refetchDataFiles;
79 void fetchDataFiles();
81 bool isValidInFile(const string& infile, infiledesc *filedesc);
83 vector<infiledesc> inFiles;
85 vector<parameter> Paras;
87 int readDataToMem(char *tmpData, long unsigned int dataSize);