XmlParseParameter.hpp 1012 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2020-10-17
  6. * Changed: 2024-05-25
  7. *
  8. * */
  9. #ifndef LS_STD_XML_PARSE_PARAMETER_HPP
  10. #define LS_STD_XML_PARSE_PARAMETER_HPP
  11. #include "XmlNode.hpp"
  12. #include <cstdint>
  13. #include <ls-std/os/dynamic-goal.hpp>
  14. #include <memory>
  15. /*
  16. * @class(name: 'XmlParseParameter', package: 'io')
  17. * */
  18. namespace ls::std::io
  19. {
  20. class LS_STD_DYNAMIC_GOAL XmlParseParameter
  21. {
  22. public:
  23. XmlParseParameter();
  24. ~XmlParseParameter();
  25. [[nodiscard]] uint8_t getLevel() const;
  26. [[nodiscard]] ::std::shared_ptr<ls::std::io::XmlNode> getNode() const;
  27. void setLevel(const uint8_t &_level);
  28. void setNode(const ::std::shared_ptr<ls::std::io::XmlNode> &_node);
  29. private:
  30. uint8_t level{};
  31. ::std::shared_ptr<ls::std::io::XmlNode> node{};
  32. void _setNode(const ::std::shared_ptr<ls::std::io::XmlNode> &_node);
  33. };
  34. }
  35. #endif