IFactory.hpp 632 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2021-04-23
  6. * Changed: 2022-05-11
  7. *
  8. * */
  9. #ifndef LS_STD_I_FACTORY_HPP
  10. #define LS_STD_I_FACTORY_HPP
  11. #include <memory>
  12. #include <ls_std/core/Class.hpp>
  13. // TODO: is this really necessary to have?
  14. namespace ls
  15. {
  16. namespace std
  17. {
  18. namespace core
  19. {
  20. class IFactory
  21. {
  22. public:
  23. IFactory() = default;
  24. ~IFactory() = default;
  25. virtual ::std::shared_ptr<ls::std::core::Class> build() = 0;
  26. };
  27. }
  28. }
  29. }
  30. #endif