AStatusCode.cpp 870 B

123456789101112131415161718192021222324252627282930313233343536373839
  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. using ::std::vector;
  12. AStatusCode::AStatusCode(const uint16_t &_statusId, string _statusText) : statusId(_statusId), statusText(::move(_statusText))
  13. {}
  14. AStatusCode::~AStatusCode() = default;
  15. void AStatusCode::addHint(const string &_hint)
  16. {
  17. EmptyStringArgumentEvaluator(_hint).evaluate();
  18. this->statusHints.push_back(_hint);
  19. }
  20. vector<string> AStatusCode::getHints() const
  21. {
  22. return this->statusHints;
  23. }
  24. uint16_t AStatusCode::getId() const
  25. {
  26. return this->statusId;
  27. }
  28. string AStatusCode::getText() const
  29. {
  30. return this->statusText;
  31. }