CbmRoot
|
Interface to the element, which can contain daughter elements. More...
#include <CbmQaReportElement.h>
Public Member Functions | |
virtual | ~CollapsibleElement ()=default |
Destructor. | |
virtual void | Add (std::shared_ptr< Element > pElement) |
Adds element. | |
const std::vector< std::shared_ptr< Element > > | GetDaughterElements () const |
Get daughter elements. | |
Element (std::string_view label, std::string_view title) | |
Constructor. | |
Element ()=default | |
Default constructor. | |
virtual std::string | GetBody (const Engine &engine) const =0 |
Gets body of the element. | |
const std::string & | GetLabel () const |
Gets label. | |
const std::string & | GetTitle () const |
Gets name. | |
void | SetLabel (std::string_view label) |
Sets label. | |
void | SetTitle (std::string_view title) |
Sets name. | |
const Element * | GetMother () const |
Gets mother element. | |
Private Member Functions | |
void | AssignMother (const Element *pMother) |
Private Attributes | |
std::vector< std::shared_ptr< Element > > | fvDaughterElements |
Daughter elements. | |
const Element * | fpMother = nullptr |
Mother element. | |
std::string | fsLabel = "" |
Label for referencing. | |
std::string | fsTitle = "" |
Title of the element. | |
Interface to the element, which can contain daughter elements.
Definition at line 71 of file CbmQaReportElement.h.
|
virtualdefault |
Destructor.
|
inlinevirtual |
Adds element.
Reimplemented in cbm::qa::report::Section.
Definition at line 80 of file CbmQaReportElement.h.
References fvDaughterElements.
Referenced by cbm::qa::report::Section::Add().
|
inlineprivateinherited |
Definition at line 60 of file CbmQaReportElement.h.
References cbm::qa::report::Element::fpMother.
|
default |
Default constructor.
|
inline |
Constructor.
Definition at line 32 of file CbmQaReportElement.h.
|
pure virtualinherited |
Gets body of the element.
engine | A concrete implementation of the Engine to get the element body |
Implemented in cbm::qa::report::Figure, cbm::qa::report::Section, and cbm::qa::report::Table.
|
inline |
Get daughter elements.
Definition at line 87 of file CbmQaReportElement.h.
References fvDaughterElements.
Referenced by cbm::qa::report::BeamerEngine::SectionBody(), cbm::qa::report::HtmlEngine::SectionBody(), and cbm::qa::report::LatexEngine::SectionBody().
|
inlineinherited |
Gets label.
Definition at line 45 of file CbmQaReportElement.h.
References cbm::qa::report::Element::fsLabel.
Referenced by cbm::qa::report::BeamerEngine::FigureBody(), cbm::qa::report::HtmlEngine::FigureBody(), cbm::qa::report::LatexEngine::FigureBody(), cbm::qa::report::Table::Set(), cbm::qa::report::BeamerEngine::TableBody(), and cbm::qa::report::LatexEngine::TableBody().
|
inlineinherited |
Gets mother element.
Definition at line 57 of file CbmQaReportElement.h.
References cbm::qa::report::Element::fpMother.
Referenced by cbm::qa::report::BeamerEngine::FigureBody(), and cbm::qa::report::BeamerEngine::TableBody().
|
inlineinherited |
Gets name.
Definition at line 48 of file CbmQaReportElement.h.
References cbm::qa::report::Element::fsTitle.
Referenced by cbm::qa::report::BeamerEngine::FigureBody(), cbm::qa::report::BeamerEngine::SectionBody(), cbm::qa::report::HtmlEngine::SectionBody(), cbm::qa::report::LatexEngine::SectionBody(), and cbm::qa::report::BeamerEngine::TableBody().
|
inlineinherited |
Sets label.
Definition at line 51 of file CbmQaReportElement.h.
References cbm::qa::report::Element::fsLabel.
|
inlineinherited |
Sets name.
Definition at line 54 of file CbmQaReportElement.h.
References cbm::qa::report::Element::fsTitle.
|
privateinherited |
Mother element.
Definition at line 63 of file CbmQaReportElement.h.
Referenced by cbm::qa::report::Element::AssignMother(), and cbm::qa::report::Element::GetMother().
|
privateinherited |
Label for referencing.
Definition at line 64 of file CbmQaReportElement.h.
Referenced by cbm::qa::report::Element::GetLabel(), and cbm::qa::report::Element::SetLabel().
|
privateinherited |
Title of the element.
Definition at line 65 of file CbmQaReportElement.h.
Referenced by cbm::qa::report::Element::GetTitle(), and cbm::qa::report::Element::SetTitle().
|
private |
Daughter elements.
Definition at line 90 of file CbmQaReportElement.h.
Referenced by Add(), and GetDaughterElements().