Exemplo n.º 1
0
ClusterGraphCopy::ClusterGraphCopy(const ExtendedNestingGraph &H, const ClusterGraph &CG)
: ClusterGraph(H), m_pCG(&CG), m_pH(&H), m_copy(CG,0)
{
	m_original.init(*this,0);
	m_copy    [CG.rootCluster()] = rootCluster();
	m_original[rootCluster()]    = CG.rootCluster();

	createClusterTree(CG.rootCluster());
}
Exemplo n.º 2
0
void ClusterGraphCopy::init(const ExtendedNestingGraph &H, const ClusterGraph &CG)
{
	ClusterGraph::init(H);
	m_pCG = &CG;
	m_pH  = &H;
	m_copy    .init(CG,0);
	m_original.init(*this,0);

	m_copy    [CG.rootCluster()] = rootCluster();
	m_original[rootCluster()]    = CG.rootCluster();

	createClusterTree(CG.rootCluster());
}
Exemplo n.º 3
0
int readBootSector(FILE *fileImgPtr) {

  //Gather important boot sector info.
  fsMetadata[BYTES_PER_SECTOR] = bytesPerSector(fileImgPtr);
  fsMetadata[SECTORS_PER_CLUSTER] = sectorsPerCluster(fileImgPtr);
  fsMetadata[RESERVED_SECTOR_COUNT] = reservedSectorCount(fileImgPtr);
  fsMetadata[NUMBER_OF_FATS] = numberOfFATS(fileImgPtr);
  fsMetadata[FAT_SIZE] = fatSize32(fileImgPtr);
  fsMetadata[ROOT_CLUSTER] = rootCluster(fileImgPtr);
  fsMetadata[ROOT_ENT_CNT] = rootEntryCount(fileImgPtr);
  fsMetadata[ROOT_DIR_SECTORS] = rootDirectorySectors(fileImgPtr);
  fsMetadata[FIRST_DATA_SECTOR] = firstDataSector(fileImgPtr);

  return 0;
}