CbmRoot
Loading...
Searching...
No Matches
CbmQaReportHeader.h
Go to the documentation of this file.
1
/* Copyright (C) 2024 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2
SPDX-License-Identifier: GPL-3.0-only
3
Authors: Sergei Zharko [committer] */
4
9
10
#pragma once
11
12
#include "
CbmQaReportEngine.h
"
13
14
#include <string>
15
#include <string_view>
16
17
namespace
cbm::qa::report
18
{
21
class
Header
{
22
public
:
24
virtual
~Header
() =
default
;
25
27
void
AddTag
(std::string_view tag) {
fvsTags
.emplace_back(tag); }
28
31
std::string
GetBody
(
const
Engine
& engine)
const
{
return
engine.
HeaderBody
(*
this
); }
32
34
const
std::string&
GetAuthor
()
const
{
return
fsAuthor
; }
35
37
const
std::string&
GetPageHeader
()
const
{
return
fsPageHeader
; }
38
40
const
std::string&
GetSetup
()
const
{
return
fsSetup
; }
41
43
const
std::string&
GetSubtitle
()
const
{
return
fsSubtitle
; }
44
46
const
std::vector<std::string>&
GetTags
()
const
{
return
fvsTags
; }
47
49
const
std::string&
GetTitle
()
const
{
return
fsTitle
; }
50
52
void
SetAuthor
(std::string_view author) {
fsAuthor
= author; }
53
55
void
SetPageHeader
(std::string_view pageHeader) {
fsPageHeader
= pageHeader; }
56
58
void
SetSetup
(std::string_view setup) {
fsSetup
= setup; }
59
61
void
SetSubtitle
(std::string_view subtitle) {
fsSubtitle
= subtitle; }
62
64
void
SetTitle
(std::string_view title) {
fsTitle
= title; }
65
66
private
:
67
std::vector<std::string>
fvsTags
{};
68
69
std::string
fsAuthor
=
""
;
70
std::string
fsSetup
=
""
;
71
std::string
fsSubtitle
=
""
;
72
std::string
fsTitle
=
""
;
73
std::string
fsPageHeader
=
""
;
74
};
75
}
// namespace cbm::qa::report
CbmQaReportEngine.h
cbm::qa::report::Engine
A base abstract class to provide an interface for element body (a visitor in the Visitor pattern)
Definition
CbmQaReportEngine.h:28
cbm::qa::report::Engine::HeaderBody
virtual std::string HeaderBody(const Header &header) const =0
Creates a body for header.
cbm::qa::report::Header
Header of the report.
Definition
CbmQaReportHeader.h:21
cbm::qa::report::Header::SetSetup
void SetSetup(std::string_view setup)
Sets setup.
Definition
CbmQaReportHeader.h:58
cbm::qa::report::Header::SetSubtitle
void SetSubtitle(std::string_view subtitle)
Sets subtitle.
Definition
CbmQaReportHeader.h:61
cbm::qa::report::Header::GetTags
const std::vector< std::string > & GetTags() const
Gets tags.
Definition
CbmQaReportHeader.h:46
cbm::qa::report::Header::~Header
virtual ~Header()=default
Destructor.
cbm::qa::report::Header::GetPageHeader
const std::string & GetPageHeader() const
Gets page header.
Definition
CbmQaReportHeader.h:37
cbm::qa::report::Header::fsTitle
std::string fsTitle
Definition
CbmQaReportHeader.h:72
cbm::qa::report::Header::GetTitle
const std::string & GetTitle() const
Gets title.
Definition
CbmQaReportHeader.h:49
cbm::qa::report::Header::fvsTags
std::vector< std::string > fvsTags
Different Tags.
Definition
CbmQaReportHeader.h:67
cbm::qa::report::Header::GetSubtitle
const std::string & GetSubtitle() const
Gets subtitle.
Definition
CbmQaReportHeader.h:43
cbm::qa::report::Header::fsSetup
std::string fsSetup
Definition
CbmQaReportHeader.h:70
cbm::qa::report::Header::fsPageHeader
std::string fsPageHeader
Placed on top/bottom of the page.
Definition
CbmQaReportHeader.h:73
cbm::qa::report::Header::SetAuthor
void SetAuthor(std::string_view author)
Sets author.
Definition
CbmQaReportHeader.h:52
cbm::qa::report::Header::GetBody
std::string GetBody(const Engine &engine) const
Gets body of the element.
Definition
CbmQaReportHeader.h:31
cbm::qa::report::Header::GetSetup
const std::string & GetSetup() const
Gets setup.
Definition
CbmQaReportHeader.h:40
cbm::qa::report::Header::AddTag
void AddTag(std::string_view tag)
Add tag.
Definition
CbmQaReportHeader.h:27
cbm::qa::report::Header::SetPageHeader
void SetPageHeader(std::string_view pageHeader)
Sets page header.
Definition
CbmQaReportHeader.h:55
cbm::qa::report::Header::GetAuthor
const std::string & GetAuthor() const
Gets author.
Definition
CbmQaReportHeader.h:34
cbm::qa::report::Header::fsAuthor
std::string fsAuthor
Definition
CbmQaReportHeader.h:69
cbm::qa::report::Header::SetTitle
void SetTitle(std::string_view title)
Sets title.
Definition
CbmQaReportHeader.h:64
cbm::qa::report::Header::fsSubtitle
std::string fsSubtitle
Definition
CbmQaReportHeader.h:71
cbm::qa::report
Definition
CbmQaReportBeamerEngine.h:18
core
qa
report
CbmQaReportHeader.h
Generated on Sun Dec 22 2024 23:04:10 for CbmRoot by
1.12.0