示例#1
0
/*
 * Read the DataGroupHeader and all DataSetHeaders associated with this DataGroupHeader from the file.
 */
u_int32_t DataGroupHeaderReader::Read(std::ifstream& fileStream, DataGroupHeader& dch)
{
	u_int32_t dataSetCnt = ReadHeader(fileStream, dch);

	// Read the DataSets
	DataSetHeaderReader dphReader;
	dphReader.ReadAll(fileStream, dch, dataSetCnt);
	return dch.GetNextGroupPos();
}
/*
 * Read the DataGroupHeader and all DataSetHeaders associated with this DataGroupHeader from the file.
 */
u_int32_t DataGroupHeaderReader::Read(std::ifstream& fileStream, DataGroupHeader& grpHdr)
{
	ReadDataGroupStartFilePos(fileStream, grpHdr);
	u_int32_t dataSetCnt = ReadHeader(fileStream, grpHdr);

	// Read the DataSets
	DataSetHeaderReader dphReader;
	dphReader.ReadAll(fileStream, grpHdr, dataSetCnt);
	return grpHdr.GetNextGroupPos();
}