equal
deleted
inserted
replaced
|
1 // Copyright (c) 2001-2009 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 // This class contains the functionality required to print |
|
15 // test data to a file. |
|
16 // |
|
17 // |
|
18 |
|
19 |
|
20 #ifndef __T_LOGFILEWRITER_H |
|
21 #define __T_LOGFILEWRITER_H |
|
22 |
|
23 |
|
24 #include <e32base.h> |
|
25 #include <f32file.h> |
|
26 |
|
27 |
|
28 class CTestDataWriter : public CBase |
|
29 { |
|
30 public: |
|
31 static CTestDataWriter* NewL(const TDesC& aLogFileName); |
|
32 ~CTestDataWriter(); |
|
33 |
|
34 void WriteTest(const TDesC& aLine); |
|
35 |
|
36 private: |
|
37 CTestDataWriter(); |
|
38 void ConstructL(const TDesC& aLogFileName); |
|
39 |
|
40 private: |
|
41 RFs iFs; |
|
42 RFile iFile; |
|
43 TFileText iWriter; |
|
44 }; |
|
45 |
|
46 |
|
47 #endif |