tracefw/tracecompiler/src/com.nokia.tracecompiler/src/com/nokia/tracecompiler/source/SymbianConstants.java
changeset 56 aa2539c91954
parent 54 a151135b0cf9
child 60 e54443a6878c
child 62 1c2bb2fc7c87
equal deleted inserted replaced
54:a151135b0cf9 56:aa2539c91954
     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:
       
    15 *
       
    16 * Constants related to Symbian sources
       
    17 *
       
    18 */
       
    19 package com.nokia.tracecompiler.source;
       
    20 
       
    21 import com.nokia.tracecompiler.model.TraceParameter;
       
    22 
       
    23 /**
       
    24  * Constants related to Symbian sources
       
    25  * 
       
    26  */
       
    27 public interface SymbianConstants {
       
    28 
       
    29 	/**
       
    30 	 * Include directory
       
    31 	 */
       
    32 	final String INCLUDE_DIRECTORY = "inc"; //$NON-NLS-1$
       
    33 
       
    34 	/**
       
    35 	 * Source directory
       
    36 	 */
       
    37 	final String SOURCE_DIRECTORY = "src"; //$NON-NLS-1$
       
    38 
       
    39 	/**
       
    40 	 * Group directory
       
    41 	 */
       
    42 	final String GROUP_DIRECTORY = "group"; //$NON-NLS-1$
       
    43 
       
    44 	/**
       
    45 	 * Mmpfiles directory
       
    46 	 */
       
    47 	final String MMPFILES_DIRECTORY = "mmpfiles"; //$NON-NLS-1$
       
    48 	
       
    49 	/**
       
    50 	 * ETrue
       
    51 	 */
       
    52 	final String ETRUE = "ETrue"; //$NON-NLS-1$
       
    53 
       
    54 	/**
       
    55 	 * EFalse
       
    56 	 */
       
    57 	final String EFALSE = "EFalse"; //$NON-NLS-1$
       
    58 
       
    59 	/**
       
    60 	 * TBool
       
    61 	 */
       
    62 	final String TBOOL = "TBool"; //$NON-NLS-1$
       
    63 
       
    64 	/**
       
    65 	 * TInt
       
    66 	 */
       
    67 	final String TINT = "TInt"; //$NON-NLS-1$
       
    68 
       
    69 	/**
       
    70 	 * TUint
       
    71 	 */
       
    72 	final String TUINT = "TUint"; //$NON-NLS-1$
       
    73 
       
    74 	/**
       
    75 	 * TInt64
       
    76 	 */
       
    77 	final String TINT64 = "TInt64"; //$NON-NLS-1$
       
    78 
       
    79 	/**
       
    80 	 * TUint64
       
    81 	 */
       
    82 	final String TUINT64 = "TUint64"; //$NON-NLS-1$
       
    83 
       
    84 	/**
       
    85 	 * TTime
       
    86 	 */
       
    87 	final String TTIME = "TTime"; //$NON-NLS-1$
       
    88 
       
    89 	/**
       
    90 	 * TInt32
       
    91 	 */
       
    92 	final String TINT32 = "TInt32"; //$NON-NLS-1$
       
    93 
       
    94 	/**
       
    95 	 * TUint32
       
    96 	 */
       
    97 	final String TUINT32 = "TUint32"; //$NON-NLS-1$
       
    98 
       
    99 	/**
       
   100 	 * TInt16
       
   101 	 */
       
   102 	final String TINT16 = "TInt16"; //$NON-NLS-1$
       
   103 
       
   104 	/**
       
   105 	 * TUint16
       
   106 	 */
       
   107 	final String TUINT16 = "TUint16"; //$NON-NLS-1$
       
   108 
       
   109 	/**
       
   110 	 * TInt8
       
   111 	 */
       
   112 	final String TINT8 = "TInt8"; //$NON-NLS-1$
       
   113 
       
   114 	/**
       
   115 	 * TUint8
       
   116 	 */
       
   117 	final String TUINT8 = "TUint8"; //$NON-NLS-1$
       
   118 
       
   119 	/**
       
   120 	 * TAny
       
   121 	 */
       
   122 	final String TANY = "TAny"; //$NON-NLS-1$
       
   123 
       
   124 	/**
       
   125 	 * TAny*
       
   126 	 */
       
   127 	final String TANY_PTR = "TAny*"; //$NON-NLS-1$
       
   128 	
       
   129 	/**
       
   130 	 * const TAny*
       
   131 	 */
       
   132 	final String CONST_TANY_PTR = "const TAny*"; //$NON-NLS-1$
       
   133 
       
   134 	/**
       
   135 	 * TDes8
       
   136 	 */
       
   137 	final String TDES8 = "TDes8"; //$NON-NLS-1$
       
   138 
       
   139 	/**
       
   140 	 * TDesC8
       
   141 	 */
       
   142 	final String TDESC8 = "TDesC8"; //$NON-NLS-1$
       
   143 
       
   144 	/**
       
   145 	 * TDes16
       
   146 	 */
       
   147 	final String TDES16 = "TDes16"; //$NON-NLS-1$
       
   148 
       
   149 	/**
       
   150 	 * TDesC16
       
   151 	 */
       
   152 	final String TDESC16 = "TDesC16"; //$NON-NLS-1$
       
   153 
       
   154 	/**
       
   155 	 * TDes
       
   156 	 */
       
   157 	final String TDES = "TDes"; //$NON-NLS-1$
       
   158 
       
   159 	/**
       
   160 	 * TDesC
       
   161 	 */
       
   162 	final String TDESC = "TDesC"; //$NON-NLS-1$
       
   163 
       
   164 	/**
       
   165 	 * TPtr8
       
   166 	 */
       
   167 	final String TPTR8 = "TPtr8"; //$NON-NLS-1$
       
   168 
       
   169 	/**
       
   170 	 * TPtrC8
       
   171 	 */
       
   172 	final String TPTRC8 = "TPtrC8"; //$NON-NLS-1$
       
   173 
       
   174 	/**
       
   175 	 * TPtr16
       
   176 	 */
       
   177 	final String TPTR16 = "TPtr16"; //$NON-NLS-1$
       
   178 
       
   179 	/**
       
   180 	 * TPtrC16
       
   181 	 */
       
   182 	final String TPTRC16 = "TPtrC16"; //$NON-NLS-1$
       
   183 
       
   184 	/**
       
   185 	 * TPtr
       
   186 	 */
       
   187 	final String TPTR = "TPtr"; //$NON-NLS-1$
       
   188 
       
   189 	/**
       
   190 	 * TPtrC
       
   191 	 */
       
   192 	final String TPTRC = "TPtrC"; //$NON-NLS-1$
       
   193 
       
   194 	/**
       
   195 	 * TReal
       
   196 	 */
       
   197 	final String TREAL = "TReal"; //$NON-NLS-1$
       
   198 
       
   199 	/**
       
   200 	 * const TDesC8&
       
   201 	 */
       
   202 	final String CONST_TDESC8_REF = "const TDesC8&"; //$NON-NLS-1$
       
   203 
       
   204 	/**
       
   205 	 * const TDesC8&
       
   206 	 */
       
   207 	final String CONST_TDESC16_REF = "const TDesC16&"; //$NON-NLS-1$
       
   208 
       
   209 	/**
       
   210 	 * Prefix for all parameters generated into header files
       
   211 	 */
       
   212 	final String PARAMETER_DECLARATION_PREFIX = "aParam"; //$NON-NLS-1$
       
   213 
       
   214 	/**
       
   215 	 * __KERNEL_MODE__
       
   216 	 */
       
   217 	final String KERNEL_MODE = "__KERNEL_MODE__"; //$NON-NLS-1$
       
   218 
       
   219 	/**
       
   220 	 * Symbian parameter types mapped to TraceParameter types
       
   221 	 */
       
   222 	final String PARAMETER_TYPE_MAP[][] = { { TANY, null },
       
   223 			{ SourceConstants.VOID, null }, { TINT, TraceParameter.SDEC32 },
       
   224 			{ TINT32, TraceParameter.SDEC32 },
       
   225 			{ TBOOL, TraceParameter.SDEC32 },
       
   226 			{ SourceConstants.INT, TraceParameter.SDEC32 },
       
   227 			{ SourceConstants.LONG, TraceParameter.SDEC32 },
       
   228 			{ TUINT, TraceParameter.UDEC32 },
       
   229 			{ TUINT32, TraceParameter.UDEC32 },
       
   230 			{ TINT16, TraceParameter.SDEC16 },
       
   231 			{ SourceConstants.SHORT, TraceParameter.SDEC16 },
       
   232 			{ TUINT16, TraceParameter.UDEC16 },
       
   233 			{ TINT8, TraceParameter.SDEC8 },
       
   234 			{ SourceConstants.CHAR, TraceParameter.SDEC8 },
       
   235 			{ TUINT8, TraceParameter.UDEC8 },
       
   236 			{ TINT64, TraceParameter.SDEC64 },
       
   237 			{ TTIME, TraceParameter.TIME },
       
   238 			{ TUINT64, TraceParameter.UDEC64 },
       
   239 			{ TREAL, TraceParameter.FLOAT_FIX } };
       
   240 
       
   241 }