Class.cpp 706 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2020-08-07
  6. * Changed: 2023-02-08
  7. *
  8. * */
  9. #include <ls-std/core/Class.hpp>
  10. #include <ls-std/core/evaluator/EmptyStringArgumentEvaluator.hpp>
  11. ls::std::core::Class::Class(const ::std::string &_name)
  12. {
  13. this->_assignClassName(_name);
  14. }
  15. ls::std::core::Class::~Class() = default;
  16. ::std::string ls::std::core::Class::getClassName()
  17. {
  18. return this->name;
  19. }
  20. void ls::std::core::Class::_assignClassName(const ::std::string &_name)
  21. {
  22. ls::std::core::EmptyStringArgumentEvaluator{_name, "class name is empty!"}.evaluate();
  23. this->name = _name;
  24. }