-
Notifications
You must be signed in to change notification settings - Fork 53
/
Copy pathcommandline.h
26 lines (22 loc) · 855 Bytes
/
commandline.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef ICOMMANDLINE_H
#define ICOMMANDLINE_H
#ifdef _WIN32
#pragma once
#endif
class ICommandLine
{
public:
virtual void CreateCmdLine(const char *commandline) = 0;
virtual const char *GetCmdLine(void) const = 0;
virtual const char *CheckParm(const char *psz, const char **ppszValue = 0) const = 0;
virtual void RemoveParm(const char *parm) = 0;
virtual void AppendParm(const char *pszParm, const char *pszValues) = 0;
virtual void SetParm(const char *pszParm, const char *pszValues) = 0;
virtual void SetParm(const char *pszParm, int iValue) = 0;
virtual const char *GetParm(int nIndex) = 0;
virtual const char *ParmValue(const char *psz, const char *pDefaultVal) = 0;
virtual int ParmValue(const char *psz, int nDefaultVal) = 0;
virtual float ParmValue(const char *psz, float flDefaultVal) = 0;
};
ICommandLine *CommandLine(void);
#endif