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>
15 #define CACHE_MODE_DISABLED 0
16 #define CACHE_MODE_READ 1
17 #define CACHE_MODE_FULL 2
29 configcache(const string& cacheid, const int& nequi, const int& nskip, const string& datadir, char **configmem, const int& configMemSize, const int& cachemode=CACHE_MODE_FULL);
32 void addPara(const string& parid, const double& val=0);
33 void setPara(const string& parid, const double& value);
37 int getParIndex(const string& parid);
43 string getFileId(const bool& shortid=false);
48 stringstream outFileName;
52 boost::iostreams::filtering_istreambuf *inBuffer;
53 boost::iostreams::filtering_ostreambuf *outBuffer;
61 bool refetchDataFiles;
63 void fetchDataFiles();
65 bool isValidInFile(const string& infile);
67 vector<string> inFiles;
69 vector<parameter> Paras;