56
|
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 |
//
|
|
16 |
|
|
17 |
#ifndef __TEST_DATA_WRITER_H_INCLUDED___
|
|
18 |
#define __TEST_DATA_WRITER_H_INCLUDED___
|
|
19 |
|
|
20 |
#include <kernel.h>
|
|
21 |
#include <TraceCoreWriter.h>
|
|
22 |
|
|
23 |
#include "TestDataWriterNotifier.h"
|
|
24 |
|
|
25 |
|
|
26 |
class DTestDataWriter : public DTraceCoreWriter {
|
|
27 |
public:
|
|
28 |
DTestDataWriter();
|
|
29 |
~DTestDataWriter();
|
|
30 |
|
|
31 |
TInt Init();
|
|
32 |
TInt Close();
|
|
33 |
|
|
34 |
TUint32 WriteStart( TWriterEntryType aType );
|
|
35 |
void WriteEnd( TUint32 aEntry );
|
|
36 |
void WriteData( TUint32 aEntry, TUint8 aData );
|
|
37 |
void WriteData( TUint32 aEntry, TUint16 aData );
|
|
38 |
void WriteData( TUint32 aEntry, TUint32 aData );
|
|
39 |
TWriterType GetWriterType();
|
|
40 |
|
|
41 |
private:
|
|
42 |
TInt iInterrupts;
|
|
43 |
TBuf8<KTcTdwBufSize> iBuffer;
|
|
44 |
MTestWriterNotifier* iNotifier;
|
|
45 |
|
|
46 |
friend class DTraceCoreTestWriter;
|
|
47 |
};
|
|
48 |
|
|
49 |
|
|
50 |
#endif // __TEST_DATA_WRITER_H_INCLUDED___
|