testtoolsconn/stat/desktop/source/stat2perl/inc/commandline.h
changeset 0 3da2a79470a7
equal deleted inserted replaced
-1:000000000000 0:3da2a79470a7
       
     1 /*
       
     2 * Copyright (c) 2005-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:     include file for Commandline access							*
       
    15 */
       
    16 
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 // Provides access to the command line
       
    22 //
       
    23 
       
    24 #ifndef COMMANDLINE_H
       
    25 #define COMMANDLINE_H
       
    26 
       
    27 class CommandLine
       
    28 {
       
    29 public:
       
    30 	CommandLine();
       
    31 	virtual ~CommandLine(){}
       
    32 
       
    33 	char * GetProgramArgument(const unsigned int iIndex);
       
    34 	unsigned int GetNumberOfArgs() {return iCount;}
       
    35 	bool FindArgument(const char *pArg);
       
    36 	char * GetArgumentBySwitch(const char *pSwitch, const bool bIncludeSwitch = false);
       
    37 	char * GetArgumentString();
       
    38 
       
    39 private:
       
    40 	unsigned int iCount;
       
    41 	char *pArguments[256];
       
    42 	char *pCmdLine;
       
    43 };
       
    44 
       
    45 #endif