1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/loader/valve_commandline.h Sun Nov 23 21:21:49 2008 -0600
1.3 @@ -0,0 +1,28 @@
1.4 +#ifndef _INCLUDE_VALVE_COMMAND_LINE_H_
1.5 +#define _INCLUDE_VALVE_COMMAND_LINE_H_
1.6 +
1.7 +class ICommandLine
1.8 +{
1.9 +public:
1.10 + virtual void CreateCmdLine( const char *commandline ) = 0;
1.11 + virtual void CreateCmdLine( int argc, char **argv ) = 0;
1.12 + virtual const char *GetCmdLine( void ) const = 0;
1.13 +
1.14 + // Check whether a particular parameter exists
1.15 + virtual const char *CheckParm( const char *psz, const char **ppszValue = 0 ) const = 0;
1.16 + virtual void RemoveParm( const char *parm ) = 0;
1.17 + virtual void AppendParm( const char *pszParm, const char *pszValues ) = 0;
1.18 +
1.19 + // Returns the argument after the one specified, or the default if not found
1.20 + virtual const char *ParmValue( const char *psz, const char *pDefaultVal = 0 ) const = 0;
1.21 + virtual int ParmValue( const char *psz, int nDefaultVal ) const = 0;
1.22 + virtual float ParmValue( const char *psz, float flDefaultVal ) const = 0;
1.23 +
1.24 + // Gets at particular parameters
1.25 + virtual int ParmCount() const = 0;
1.26 + virtual int FindParm( const char *psz ) const = 0; // Returns 0 if not found.
1.27 + virtual const char* GetParm( int nIndex ) const = 0;
1.28 +};
1.29 +
1.30 +#endif /* _INCLUDE_VALVE_COMMAND_LINE_H_ */
1.31 +