XmlParseParameter.hpp 950 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2020-10-17
  6. * Changed: 2023-05-17
  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. namespace ls::std::io
  16. {
  17. class LS_STD_DYNAMIC_GOAL XmlParseParameter
  18. {
  19. public:
  20. XmlParseParameter();
  21. ~XmlParseParameter();
  22. [[nodiscard]] uint8_t getLevel() const;
  23. [[nodiscard]] ::std::shared_ptr<ls::std::io::XmlNode> getNode() const;
  24. void setLevel(const uint8_t &_level);
  25. void setNode(const ::std::shared_ptr<ls::std::io::XmlNode> &_node);
  26. private:
  27. uint8_t level{};
  28. ::std::shared_ptr<ls::std::io::XmlNode> node{};
  29. void _setNode(const ::std::shared_ptr<ls::std::io::XmlNode> &_node);
  30. };
  31. }
  32. #endif