AStatusCode.hpp 962 B

123456789101112131415161718192021222324252627282930313233343536
  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 <glossary/StatusCodes.hpp>
  9. #include <string>
  10. #include <vector>
  11. namespace ls::atlantis::interfaces
  12. {
  13. class LS_ATLANTIS_DYNAMIC_GOAL AStatusCode
  14. {
  15. public:
  16. explicit AStatusCode(const ls::atlantis::glossary::StatusCodes &_statusCode, ::std::string _statusText);
  17. virtual ~AStatusCode();
  18. virtual void addHint(const ::std::string &_hint);
  19. [[nodiscard]] virtual ls::atlantis::glossary::StatusCodes getCode() const;
  20. [[nodiscard]] ::std::vector<::std::string> getHints() const;
  21. [[nodiscard]] virtual ::std::string getText() const;
  22. private:
  23. ls::atlantis::glossary::StatusCodes statusCode{};
  24. ::std::vector<::std::string> statusHints{};
  25. ::std::string statusText{};
  26. };
  27. }
  28. #endif