Files
o3de/Code/Legacy/CrySystem/CmdLine.h
T
Steve Pham b4a2edec6a Final update copyright headers to reference license files at the repo root (#1693)
* Final update copyright headers to reference license files at the repo root

Signed-off-by: spham <spham@amazon.com>

* Fix copyright validator unit tests to support the stale O3DE header scenario

Signed-off-by: spham <spham@amazon.com>
2021-06-30 19:51:55 -07:00

43 lines
1.0 KiB
C++

/*
* Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* 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