linklayerprotocols/ethernetnif/INC/TLOG.H
changeset 0 af10295192d8
equal deleted inserted replaced
-1:000000000000 0:af10295192d8
       
     1 // Copyright (c) 2004-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 //
       
    15 
       
    16 /**
       
    17  @file
       
    18  @internalComponent 
       
    19 */
       
    20 
       
    21 #if !defined(__TLOG_H__)
       
    22 #define __TLOG_H__
       
    23 #if !defined(__E32STD_H__)
       
    24 #include <e32std.h>
       
    25 #endif
       
    26 #if !defined(__E32BASE_H__)
       
    27 #include <e32base.h>
       
    28 #endif
       
    29 #if !defined(__E32CONS_H__)
       
    30 #include <e32cons.h>
       
    31 #endif
       
    32 #if !defined(__E32VER_H__)
       
    33 #include <e32ver.h>
       
    34 #endif
       
    35 #if !defined(__E32FILE_H__)
       
    36 #include <f32file.h>
       
    37 #endif
       
    38 #if !defined(__E32TEST_H__)
       
    39 #include <e32test.h>
       
    40 #endif
       
    41 
       
    42 
       
    43 /**
       
    44 @internalComponent
       
    45 */
       
    46 class RLog
       
    47 {
       
    48 
       
    49 private:
       
    50 
       
    51 	RFile	file;		//< Handle to the file 		
       
    52 	RFs		fileServer;	//< File server session
       
    53 	RTest	*test;		//< A pointer to the actual test class		
       
    54 
       
    55 
       
    56 public:
       
    57 	
       
    58 	IMPORT_C		RLog();	//< Default C'or (also copy C'or)	
       
    59 	IMPORT_C		RLog(const TDesC &aLogFileName, RTest *atest);	//< C'or (Needds a file name and A Rtest pointer...) 	
       
    60 	IMPORT_C void	ConstructL(const TDesC &aLogFileName, RTest *atest);
       
    61 	IMPORT_C void	Close();
       
    62 
       
    63 
       
    64 	IMPORT_C void	Start(const TDesC &aHeading);
       
    65 	IMPORT_C void	Next(const TDesC &aHeading);
       
    66 	IMPORT_C void	Printf(TRefByValue<const TDesC> aFmt,...);
       
    67 	IMPORT_C void	Log(TRefByValue<const TDesC> aFmt,...);
       
    68 	IMPORT_C void	SeekEnd();
       
    69 };
       
    70 
       
    71 #define LINEFEED	Log.Printf(_L("\n")); //<  Macros
       
    72 
       
    73 	
       
    74 #endif		// __TLOG_H__
       
    75