LeechCraft  0.6.70-16373-g319c272718
Modular cross-platform feature rich live environment.
LC::Util::Tag Struct Reference

#include "xmlnode.h"

Public Member Functions

template<HtmlRepr T = QString>
UTIL_SLL_APIToHtml (T prefix={}) const
 
UTIL_SLL_API TagWithAttr (QString, QString) &&
 
template<HtmlRepr T>
ToHtml (T result) const
 

Static Public Member Functions

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

Public Attributes

QString Name_
 
TagAttrs Attrs_ {}
 
Nodes Children_ {}
 

Detailed Description

Definition at line 35 of file xmlnode.h.

Member Function Documentation

◆ ToHtml() [1/2]

template<HtmlRepr T = QString>
UTIL_SLL_API T LC::Util::Tag::ToHtml ( prefix = {}) const

◆ ToHtml() [2/2]

template<HtmlRepr T>
T LC::Util::Tag::ToHtml ( result) const

Definition at line 58 of file xmlnode.cpp.

References Name_.

◆ WithAttr()

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

Definition at line 71 of file xmlnode.cpp.

◆ WithText()

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

Definition at line 34 of file xmlnode.cpp.

References Name_.

Member Data Documentation

◆ Attrs_

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

Definition at line 38 of file xmlnode.h.

◆ Children_

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

Definition at line 40 of file xmlnode.h.

◆ Name_


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