souffle  2.0.2-371-g6315b36
Static Public Member Functions | Static Protected Member Functions
souffle::profile::HtmlGenerator Class Reference

#include <HtmlGenerator.h>

Collaboration diagram for souffle::profile::HtmlGenerator:
Collaboration graph

Static Public Member Functions

static std::string getHtml (std::string json)
 

Static Protected Member Functions

static std::string getFirstHalf ()
 
static std::string getSecondHalf ()
 
static std::string wrapCss (const std::string &css)
 
static std::string wrapJs (const std::string &js)
 

Detailed Description

Definition at line 30 of file HtmlGenerator.h.

Member Function Documentation

◆ getFirstHalf()

static std::string souffle::profile::HtmlGenerator::getFirstHalf ( )
inlinestaticprotected

◆ getHtml()

static std::string souffle::profile::HtmlGenerator::getHtml ( std::string  json)
inlinestatic

Definition at line 32 of file HtmlGenerator.h.

32  {
33  return getFirstHalf() + json + getSecondHalf();
34  }

References getFirstHalf(), and getSecondHalf().

Referenced by outputHtml().

Here is the call graph for this function:

◆ getSecondHalf()

static std::string souffle::profile::HtmlGenerator::getSecondHalf ( )
inlinestaticprotected

Definition at line 43 of file HtmlGenerator.h.

43  {
44  std::stringstream ss;
45  ss << "</script>" << wrapJs(html::jsTableSort) << wrapJs(html::jsChartistMin)
48  return ss.str();
49  }

References souffle::profile::html::htmlBodyBottom, souffle::profile::html::jsChartistPlugin, souffle::profile::html::jsMain, souffle::profile::html::jsTableSort, souffle::profile::html::jsUtil, souffle::profile::ss, and wrapJs().

Referenced by getHtml().

Here is the call graph for this function:

◆ wrapCss()

static std::string souffle::profile::HtmlGenerator::wrapCss ( const std::string &  css)
inlinestaticprotected

Definition at line 50 of file HtmlGenerator.h.

50  {
51  return "<style>" + css + "</style>";
52  }

Referenced by getFirstHalf().

◆ wrapJs()

static std::string souffle::profile::HtmlGenerator::wrapJs ( const std::string &  js)
inlinestaticprotected

Definition at line 53 of file HtmlGenerator.h.

53  {
54  return "<script>" + js + "</script>";
55  }

Referenced by getSecondHalf().


The documentation for this class was generated from the following file:
souffle::profile::html::jsChartistPlugin
std::string jsChartistPlugin
Definition: htmlJsChartistPlugin.h:6
souffle::profile::html::htmlHeadBottom
std::string htmlHeadBottom
Definition: htmlMain.h:20
souffle::profile::HtmlGenerator::getSecondHalf
static std::string getSecondHalf()
Definition: HtmlGenerator.h:43
souffle::profile::HtmlGenerator::getFirstHalf
static std::string getFirstHalf()
Definition: HtmlGenerator.h:37
souffle::profile::html::cssChartist
std::string cssChartist
Definition: htmlCssChartist.h:6
souffle::profile::HtmlGenerator::wrapJs
static std::string wrapJs(const std::string &js)
Definition: HtmlGenerator.h:53
souffle::profile::html::cssStyle
std::string cssStyle
Definition: htmlCssStyle.h:8
souffle::profile::html::htmlBodyTop
std::string htmlBodyTop
Definition: htmlMain.h:24
souffle::profile::html::jsMain
std::string jsMain
Definition: htmlJsMain.h:14
souffle::profile::html::jsUtil
std::string jsUtil
Definition: htmlJsUtil.h:6
souffle::profile::html::jsTableSort
std::string jsTableSort
Definition: htmlJsTableSort.h:6
souffle::profile::html::htmlHeadTop
std::string htmlHeadTop
Definition: htmlMain.h:6
souffle::profile::HtmlGenerator::wrapCss
static std::string wrapCss(const std::string &css)
Definition: HtmlGenerator.h:50
souffle::profile::html::htmlBodyBottom
std::string htmlBodyBottom
Definition: htmlMain.h:242
souffle::profile::ss
class souffle::profile::Tui ss
Definition: Tui.h:336