imgtools/imglib/filesystem/include/fat16filesystem.h
changeset 0 044383f39525
equal deleted inserted replaced
-1:000000000000 0:044383f39525
       
     1 /*
       
     2 * Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 * FAT16 file system Class for FileSystem component
       
    16 * @internalComponent
       
    17 * @released
       
    18 *
       
    19 */
       
    20 
       
    21 
       
    22 #ifndef FAT16FILESYSTEM_H
       
    23 #define FAT16FILESYSTEM_H
       
    24 
       
    25 #include "filesystemclass.h"
       
    26 #include "errorhandler.h"
       
    27 #include "dirregion.h"
       
    28 #include"filesysteminterface.h"
       
    29 
       
    30 /**
       
    31 Class representing concrete class representing FAT16 type 
       
    32 
       
    33 @internalComponent
       
    34 @released
       
    35 */
       
    36 
       
    37 class CFat16FileSystem : public CFileSystem
       
    38 {
       
    39 private:
       
    40 	TFAT16BootSector iFAT16BootSector;
       
    41 	//use to contain the data structure used to create a FAT Table
       
    42 	TClustersPerEntryMap* iClustersPerEntry;
       
    43 
       
    44 public:
       
    45 	CFat16FileSystem (){};
       
    46 	~CFat16FileSystem(){};
       
    47 	void CreateBootSector(Long64 aPartitionSize,ConfigurableFatAttributes* aConfigurableFatAttributes);
       
    48 	void WriteBootSector(ofstream& aOutPutStream);
       
    49 	void CreateFatTable(ofstream& aOutPutStream);
       
    50 	void ComputeClusterSizeInBytes();
       
    51 	void ComputeRootDirSectors();
       
    52 	void ComputeBytesPerSector();
       
    53 	void ComputeTotalClusters(Long64 aPartitionSize);
       
    54 	void Execute(Long64 aPartitionSize,EntryList aNodeList,
       
    55 				 ofstream& aOutPutStream,ConfigurableFatAttributes* aConfigurableFatAttributes);
       
    56 	void ErrorExceptionClean();
       
    57 };
       
    58 #endif //FAT16FILESYSTEM_H