LeechCraft  0.6.70-18450-gabe19ee3b0
Modular cross-platform feature rich live environment.
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>
UTIL_SLL_API T LC::Util::Tag::Serialize ( const TagSerializeConfig = {}) const

◆ 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.

◆ WithText()

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

Definition at line 34 of file xmlnode.cpp.

References Name_.

◆ WithTextNonEmpty()

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

Definition at line 39 of file xmlnode.cpp.

References Name_.

Member Data Documentation

◆ Attrs_

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

Definition at line 52 of file xmlnode.h.

◆ Children_

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

Definition at line 54 of file xmlnode.h.

◆ Name_


The documentation for this struct was generated from the following files: