tracesrv/tracecore/writers/xti/common/src/TraceCoreRegisterWriter.cpp
changeset 56 aa2539c91954
equal deleted inserted replaced
54:a151135b0cf9 56:aa2539c91954
       
     1 // Copyright (c) 2007-2010 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 //- Include Files  ----------------------------------------------------------
       
    16 
       
    17 #include <TraceCoreConstants.h>
       
    18 #include "TraceCoreRegisterWriter.h" 
       
    19 #include "OstTraceDefinitions.h"
       
    20 #ifdef OST_TRACE_COMPILER_IN_USE
       
    21 #include "TraceCoreRegisterWriterTraces.h"
       
    22 #endif
       
    23 
       
    24 
       
    25 /**
       
    26  * Constructor
       
    27  */
       
    28 DTraceCoreRegisterWriter::DTraceCoreRegisterWriter()
       
    29 : DTraceCoreWriter( EWriterTypeXTI )
       
    30 	{
       
    31 	}
       
    32 
       
    33 
       
    34 /**
       
    35  * Destructor
       
    36  */
       
    37 DTraceCoreRegisterWriter::~DTraceCoreRegisterWriter()
       
    38 	{
       
    39 	}
       
    40 
       
    41 
       
    42 /**
       
    43  * Registers this writer
       
    44  */
       
    45 TInt DTraceCoreRegisterWriter::Register()
       
    46 	{
       
    47 	OstTrace0( TRACE_BORDER, DTRACECOREREGISTERWRITER_REGISTER_ENTRY, "> DTraceCoreRegisterWriter::Register");
       
    48 	InitProperties( iProperties );
       
    49 	
       
    50 	// Register to TraceCore
       
    51     TInt retval = DTraceCoreWriter::Register();
       
    52 	OstTrace1( TRACE_BORDER, DTRACECOREREGISTERWRITER_REGISTER_EXIT, "< DTraceCoreRegisterWriter::Register. Ret:%d", retval );
       
    53 	return retval;
       
    54 	}
       
    55 
       
    56 // End of File