Class.hpp 811 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2020-08-07
  6. * Changed: 2024-09-11
  7. *
  8. * */
  9. #ifndef LS_STD_CLASS_HPP
  10. #define LS_STD_CLASS_HPP
  11. #include <ls-std/os/dynamic-goal.hpp>
  12. #include <string>
  13. /*
  14. * @doc: class(name: 'Class', package: 'core')
  15. * @doc: core.Class.description('This class represents a base class offering minimal reflection on the class name.')
  16. * */
  17. namespace ls::std::core
  18. {
  19. class LS_STD_DYNAMIC_GOAL Class
  20. {
  21. public:
  22. explicit Class(const ::std::string &_name);
  23. virtual ~Class();
  24. [[nodiscard]] ::std::string getClassName() const;
  25. private:
  26. ::std::string name{};
  27. void _assignClassName(const ::std::string &_name);
  28. };
  29. }
  30. #endif