LeechCraft 0.6.70-17609-g3dde4097dd
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
LC::Util::Tag Struct Reference

#include "xmlnode.h"

Public Member Functions

template<XmlRepr T = QString>
UTIL_SLL_APISerialize (const TagSerializeConfig &={}) const
UTIL_SLL_API TagWithAttr (QByteArray, QString) &&
template<XmlRepr T>
Serialize (const TagSerializeConfig &config) const

Static Public Member Functions

static UTIL_SLL_API Tag WithText (const QByteArray &name, const QString &contents)
static UTIL_SLL_API Node WithTextNonEmpty (const QByteArray &name, const QString &contents)

Public Attributes

QByteArray Name_
TagAttrs Attrs_ {}
Nodes Children_ {}

Detailed Description

Definition at line 49 of file xmlnode.h.

Member Function Documentation

◆ Serialize() [1/2]

template<XmlRepr T = QString>
template QByteArray LC::Util::Tag::Serialize ( const TagSerializeConfig & = {}) const
nodiscard

References UTIL_SLL_API.

◆ Serialize() [2/2]

template<XmlRepr T>
T LC::Util::Tag::Serialize ( const TagSerializeConfig & config) const

Definition at line 66 of file xmlnode.cpp.

References LC::Util::TagSerializeConfig::Dtd_, LC::Util::TagSerializeConfig::Indent_, Name_, LC::Util::TagSerializeConfig::Prolog_, and LC::Util::Visit().

Here is the call graph for this function:

◆ WithAttr()

Tag & LC::Util::Tag::WithAttr ( QByteArray key,
QString value ) &&

Definition at line 99 of file xmlnode.cpp.

References Attrs_.

◆ WithText()

Tag LC::Util::Tag::WithText ( const QByteArray & name,
const QString & contents )
static

Definition at line 34 of file xmlnode.cpp.

◆ WithTextNonEmpty()

Node LC::Util::Tag::WithTextNonEmpty ( const QByteArray & name,
const QString & contents )
static

Definition at line 39 of file xmlnode.cpp.

Member Data Documentation

◆ Attrs_

TagAttrs LC::Util::Tag::Attrs_ {}

Definition at line 52 of file xmlnode.h.

Referenced by WithAttr().

◆ Children_

Nodes LC::Util::Tag::Children_ {}

Definition at line 54 of file xmlnode.h.

◆ Name_

QByteArray LC::Util::Tag::Name_

Definition at line 51 of file xmlnode.h.

Referenced by Serialize().


The documentation for this struct was generated from the following files:
  • /home/abuild/rpmbuild/BUILD/leechcraft-doc-0.6.70+git.17609.g3dde4097dd-build/leechcraft-0.6.70-17609-g3dde4097dd/src/util/sll/xmlnode.h
  • /home/abuild/rpmbuild/BUILD/leechcraft-doc-0.6.70+git.17609.g3dde4097dd-build/leechcraft-0.6.70-17609-g3dde4097dd/src/util/sll/xmlnode.cpp