#include <iostream>
#include <time.h>
#include <dirent.h>
-#include <string.h>
configcache::configcache(const string& cacheid, const int& nequi, const int& nskip, const string& datadir, char **configmem, const int& configMemSize){
NEQUI = nequi;
delete[] inchar;
- if( truncIn.find( getFileId(true) ) == string::npos ) return false;
+ if( truncIn.find( getFileId(true) + "_" ) == string::npos ) return false;
return true;
}
time_t secstamp = time(NULL);
outFileName.str("");
- outFileName << DATADIR << "/" << secstamp << "_" << getFileId() << ".dat.tmp";
+ outFileName << DATADIR << "/" << secstamp << "_" << getFileId() << "_.dat.tmp";
outFile.open( outFileName.str().c_str(), std::ios::binary );
outBuffer = new boost::iostreams::filtering_ostreambuf;