CmdLineArg.h 960 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. // Description : Implements the command line argument interface ICmdLineArg.
  9. #ifndef CRYINCLUDE_CRYSYSTEM_CMDLINEARG_H
  10. #define CRYINCLUDE_CRYSYSTEM_CMDLINEARG_H
  11. #pragma once
  12. #include <ICmdLine.h>
  13. class CCmdLineArg
  14. : public ICmdLineArg
  15. {
  16. public:
  17. CCmdLineArg(const char* name, const char* value, ECmdLineArgType type);
  18. virtual ~CCmdLineArg();
  19. const char* GetName() const;
  20. const char* GetValue() const;
  21. const ECmdLineArgType GetType() const;
  22. const float GetFValue() const;
  23. const int GetIValue() const;
  24. const bool GetBoolValue(bool& cmdLineValue) const;
  25. private:
  26. ECmdLineArgType m_type;
  27. AZStd::string m_name;
  28. AZStd::string m_value;
  29. };
  30. #endif // CRYINCLUDE_CRYSYSTEM_CMDLINEARG_H