CommandParser.h 691 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. //
  2. // Copyright (c) 2014-2015, THUNDERBEAST GAMES LLC All rights reserved
  3. // LICENSE: Atomic Game Engine Editor and Tools EULA
  4. // Please see LICENSE_ATOMIC_EDITOR_AND_TOOLS.md in repository root for
  5. // license information: https://github.com/AtomicGameEngine/AtomicGameEngine
  6. //
  7. #pragma once
  8. #include <Atomic/Core/Object.h>
  9. using namespace Atomic;
  10. namespace ToolCore
  11. {
  12. class Command;
  13. class CommandParser : public Object
  14. {
  15. OBJECT(CommandParser);
  16. public:
  17. CommandParser(Context* context);
  18. virtual ~CommandParser();
  19. Command* Parse(const Vector<String>& arguments);
  20. const String& GetErrorMessage() const { return errorMsg_; }
  21. private:
  22. String errorMsg_;
  23. };
  24. }