Static Public Member Functions | Static Protected Member Functions | List of all members
TreeUtilsHTML Class Reference

Static Public Member Functions

static drain::TreeHTMLinitHtml (drain::TreeHTML &html, const std::string &key="")
 Initialize a HTML object with "head" (including "title", "style") and "body" elements. More...
 
static drain::TreeHTMLgetFirstElem (drain::TreeHTML &elem, drain::BaseHTML::tag_t tagType)
 
static drain::TreeHTMLaddChild (drain::TreeHTML &elem, drain::BaseHTML::tag_t tagType, const std::string &key)
 Add element of given type. The path key is generated automatically, unless given.
 
template<class T >
static drain::TreeHTMLappendElem (drain::TreeHTML &elem, drain::BaseHTML::tag_t tagType, const T &arg)
 
template<class T , class ... TT>
static drain::TreeHTMLappendElem (drain::TreeHTML &elem, drain::BaseHTML::tag_t tagType, const T &arg, const TT &...args)
 
static drain::TreeHTMLcreateTable (drain::TreeHTML &body, const std::list< std::string > &columnTitles)
 
template<class T >
static drain::TreeHTMLfillTableRow (drain::TreeHTML &table, drain::TreeHTML &tr, const T &value)
 Creates a new table row (TD) using first row as a template. More...
 
static drain::TreeHTMLaddTableRow (drain::TreeHTML &table, const std::string value="")
 

Static Protected Member Functions

template<class T >
static drain::TreeHTMLappendElem (drain::TreeHTML &elem, drain::BaseHTML::tag_t tagType)
 

Member Function Documentation

◆ fillTableRow()

static drain::TreeHTML& fillTableRow ( drain::TreeHTML table,
drain::TreeHTML tr,
const T &  value 
)
inlinestatic

Creates a new table row (TD) using first row as a template.

Parameters
T- HTML object, string or TAG type.

◆ initHtml()

TreeHTML & initHtml ( drain::TreeHTML html,
const std::string &  key = "" 
)
static

Initialize a HTML object with "head" (including "title", "style") and "body" elements.

If a title is given, it will be also assigned as H1 element.


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