| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- /*
- * author: Patrick-Christopher Mattulat
- * e-mail: webmaster@lynarstudios.com
- */
- #include <interface/AStatusCode.hpp>
- #include <ls-std/ls-std-core.hpp>
- using ls::atlantis::glossary::StatusCodes;
- using ls::atlantis::interfaces::AStatusCode;
- using ls::std::core::EmptyStringArgumentEvaluator;
- using ::std::move;
- using ::std::string;
- using ::std::vector;
- AStatusCode::AStatusCode(const StatusCodes &_statusCode, string _statusText) : statusCode(_statusCode), statusText(::move(_statusText))
- {}
- AStatusCode::~AStatusCode() = default;
- void AStatusCode::addHint(const string &_hint)
- {
- EmptyStringArgumentEvaluator(_hint).evaluate();
- this->statusHints.push_back(_hint);
- }
- StatusCodes AStatusCode::getCode() const
- {
- return this->statusCode;
- }
- vector<string> AStatusCode::getHints() const
- {
- return this->statusHints;
- }
- string AStatusCode::getText() const
- {
- return this->statusText;
- }
|