compressionlibs/ziplib/test/oldezlib/zip/ZipFileMember.cpp
changeset 0 e4d67989cc36
equal deleted inserted replaced
-1:000000000000 0:e4d67989cc36
       
     1 // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #include "OldZipFileMember.h"
       
    17 using namespace TOLDEZIP;
       
    18 
       
    19 /**
       
    20 Retrieve CRC value in a compressed file contained in a CZipFile archive file. 
       
    21 
       
    22 @return the 32 bit integer contains the CRC value 
       
    23 */  
       
    24 EXPORT_C TUint32 CZipFileMember::CRC32(void) const
       
    25 	{
       
    26 	return iCRC32;
       
    27 	}
       
    28 
       
    29 /**
       
    30 Retrieve the size of compressed file contained in a CZipFile archive file.
       
    31 
       
    32 @return the size of a compressed file 
       
    33 */  	
       
    34 EXPORT_C TUint32 CZipFileMember::CompressedSize(void) const
       
    35 	{
       
    36 	return iCompressedSize;
       
    37 	}
       
    38 
       
    39 /**
       
    40 Retrieve the name of a compressed file contained in a CZipFile archive file.
       
    41 
       
    42 @return the name of a compressed file 
       
    43 */  
       
    44 EXPORT_C const TFileName* CZipFileMember::Name(void) const
       
    45 	{
       
    46 	return iName;
       
    47 	}
       
    48 	
       
    49 /**
       
    50 Retrieve the size of uncompressed file contained in a CZipFile archive file.
       
    51 
       
    52 @return the size of a uncompressed file 
       
    53 */ 
       
    54 EXPORT_C TUint32 CZipFileMember::UncompressedSize(void) const
       
    55 	{
       
    56 	return iUncompressedSize;
       
    57 	}
       
    58 
       
    59 /**
       
    60 Destructor
       
    61 */
       
    62 EXPORT_C CZipFileMember::~CZipFileMember()
       
    63 	{
       
    64 	delete iName;
       
    65 	}