imgtools/imglib/filesystem/source/filesystemclass.cpp
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 * This base class defines the common functions, should be available
       
    16 * for the derived classes (FAT16 and FAT32 boot sector classes).
       
    17 * @internalComponent
       
    18 * @released
       
    19 *
       
    20 */
       
    21 
       
    22 #include"filesystemclass.h"
       
    23 
       
    24 /**
       
    25 constructor for CFileSystem class
       
    26 
       
    27 @internalComponent
       
    28 @released
       
    29 */
       
    30 CFileSystem::CFileSystem()
       
    31 {
       
    32 }
       
    33 
       
    34 /**
       
    35 virtual destructor for CFileSystem class
       
    36 
       
    37 @internalComponent
       
    38 @released
       
    39 */
       
    40 CFileSystem::~CFileSystem()
       
    41 {
       
    42 	delete[] iData;
       
    43 }
       
    44 
       
    45 /**
       
    46 get total number of clusters in data segment of FAT image
       
    47 
       
    48 @internalComponent
       
    49 @released
       
    50 
       
    51 @return iTotalClusters total number of clusters
       
    52 */ 
       
    53 unsigned long int  CFileSystem::GetTotalCluster() const
       
    54 {
       
    55 	return iTotalClusters;
       
    56 }	
       
    57 
       
    58 /**
       
    59 Return total number of sectors occupied in root directory
       
    60 
       
    61 @internalComponent
       
    62 @released
       
    63 
       
    64 @return iRootDirSectors total number of root directory sectors
       
    65 */ 
       
    66 unsigned long int CFileSystem::GetRootDirSectors() const
       
    67 {
       
    68 	return iRootDirSectors;
       
    69 }	
       
    70 
       
    71 /**
       
    72 Returns cluster size in bytes
       
    73 
       
    74 @internalComponent
       
    75 @released
       
    76 
       
    77 @return iClusterSize cluster size in bytes
       
    78 */
       
    79 unsigned long int  CFileSystem::GetClusterSize() const
       
    80 {
       
    81 	return iClusterSize;
       
    82 }
       
    83 
       
    84 /**
       
    85 Function to get the sector size in bytes
       
    86 
       
    87 @internalComponent
       
    88 @released
       
    89 
       
    90 @return iBytesPerSector cluster size in bytes
       
    91 */
       
    92 unsigned int CFileSystem::GetBytesPerSector() const
       
    93 {
       
    94 	return iBytesPerSector;
       
    95 }