Exemple #1
0
 // file context dump:
 virtual boost::filesystem::fstream& dumpHeaderToFile(boost::filesystem::fstream& os) const {
   std::string timeLabel(makeTimeLabel());
   os << "# StartTime = " << timeLabel << " [UTC]" << lineBreak();
   posEndTime_   = os.tellg() + std::streamoff(14);
   os << "# EndTime   = " << timeLabel << " [UTC]" << lineBreak();
   std::ostringstream oss; dump_header(oss);
   os << oss.str();
   return os;
 }
//==============================================================================
void DiskSampleRecorder::startProcessing()
{
	// Create time label (milliseconds from the beginning of epoch
	String timeLabel( Time::currentTimeMillis() );
 	
	// Create dataWriter thread
	dataWriter	=	new DataWriter(outputDir + "data" + timeLabel + ".dat", processorOutputs, bufferSize, sizeof(float), CIRCULAR_BUFFER_LENGTH, endBuffer);

	dataWriter->startThread();
}