XmlParseParameter.hpp 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2020-10-17
  6. * Changed: 2024-09-13
  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. * @doc: class(name: 'XmlParseParameter', package: 'io')
  17. * @doc: io.XmlParseParameter.description('This class holds information regarding parsing an XML tree.')
  18. * */
  19. namespace ls::std::io
  20. {
  21. class LS_STD_DYNAMIC_GOAL XmlParseParameter
  22. {
  23. public:
  24. XmlParseParameter();
  25. ~XmlParseParameter();
  26. [[nodiscard]] uint8_t getLevel() const;
  27. [[nodiscard]] ::std::shared_ptr<ls::std::io::XmlNode> getNode() const;
  28. void setLevel(const uint8_t &_level);
  29. void setNode(const ::std::shared_ptr<ls::std::io::XmlNode> &_node);
  30. private:
  31. uint8_t level{};
  32. ::std::shared_ptr<ls::std::io::XmlNode> node{};
  33. void _setNode(const ::std::shared_ptr<ls::std::io::XmlNode> &_node);
  34. };
  35. }
  36. #endif