AStatusCode.hpp 839 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * author: Patrick-Christopher Mattulat
  3. * e-mail: webmaster@lynarstudios.com
  4. */
  5. #ifndef LS_ATLANTIS_ENGINE_INTERFACE_STATUS_CODE_HPP
  6. #define LS_ATLANTIS_ENGINE_INTERFACE_STATUS_CODE_HPP
  7. #include <Export.hpp>
  8. #include <string>
  9. #include <vector>
  10. namespace ls::atlantis::interfaces
  11. {
  12. class LS_ATLANTIS_DYNAMIC_GOAL AStatusCode
  13. {
  14. public:
  15. explicit AStatusCode(const uint16_t &_statusId, ::std::string _statusText);
  16. virtual ~AStatusCode();
  17. virtual void addHint(const ::std::string &_hint);
  18. [[nodiscard]] ::std::vector<::std::string> getHints() const;
  19. [[nodiscard]] virtual uint16_t getId() const;
  20. [[nodiscard]] virtual ::std::string getText() const;
  21. private:
  22. ::std::vector<::std::string> statusHints{};
  23. uint16_t statusId{};
  24. ::std::string statusText{};
  25. };
  26. }
  27. #endif