#include <boost/iostreams/device/array.hpp>
#include <boost/iostreams/copy.hpp>
+#define CACHE_MODE_DISABLED 0
+#define CACHE_MODE_READ 1
+#define CACHE_MODE_FULL 2
+
using namespace std;
struct parameter{
class configcache{
public:
~configcache();
- configcache(const string& cacheid, const int& nequi, const int& nskip, const string& datadir, char **configmem, const int& configMemSize);
+ configcache(const string& cacheid, const int& nequi, const int& nskip, const string& datadir, char **configmem, const int& configMemSize, const int& cachemode=CACHE_MODE_FULL);
bool readConfig();
void writeConfig();
void addPara(const string& parid, const double& val=0);
int NSKIP;
string DATADIR;
string CACHEID;
+ int MODE;
string getFileId(const bool& shortid=false);
ofstream outFile;