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;
38 configcache(const string& cacheid, const int& nequi, const int& nskip, const string& datadir, char **configmem, const int& configMemSize,
39 const int& cachemode=CACHE_MODE_FULL, writeout *out_a=NULL);
42 void addPara(const string& parid, const double& val=0);
43 void setPara(const string& parid, const double& value);
46 infiledesc openFileDesc;
48 int getParIndex(const string& parid);
54 string getFileId(const bool& shortid=false);
61 stringstream outFileName;
65 boost::iostreams::filtering_istreambuf *inBuffer;
66 boost::iostreams::filtering_ostreambuf *outBuffer;
74 bool refetchDataFiles;
76 void fetchDataFiles();
78 bool isValidInFile(const string& infile, infiledesc *filedesc);
80 vector<infiledesc> inFiles;
82 vector<parameter> Paras;
84 int readConfigToMem(char *tmpConfig);