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++; } }
void CDFCntrlFileWriter::WriteHeaders() { writer->WriteHeader(); DataGroupWriter* dataGroupWriter = &writer->GetDataGroupWriter(0); dataGroupWriter->WriteHeader(); contentsWriter = &dataGroupWriter->GetDataSetWriter(0); contentsWriter->WriteHeader(); contentsPos = writer->GetFilePos(); }
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++; } }