tracefw/tracecompiler/test/TracesInHeadersApps/multmmp_separate_source/dll/incDup/HelloTraceTypes2Dup.h
changeset 56 aa2539c91954
parent 54 a151135b0cf9
child 60 e54443a6878c
child 62 1c2bb2fc7c87
equal deleted inserted replaced
54:a151135b0cf9 56:aa2539c91954
     1 /*
       
     2 * Copyright (c) 2010 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: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __HELLOTRACETYPES2DUP_H__
       
    20 #define __HELLOTRACETYPES2DUP_H__
       
    21 
       
    22 #include "OstTraceDefinitions.h"
       
    23 #ifdef OST_TRACE_COMPILER_IN_USE
       
    24 #include "HelloTraceTypes2DupTraces.h"
       
    25 #endif
       
    26 
       
    27 inline void HelloTraceTypes::SignedIntegersDup()
       
    28     {
       
    29     TInt8  eightBit     = - (TInt8)  1 << 6;
       
    30     OstTraceExt1( TRACE_INTERNALS, HELLOTRACETYPES_SIGNEDINTEGERS2DUP_8, 
       
    31                   "8 bit signed: %hhd", eightBit );
       
    32     
       
    33     TInt16 sixteenBit   = - (TInt16) 1 << 14; 
       
    34     OstTraceExt1( TRACE_INTERNALS, HELLOTRACETYPES_SIGNEDINTEGERS2DUP_16, 
       
    35                   "16 bit signed: %hd", sixteenBit );
       
    36 
       
    37     TInt32 thirtyTwoBit = - (TInt32) 1 << 30; 
       
    38     OstTrace1( TRACE_INTERNALS, HELLOTRACETYPES_SIGNEDINTEGERS2DUP_32, 
       
    39                "32 bit signed: %d", thirtyTwoBit );
       
    40 
       
    41     TInt64 sixtyFourBit = - (TInt64) 1 << 62; 
       
    42     OstTraceExt1( TRACE_INTERNALS, HELLOTRACETYPES_SIGNEDINTEGERS2DUP_64, 
       
    43                   "64 bit signed: %Ld", sixtyFourBit );
       
    44     }
       
    45 
       
    46 inline void HelloTraceTypes::UnsignedIntegersDup()
       
    47     {
       
    48     TUint8  eightBit     = (TUint8)  1 << 6;
       
    49     OstTraceExt1( TRACE_INTERNALS, HELLOTRACETYPES_UNSIGNEDINTEGERS2DUP_8, 
       
    50                   "8 bit unsigned: %hhu", eightBit );
       
    51     
       
    52     TUint16 sixteenBit   = (TUint16) 1 << 14; 
       
    53     OstTraceExt1( TRACE_INTERNALS, HELLOTRACETYPES_UNSIGNEDINTEGERS2DUP_16, 
       
    54                   "16 bit unsigned: %hu", sixteenBit );
       
    55 
       
    56     TUint32 thirtyTwoBit = (TUint32) 1 << 30; 
       
    57     OstTrace1( TRACE_INTERNALS, HELLOTRACETYPES_UNSIGNEDINTEGERS2DUP_32, 
       
    58                "32 bit unsigned: %u", thirtyTwoBit );
       
    59 
       
    60     TUint64 sixtyFourBit = (TUint64) 1 << 62; 
       
    61     OstTraceExt1( TRACE_INTERNALS, HELLOTRACETYPES_UNSIGNEDINTEGERS2DUP_64, 
       
    62                   "64 bit unsigned: %Lu", sixtyFourBit );
       
    63     }
       
    64 
       
    65 inline void HelloTraceTypes::DescriptorsDup()
       
    66     {
       
    67     _LIT8(KAscii, "Some ASCII text");
       
    68     OstTraceExt1( TRACE_INTERNALS, HELLOTRACETYPES_ASCII2DUP, "8 bit descriptor: %s", KAscii() );
       
    69 
       
    70     _LIT16(KUnicode, "Some unicode text");    
       
    71     OstTraceExt1( TRACE_INTERNALS, HELLOTRACETYPES_UNICODE2DUP, "16 bit descriptor: %S", KUnicode() );
       
    72     }
       
    73 
       
    74 #endif  // __HELLOTRACETYPES2DUP_H__
       
    75