80 virtual void Add(std::shared_ptr<Element> pElement)
82 pElement->AssignMother(
this);
Common definitions for cbm::qa::report.
Interface to the element, which can contain daughter elements.
const std::vector< std::shared_ptr< Element > > GetDaughterElements() const
Get daughter elements.
std::vector< std::shared_ptr< Element > > fvDaughterElements
Daughter elements.
virtual void Add(std::shared_ptr< Element > pElement)
Adds element.
virtual ~CollapsibleElement()=default
Destructor.
Interface for the report element.
virtual ~Element()=default
Destructor.
virtual std::string GetBody(const Engine &engine) const =0
Gets body of the element.
const Element * GetMother() const
Gets mother element.
void AssignMother(const Element *pMother)
std::string fsLabel
Label for referencing.
const Element * fpMother
Mother element.
Element(std::string_view label, std::string_view title)
Constructor.
Element()=default
Default constructor.
const std::string & GetTitle() const
Gets name.
std::string fsTitle
Title of the element.
const std::string & GetLabel() const
Gets label.
void SetTitle(std::string_view title)
Sets name.
void SetLabel(std::string_view label)
Sets label.
A base abstract class to provide an interface for element body (a visitor in the Visitor pattern)