mirror of
https://github.com/rehlds/rechecker.git
synced 2024-12-26 20:35:28 +03:00
26 lines
763 B
C++
26 lines
763 B
C++
#ifndef ICOMMANDLINE_H
|
|
#define ICOMMANDLINE_H
|
|
#ifdef _WIN32
|
|
#pragma once
|
|
#endif
|
|
|
|
// Interface to engine command line
|
|
class ICommandLine {
|
|
public:
|
|
virtual void CreateCmdLine(const char *commandline) = 0;
|
|
virtual void CreateCmdLine(int argc, const char **argv) = 0;
|
|
virtual const char *GetCmdLine() const = 0;
|
|
|
|
// Check whether a particular parameter exists
|
|
virtual const char *CheckParm(const char *psz, char **ppszValue = nullptr) const = 0;
|
|
virtual void RemoveParm(const char *pszParm) = 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;
|
|
};
|
|
|
|
ICommandLine *CommandLine();
|
|
|
|
#endif // ICOMMANDLINE_H
|