#include <sstream>
#include <ostream>
+#include "datread.h"
+
#define CACHE_MODE_OO 0
#define CACHE_MODE_RO 1
#define CACHE_MODE_WO 2
string getOutFileName() { return outFileName.str(); }
string getInFileName() { return DATADIR + "/" + openFileDesc.filename; }
static unsigned long hash(const string& str);
- void closeInFile() { inFile.close(); }
+ void closeInFile() { dataReader->closeFile(); }
int inFilesLeft() { return inFiles.size(); }
char* getConfigMem() { return configMem; }
int getConfigSize() { return configSize; }
string getFileId(int actnequi, const bool& superextended=true, const bool& shortid=false);
ofstream outFile;
- ifstream inFile;
stringstream outFileName;
vector<parameter> Paras;
- int readDataToMem(char *tmpData, long unsigned int dataSize);
-
void openOutFile(int actnequi);
int readHeader();
bool headerWritten;
- int readFullBlock(char *tmpData, long unsigned int dataSize);
-
- vector< pair<unsigned long, void *> > headerStore;
-
- void deleteHeaderStore();
-
bool readAllHeaders();
vector<infiledesc>::iterator getNextInfile(vector<unsigned long> *excludeFileHashes);
bool doVirtualEquilibration, firstUsedConfig;
string paraString();
+
+ datread *dataReader;
};
#endif