XmlParseParameter.hpp 1.2 KB

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