persistentstorage/dbms/tdbms/t_dbcmdlineutil.h
changeset 55 44f437012c90
equal deleted inserted replaced
51:7d4490026038 55:44f437012c90
       
     1 // Copyright (c) 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 #ifndef T_DBCMDLINEUTIL_H
       
    17 #define T_DBCMDLINEUTIL_H
       
    18 
       
    19 #include <f32file.h>
       
    20 
       
    21 class RTest;
       
    22 
       
    23 struct TCmdLineParams
       
    24 	{
       
    25 	inline TCmdLineParams()
       
    26 		{
       
    27 		SetDefaults();
       
    28 		}
       
    29 	
       
    30 	inline void SetDefaults()
       
    31 		{
       
    32 		iDriveName.Copy(_L("c:"));
       
    33 		iLogFileName.Zero();
       
    34 		}
       
    35 
       
    36 	TDriveName	iDriveName;
       
    37 	TFileName	iLogFileName;
       
    38 	};
       
    39 
       
    40 void GetCmdLineParams(RTest& aTest, const TDesC& aTestName, TCmdLineParams& aCmdLineParams);
       
    41 void PrepareDbName(const TDesC& aDeafultDbName, const TDriveName& aDriveName, TDes& aDbName);
       
    42 void LogConfig(RFile& aLogFile, const TCmdLineParams& aCmdLineParams);
       
    43 
       
    44 #endif//T_DBCMDLINEUTIL_H