LeechCraft 0.6.70-16373-g319c272718
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
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 ( T prefix = {}) const
nodiscard

◆ ToHtml() [2/2]

template<HtmlRepr T>
T LC::Util::Tag::ToHtml ( T 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.

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_

QString LC::Util::Tag::Name_

Definition at line 37 of file xmlnode.h.

Referenced by ToHtml().


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