AStatusCode.cpp 771 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * author: Patrick-Christopher Mattulat
  3. * e-mail: webmaster@lynarstudios.com
  4. */
  5. #include <interface/AStatusCode.hpp>
  6. #include <ls-std/core/evaluator/EmptyStringArgumentEvaluator.hpp>
  7. using ls::atlantis::interfaces::AStatusCode;
  8. using ls::std::core::EmptyStringArgumentEvaluator;
  9. using ::std::move;
  10. using ::std::string;
  11. AStatusCode::AStatusCode(const uint16_t &_statusId, string _statusText) : statusId(_statusId), statusText(::move(_statusText))
  12. {}
  13. AStatusCode::~AStatusCode() = default;
  14. void AStatusCode::addHint(const string &_hint)
  15. {
  16. EmptyStringArgumentEvaluator(_hint).evaluate();
  17. this->statusHints.push_back(_hint);
  18. }
  19. uint16_t AStatusCode::getId() const
  20. {
  21. return this->statusId;
  22. }
  23. string AStatusCode::getText() const
  24. {
  25. return this->statusText;
  26. }