|
@@ -3,7 +3,7 @@
|
|
* Company: Lynar Studios
|
|
* Company: Lynar Studios
|
|
* E-Mail: webmaster@lynarstudios.com
|
|
* E-Mail: webmaster@lynarstudios.com
|
|
* Created: 2020-09-24
|
|
* Created: 2020-09-24
|
|
- * Changed: 2023-02-06
|
|
|
|
|
|
+ * Changed: 2023-02-08
|
|
*
|
|
*
|
|
* */
|
|
* */
|
|
|
|
|
|
@@ -25,14 +25,14 @@ namespace ls::std::io
|
|
explicit XmlNode(::std::string _name);
|
|
explicit XmlNode(::std::string _name);
|
|
~XmlNode() override;
|
|
~XmlNode() override;
|
|
|
|
|
|
- bool addAttributeAfter(const ::std::shared_ptr<ls::std::io::XmlAttribute> &_attribute, const ::std::string &_name); // nodiscard is optional here
|
|
|
|
- bool addAttributeBefore(const ::std::shared_ptr<ls::std::io::XmlAttribute> &_attribute, const ::std::string &_name); // nodiscard is optional here
|
|
|
|
- bool addAttributeToBeginning(const ::std::shared_ptr<ls::std::io::XmlAttribute> &_attribute); // nodiscard is optional here
|
|
|
|
- bool addAttributeToEnd(const ::std::shared_ptr<ls::std::io::XmlAttribute> &_attribute); // nodiscard is optional here
|
|
|
|
- bool addChildAfter(const ::std::shared_ptr<ls::std::io::XmlNode> &_child, const ::std::shared_ptr<ls::std::io::XmlNode> &_search); // nodiscard is optional here
|
|
|
|
|
|
+ bool addAttributeAfter(const ::std::shared_ptr<ls::std::io::XmlAttribute> &_attribute, const ::std::string &_name); // nodiscard is optional here
|
|
|
|
+ bool addAttributeBefore(const ::std::shared_ptr<ls::std::io::XmlAttribute> &_attribute, const ::std::string &_name); // nodiscard is optional here
|
|
|
|
+ bool addAttributeToBeginning(const ::std::shared_ptr<ls::std::io::XmlAttribute> &_attribute); // nodiscard is optional here
|
|
|
|
+ bool addAttributeToEnd(const ::std::shared_ptr<ls::std::io::XmlAttribute> &_attribute); // nodiscard is optional here
|
|
|
|
+ bool addChildAfter(const ::std::shared_ptr<ls::std::io::XmlNode> &_child, const ::std::shared_ptr<ls::std::io::XmlNode> &_search); // nodiscard is optional here
|
|
bool addChildBefore(const ::std::shared_ptr<ls::std::io::XmlNode> &_child, const ::std::shared_ptr<ls::std::io::XmlNode> &_search); // nodiscard is optional here
|
|
bool addChildBefore(const ::std::shared_ptr<ls::std::io::XmlNode> &_child, const ::std::shared_ptr<ls::std::io::XmlNode> &_search); // nodiscard is optional here
|
|
- bool addChildToBeginning(const ::std::shared_ptr<ls::std::io::XmlNode> &_child); // nodiscard is optional here
|
|
|
|
- bool addChildToEnd(const ::std::shared_ptr<ls::std::io::XmlNode> &_child); // nodiscard is optional here
|
|
|
|
|
|
+ bool addChildToBeginning(const ::std::shared_ptr<ls::std::io::XmlNode> &_child); // nodiscard is optional here
|
|
|
|
+ bool addChildToEnd(const ::std::shared_ptr<ls::std::io::XmlNode> &_child); // nodiscard is optional here
|
|
void clearValue();
|
|
void clearValue();
|
|
[[nodiscard]] ::std::list<::std::shared_ptr<ls::std::io::XmlAttribute>> getAttributes();
|
|
[[nodiscard]] ::std::list<::std::shared_ptr<ls::std::io::XmlAttribute>> getAttributes();
|
|
[[nodiscard]] ::std::list<::std::shared_ptr<ls::std::io::XmlNode>> getChildren();
|
|
[[nodiscard]] ::std::list<::std::shared_ptr<ls::std::io::XmlNode>> getChildren();
|
|
@@ -43,9 +43,9 @@ namespace ls::std::io
|
|
[[nodiscard]] bool hasChild(const ::std::string &_name);
|
|
[[nodiscard]] bool hasChild(const ::std::string &_name);
|
|
[[nodiscard]] bool hasChild(const ::std::shared_ptr<ls::std::io::XmlNode> &_child);
|
|
[[nodiscard]] bool hasChild(const ::std::shared_ptr<ls::std::io::XmlNode> &_child);
|
|
bool removeFirstAttribute(); // nodiscard is optional here
|
|
bool removeFirstAttribute(); // nodiscard is optional here
|
|
- bool removeLastAttribute(); // nodiscard is optional here
|
|
|
|
- bool removeFirstChild(); // nodiscard is optional here
|
|
|
|
- bool removeLastChild(); // nodiscard is optional here
|
|
|
|
|
|
+ bool removeLastAttribute(); // nodiscard is optional here
|
|
|
|
+ bool removeFirstChild(); // nodiscard is optional here
|
|
|
|
+ bool removeLastChild(); // nodiscard is optional here
|
|
void setName(const ::std::string &_name);
|
|
void setName(const ::std::string &_name);
|
|
void setValue(const ::std::string &_value);
|
|
void setValue(const ::std::string &_value);
|
|
[[nodiscard]] ::std::string toXml();
|
|
[[nodiscard]] ::std::string toXml();
|
|
@@ -65,7 +65,6 @@ namespace ls::std::io
|
|
void _assignName(const ::std::string &_name);
|
|
void _assignName(const ::std::string &_name);
|
|
void _assignValue(const ::std::string &_value);
|
|
void _assignValue(const ::std::string &_value);
|
|
static void _checkIfAttributeReferenceIsValid(const ::std::shared_ptr<ls::std::io::XmlAttribute> &_attribute);
|
|
static void _checkIfAttributeReferenceIsValid(const ::std::shared_ptr<ls::std::io::XmlAttribute> &_attribute);
|
|
- static void _checkIfNameIsNotEmpty(const ::std::string &_name);
|
|
|
|
static void _checkIfNodeReferenceIsValid(const ::std::shared_ptr<ls::std::io::XmlNode> &_child);
|
|
static void _checkIfNodeReferenceIsValid(const ::std::shared_ptr<ls::std::io::XmlNode> &_child);
|
|
[[nodiscard]] static ::std::string _getTab(uint8_t _tabSize);
|
|
[[nodiscard]] static ::std::string _getTab(uint8_t _tabSize);
|
|
[[nodiscard]] bool _hasAttribute(const ::std::string &_name);
|
|
[[nodiscard]] bool _hasAttribute(const ::std::string &_name);
|