CbmRoot
Loading...
Searching...
No Matches
cbm::qa::report::BeamerEngine Class Reference

Plain LaTeX document engine. More...

#include <CbmQaReportBeamerEngine.h>

Inheritance diagram for cbm::qa::report::BeamerEngine:
[legend]
Collaboration diagram for cbm::qa::report::BeamerEngine:
[legend]

Public Member Functions

std::string FigureBody (const Figure &figure) const override
 Creates a body for figure.
 
std::string HeaderBody (const Header &header) const override
 Creates a body for header.
 
std::string SectionBody (const Section &section) const override
 Creates a body for section.
 
std::string TableBody (const Table &table) const override
 Creates a body for table.
 
std::string TailBody (const Tail &tail) const override
 Creates a body for tail.
 
std::string ScriptExtention () const override
 Returns script extention.
 
std::string MyName () const override
 Returns engine name.
 
void Compile (const std::string &source) const override
 Compiles source.
 
void SetLatexCompiler (std::string_view latexCompiler)
 Sets the LaTeX compilation program name.
 

Private Attributes

std::string fsLatexCompiler = "pdflatex -interaction=nonstopmode"
 

Static Private Attributes

static constexpr double kFigureWidth = 1.0
 Figure width [in textwidth].
 

Detailed Description

Plain LaTeX document engine.

Definition at line 21 of file CbmQaReportBeamerEngine.h.

Member Function Documentation

◆ Compile()

void BeamerEngine::Compile ( const std::string & source) const
overridevirtual

Compiles source.

Parameters
sourceSource path

Reimplemented from cbm::qa::report::Engine.

Definition at line 325 of file CbmQaReportBeamerEngine.cxx.

References fsLatexCompiler.

◆ FigureBody()

std::string BeamerEngine::FigureBody ( const Figure & figure) const
overridevirtual

◆ HeaderBody()

std::string BeamerEngine::HeaderBody ( const Header & header) const
overridevirtual

◆ MyName()

std::string cbm::qa::report::BeamerEngine::MyName ( ) const
inlineoverridevirtual

Returns engine name.

Implements cbm::qa::report::Engine.

Definition at line 52 of file CbmQaReportBeamerEngine.h.

◆ ScriptExtention()

std::string cbm::qa::report::BeamerEngine::ScriptExtention ( ) const
inlineoverridevirtual

Returns script extention.

Implements cbm::qa::report::Engine.

Definition at line 49 of file CbmQaReportBeamerEngine.h.

◆ SectionBody()

std::string BeamerEngine::SectionBody ( const Section & section) const
overridevirtual

Creates a body for section.

Parameters
sectionReference to section
Returns
Section body

Implements cbm::qa::report::Engine.

Definition at line 253 of file CbmQaReportBeamerEngine.cxx.

References cbm::qa::report::CollapsibleElement::GetDaughterElements(), cbm::qa::report::Section::GetLevel(), and cbm::qa::report::Element::GetTitle().

◆ SetLatexCompiler()

void cbm::qa::report::BeamerEngine::SetLatexCompiler ( std::string_view latexCompiler)
inline

Sets the LaTeX compilation program name.

Parameters
latexCompilerA LaTeX compiler
Note
The compiler can contain options

Definition at line 61 of file CbmQaReportBeamerEngine.h.

References fsLatexCompiler.

◆ TableBody()

◆ TailBody()

std::string BeamerEngine::TailBody ( const Tail & tail) const
overridevirtual

Creates a body for tail.

Parameters
tailReference to tail
Returns
Figure body

Implements cbm::qa::report::Engine.

Definition at line 316 of file CbmQaReportBeamerEngine.cxx.

Member Data Documentation

◆ fsLatexCompiler

std::string cbm::qa::report::BeamerEngine::fsLatexCompiler = "pdflatex -interaction=nonstopmode"
private

Definition at line 66 of file CbmQaReportBeamerEngine.h.

Referenced by Compile(), and SetLatexCompiler().

◆ kFigureWidth

double cbm::qa::report::BeamerEngine::kFigureWidth = 1.0
staticconstexprprivate

Figure width [in textwidth].

Definition at line 64 of file CbmQaReportBeamerEngine.h.


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