29 Builder(std::string_view title, fs::path outPath);
61 std::string
SaveCanvas(
const TCanvas* canv,
const std::string& relPath)
const;
74 std::shared_ptr<Tail>
fpTail =
nullptr;
Common definitions for cbm::qa::report.
Base class for the report section (header)
std::string fsFigureExtention
Figure extention.
void CreateScript(Engine &engine, bool bCompile=true)
Saves script.
std::string SaveCanvas(const TCanvas *canv, const std::string &relPath) const
Saves canvas.
virtual ~Builder()=default
Destructor.
std::shared_ptr< Tail > GetTail()
Gets tail.
std::string AbsFigurePath(fs::path relPath) const
Returns absolute path to the figure.
fs::path fFiguresPath
Figures path.
std::shared_ptr< Header > GetHeader()
Gets header.
std::shared_ptr< Tail > fpTail
Tail of the report.
void AddSection(std::shared_ptr< Section > pSection)
Adds section.
fs::path fScriptsPath
Scripts path.
static constexpr std::string_view ksSourceName
Name of source.
std::vector< std::shared_ptr< Section > > fvpSections
List of report sections.
std::shared_ptr< Header > fpHeader
Header of the report.
void SetFigureExtention(std::string_view figExtention)
Sets figure extention.
Builder(std::string_view title, fs::path outPath)
Constructor.
std::string PathInSource(fs::path path) const
Converts path of the object in the code to one in the document source.
A base abstract class to provide an interface for element body (a visitor in the Visitor pattern)