Files
o3de/Code/Legacy/CrySystem/CmdLine.h
T
Esteban Papp 9f0bbf3b74 SPEC-7531 Change Code/CryEngine to Code/Legacy (#1634)
* git mv Code\CryEngine Code\Legacy
* redirecting CMakeLists.txt
* fixing uic warning
* Some more CryEngine mentions
* validation scripts

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
2021-06-29 13:51:24 -07:00

43 lines
946 B
C++

/*
* Copyright (c) Contributors to the Open 3D Engine Project
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
// Description : Implements the command line interface ICmdLine.
#ifndef CRYINCLUDE_CRYSYSTEM_CMDLINE_H
#define CRYINCLUDE_CRYSYSTEM_CMDLINE_H
#pragma once
#include <ICmdLine.h>
#include "CmdLineArg.h"
class CCmdLine
: public ICmdLine
{
public:
CCmdLine(const char* commandLine);
virtual ~CCmdLine();
virtual const ICmdLineArg* GetArg(int n) const;
virtual int GetArgCount() const;
virtual const ICmdLineArg* FindArg(const ECmdLineArgType ArgType, const char* name, bool caseSensitive = false) const;
virtual const char* GetCommandLine() const { return m_sCmdLine; };
private:
void PushCommand(const string& sCommand, const string& sParameter);
string Next(char*& str);
string m_sCmdLine;
std::vector<CCmdLineArg> m_args;
};
#endif // CRYINCLUDE_CRYSYSTEM_CMDLINE_H