Report builder.
More...
#include <CbmQaReportBuilder.h>
|
| | Builder (std::string_view title, fs::path outPath) |
| | Constructor.
|
| |
| virtual | ~Builder ()=default |
| | Destructor.
|
| |
| void | AddSection (std::shared_ptr< Section > pSection) |
| | Adds section.
|
| |
| std::shared_ptr< Header > | GetHeader () |
| | Gets header.
|
| |
| std::shared_ptr< Tail > | GetTail () |
| | Gets tail.
|
| |
| void | CreateScript (Engine &engine, bool bCompile=true) |
| | Saves script.
|
| |
| std::string | PathInSource (fs::path path) const |
| | Converts path of the object in the code to one in the document source.
|
| |
| std::string | AbsFigurePath (fs::path relPath) const |
| | Returns absolute path to the figure.
|
| |
| std::string | SaveCanvas (const TCanvas *canv, const std::string &relPath) const |
| | Saves canvas.
|
| |
| void | SetFigureExtention (std::string_view figExtention) |
| | Sets figure extention.
|
| |
|
| static constexpr std::string_view | ksSourceName = "source" |
| | Name of source.
|
| |
Report builder.
Definition at line 24 of file CbmQaReportBuilder.h.
◆ Builder()
| Builder::Builder |
( |
std::string_view | title, |
|
|
fs::path | outPath ) |
◆ ~Builder()
| virtual cbm::qa::report::Builder::~Builder |
( |
| ) |
|
|
virtualdefault |
◆ AbsFigurePath()
| std::string cbm::qa::report::Builder::AbsFigurePath |
( |
fs::path | relPath | ) |
const |
|
inline |
Returns absolute path to the figure.
- Parameters
-
| relPath | Relative path to the figure |
Definition at line 54 of file CbmQaReportBuilder.h.
◆ AddSection()
| void cbm::qa::report::Builder::AddSection |
( |
std::shared_ptr< Section > | pSection | ) |
|
|
inline |
◆ CreateScript()
| void Builder::CreateScript |
( |
Engine & | engine, |
|
|
bool | bCompile = true ) |
Saves script.
- Parameters
-
| engine | Engine of the document |
| bCompile | Flag: true - script will be compiled, if the compilation rule is defined by engine |
Definition at line 45 of file CbmQaReportBuilder.cxx.
◆ GetHeader()
| std::shared_ptr< Header > cbm::qa::report::Builder::GetHeader |
( |
| ) |
|
|
inline |
◆ GetTail()
| std::shared_ptr< Tail > cbm::qa::report::Builder::GetTail |
( |
| ) |
|
|
inline |
◆ PathInSource()
| std::string cbm::qa::report::Builder::PathInSource |
( |
fs::path | path | ) |
const |
|
inline |
Converts path of the object in the code to one in the document source.
- Parameters
-
Definition at line 50 of file CbmQaReportBuilder.h.
◆ SaveCanvas()
| std::string Builder::SaveCanvas |
( |
const TCanvas * | canv, |
|
|
const std::string & | relPath ) const |
Saves canvas.
- Parameters
-
| canv | Pointer to canvas |
| relPath | Relative path to the canvas image |
- Returns
- Path to canvas in source
- Note
- Creates the directory, if it does not exist
Definition at line 66 of file CbmQaReportBuilder.cxx.
◆ SetFigureExtention()
| void cbm::qa::report::Builder::SetFigureExtention |
( |
std::string_view | figExtention | ) |
|
|
inline |
◆ fFiguresPath
| fs::path cbm::qa::report::Builder::fFiguresPath |
|
private |
◆ fpHeader
| std::shared_ptr<Header> cbm::qa::report::Builder::fpHeader = nullptr |
|
private |
◆ fpTail
| std::shared_ptr<Tail> cbm::qa::report::Builder::fpTail = nullptr |
|
private |
◆ fScriptsPath
| fs::path cbm::qa::report::Builder::fScriptsPath |
|
private |
◆ fsFigureExtention
| std::string cbm::qa::report::Builder::fsFigureExtention = "pdf" |
|
private |
◆ fvpSections
| std::vector<std::shared_ptr<Section> > cbm::qa::report::Builder::fvpSections |
|
private |
◆ ksSourceName
| std::string_view cbm::qa::report::Builder::ksSourceName = "source" |
|
staticconstexprprivate |
The documentation for this class was generated from the following files: