void CHPFileWriter::WriteHeaders()
{
	writer->WriteHeader();
	DataGroupWriterIt beginGrp;
	DataGroupWriterIt endGrp;
	writer->GetDataGroupWriters(beginGrp, endGrp);
	while(beginGrp != endGrp)
	{
		DataGroupWriter* dataGroupWriter = &(*beginGrp);
		dataGroupWriter->WriteHeader();

		DataSetWriterIt beginSet;
		DataSetWriterIt endSet;
		dataGroupWriter->GetDataSetWriters(beginSet, endSet);
		while(beginSet != endSet)
		{
			dataSetWriter = &(*beginSet);
			beginSet->WriteHeader();
			SetFilePositions();
			beginSet++;
		}
		dataGroupWriter->UpdateNextDataGroupPos();
		beginGrp++;
	}
}
Пример #2
0
void CelFileWriter::WriteHeaders()
{
	writer->WriteHeader();
	DataGroupWriter* dataGroupWriter = &writer->GetDataGroupWriter(0);
	dataGroupWriter->WriteHeader();

	DataSetWriterIt begin;
	DataSetWriterIt end;
	dataGroupWriter->GetDataSetWriters(begin, end);
	while(begin != end)
	{
		dataSetWriter = &(*begin);
		begin->WriteHeader();
		SetFilePositions();
		begin++;
	}
}