analyzetool/storageserver/server/src/atdllinfo.cpp
branchRCL_3
changeset 59 8ad140f3dd41
parent 19 da2cedce4920
equal deleted inserted replaced
49:7fdc9a71d314 59:8ad140f3dd41
       
     1 /*
       
     2 * Copyright (c) 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 "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:  Definitions for the class TATDllInfo.
       
    15 *
       
    16 */
       
    17 
       
    18 // INCLUDE FILES
       
    19 #include "atdllinfo.h"
       
    20 #include "atlog.h"
       
    21 
       
    22 // -----------------------------------------------------------------------------
       
    23 // TATDllInfo::TATDllInfo
       
    24 // C++ default constructor.
       
    25 // -----------------------------------------------------------------------------
       
    26 //
       
    27 TATDllInfo::TATDllInfo( const TUint32 aStartAddress, const TUint32 aEndAddress,
       
    28 	const TInt64& aLoadTime, const TDesC8& aDllName  )
       
    29  :  iStartAddress( aStartAddress ), iEndAddress( aEndAddress ), 
       
    30 	iLoadTime( aLoadTime )
       
    31     {
       
    32     LOGSTR3( "STSE TATDllInfo::TATDllInfo() %x - %x", iStartAddress, iEndAddress );
       
    33     
       
    34     iName.Copy( aDllName );
       
    35     }
       
    36 
       
    37 // -----------------------------------------------------------------------------
       
    38 // TATDllInfo::StartAddress
       
    39 // Returns library start address
       
    40 // -----------------------------------------------------------------------------
       
    41 //
       
    42 TUint32 TATDllInfo::StartAddress()
       
    43     {
       
    44     LOGSTR2( "STSE TATDllInfo::StartAddress( %x )", iStartAddress );
       
    45     
       
    46     return iStartAddress;
       
    47     }
       
    48 
       
    49 // -----------------------------------------------------------------------------
       
    50 // TATDllInfo::EndAddress
       
    51 // Returns library end address
       
    52 // -----------------------------------------------------------------------------
       
    53 //
       
    54 TUint32 TATDllInfo::EndAddress()
       
    55     {
       
    56     LOGSTR2( "STSE TATDllInfo::EndAddress( %x )", iEndAddress );
       
    57     
       
    58     return iEndAddress;
       
    59     }
       
    60 
       
    61 // -----------------------------------------------------------------------------
       
    62 // TATDllInfo::Name
       
    63 // Gets specific library name
       
    64 // -----------------------------------------------------------------------------
       
    65 //
       
    66 TDes8& TATDllInfo::Name()
       
    67     {
       
    68     LOGSTR1( "STSE TATDllInfo::Name()" );
       
    69     
       
    70     return iName;
       
    71     }
       
    72 
       
    73 // -----------------------------------------------------------------------------
       
    74 // TATDllInfo::LibraryLoadTime
       
    75 // Returns library load time
       
    76 // -----------------------------------------------------------------------------
       
    77 //
       
    78 TInt64 TATDllInfo::LibraryLoadTime()
       
    79     {
       
    80     LOGSTR1( "STSE TATDllInfo::LibraryLoadTime()" );
       
    81     
       
    82     return iLoadTime;
       
    83     }
       
    84         
       
    85 // -----------------------------------------------------------------------------
       
    86 // TATDllInfo::Match
       
    87 // Checks if two objects of this class match based on the objects's
       
    88 // saved library name.
       
    89 // -----------------------------------------------------------------------------
       
    90 //
       
    91 TBool TATDllInfo::Match( const TATDllInfo& aFirst, const TATDllInfo& aSecond )
       
    92     {
       
    93     LOGSTR1( "STSE TATDllInfo::Match()" );
       
    94     
       
    95     if ( aFirst.iName.Compare( aSecond.iName ) == 0 )
       
    96         {
       
    97         return ETrue;
       
    98         }
       
    99     return EFalse;
       
   100     }
       
   101 
       
   102 // End of File