40#ifndef DRAIN_TREE_UTILS_HTML 
   41#define DRAIN_TREE_UTILS_HTML 
   66        if (elem.hasChildren()){
 
   67            return elem.getChildren().begin()->second; 
 
   71            return elem.addChild()(tagType); 
 
   94    template <
class T, 
class ...TT>
 
  108        for (
const auto & title: columnTitles){
 
  125        for (
const auto & entry: table.getChildren()){
 
  127            for (
const auto & e: entry.second.getChildren()){
 
  128                tr[e.first]->setType(drain::NodeHTML::TD);
 
 
  153        if (elem.hasChildren()){
 
  154            return elem.getChildren().rbegin()->second; 
 
 
Definition TreeUtilsHTML.h:51
static drain::TreeHTML & initHtml(drain::TreeHTML &html, const std::string &key="")
Initialize a HTML object with "head" (including "title", "style") and "body" elements.
Definition TreeUtilsHTML.cpp:43
static drain::TreeHTML & fillTableRow(drain::TreeHTML &table, drain::TreeHTML &tr, const T &value)
Creates a new table row (TD) using first row as a template.
Definition TreeUtilsHTML.h:123
static drain::TreeHTML & appendElem(drain::TreeHTML &elem, drain::Html::tag_t tagType, const T &arg)
Add element of given type. The path key is generated automatically, unless given.
Definition TreeUtilsHTML.h:87
Definition DataSelector.cpp:1277
drain::UnorderedMultiTree< NodeHTML, false, NodeXML<>::path_t > TreeHTML
The HTML data structure.
Definition TreeHTML.h:62