+
+ outFile.open( outFileName.str().c_str(), std::ios::binary );
+
+ outFile << paraString() << endl;
+
+ ioBuffers->out = new boost::iostreams::filtering_ostreambuf;
+ ioBuffers->out->push(boost::iostreams::bzip2_compressor());
+ ioBuffers->out->push(outFile);
+}
+
+void configcache::writeHeader(const string& headerid, const char *header, long unsigned int size, int actnequi) {
+ unsigned long headeridhash;
+
+ if( DATADIR == "" || !(MODE==CACHE_MODE_WO||MODE==CACHE_MODE_RW) ) return;
+
+ if(!outFile.is_open())
+ openOutFile(actnequi);
+
+ headeridhash = hash(headerid);
+
+ boost::iostreams::write(*ioBuffers->out, (char*)&size, sizeof(long unsigned int));
+ boost::iostreams::write(*ioBuffers->out, (char*)&headeridhash, sizeof(unsigned long));
+ boost::iostreams::write(*ioBuffers->out, header, size);
+}
+
+void configcache::writeConfig(int actnequi)
+{
+ long unsigned int zeroheader=0;
+
+ if ( DATADIR == "" || !(MODE==CACHE_MODE_WO||MODE==CACHE_MODE_RW) ) return;
+
+ if ( ! outFile.is_open() )
+ openOutFile(actnequi);
+
+ boost::iostreams::write(*ioBuffers->out, (char*)&zeroheader, sizeof(long unsigned int));