ApplicationParameters.h 811 B

123456789101112131415161718192021222324252627282930313233343536
  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. #pragma once
  9. #include <AzCore/std/containers/vector.h>
  10. #include <AzCore/std/string/string.h>
  11. namespace AZ
  12. {
  13. class CommandLine;
  14. }
  15. namespace PythonBindingsExample
  16. {
  17. struct ApplicationParameters final
  18. {
  19. bool Parse(const AZ::CommandLine* commandLine);
  20. // the arguments
  21. using StringList = AZStd::vector<AZStd::string>;
  22. bool m_verbose = false;
  23. AZStd::string m_pythonFilename;
  24. StringList m_pythonArgs;
  25. AZStd::string m_pythonStatement;
  26. bool m_interactiveMode = false;
  27. protected:
  28. void ShowHelp();
  29. };
  30. }