os/textandloc/textrendering/textformatting/test/tbandformat/inc/bandtestfileoutput.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 /*
     2 * Copyright (c) 2006-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 * FILEOUTPUT.H
    16 *
    17 */
    18 
    19 
    20 #ifndef __FILEOUTPUT_H
    21 #define __FILEOUTPUT_H
    22 
    23 #include <e32std.h>
    24 #include <f32file.h>
    25 #include <badesca.h>
    26 /**
    27 @file
    28 @internalComponent 
    29 */
    30 class CTextView;
    31 /**
    32 Class used by CBandValidator to log results of tests
    33 Writes information about document being tested to a file.
    34 If any test fails detailed output will be written to a file
    35 detailing the contents of the views.
    36 */
    37 class CFileOutput : public CBase
    38 	{
    39 public:
    40 	IMPORT_C static CFileOutput* NewL();
    41 	// log document attributes
    42 	virtual void WriteDocumentAttributesL(const CTextView& aView);
    43 	// log document positions
    44 	virtual void WriteDocumentPositionsL(const RArray<TInt>& aPositions);
    45 	// log the test view visible lines 
    46 	virtual void WriteVisibleTestLinesL(const CDesCArray& aTestLines);
    47 	// log the reference view visible lines
    48 	virtual void WriteVisibleReferenceLinesL(const CDesCArray& aTestLines);
    49 	// log the details of operation being performed
    50 	virtual void WriteOperationDetails(const TDesC& aDesc);
    51 	~CFileOutput();
    52 protected:
    53 	CFileOutput();
    54 private:
    55 	virtual void ConstructL();
    56 	void WriteLinesL(const CDesCArray& aLines, RFile& aFile);
    57 	RFs iFs;
    58 	RFile iFile;
    59 	RFile iTestErrorFile;
    60 	RFile iReferenceErrorFile;
    61 	};
    62 
    63 #endif