CbmRoot
Loading...
Searching...
No Matches
CanvasConfig.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 "PadConfig.h"
13
14#include <string>
15#include <string_view>
16#include <utility>
17#include <vector>
18
19namespace cbm::algo::qa
20{
27 public:
33 CanvasConfig(std::string_view name, std::string_view title, int nPadsX = 1, int nPadsY = 1);
34
36 CanvasConfig(const CanvasConfig&) = default;
37
40
43
46
48 ~CanvasConfig() = default;
49
51 void AddPadConfig(const PadConfig& pad);
52
54 std::string ToString() const;
55
56 private:
57 std::string fsName;
58 std::string fsTitle;
59 std::vector<std::string> fvsPadConfigs;
60 int fNofPadsX = 1;
61 int fNofPadsY = 1;
62 };
63} // namespace cbm::algo
A class representing a pad config in the message for the Histogram server.
A canvas configuration for the histogram server.
std::string ToString() const
Returns message config.
CanvasConfig & operator=(CanvasConfig &&)=default
Move assignment operator.
CanvasConfig(CanvasConfig &&)=default
Move constructor.
std::vector< std::string > fvsPadConfigs
Vector of pad config messages.
void AddPadConfig(const PadConfig &pad)
Adds a pad to the canvas.
int fNofPadsY
Number of pads along the y-axis.
int fNofPadsX
Number of pads along the x-axis.
~CanvasConfig()=default
Destructor.
std::string fsName
Name of the canvas.
CanvasConfig(std::string_view name, std::string_view title, int nPadsX=1, int nPadsY=1)
Constructor.
CanvasConfig & operator=(const CanvasConfig &)=default
Copy assignment operator.
CanvasConfig(const CanvasConfig &)=default
Copy constructor.
std::string fsTitle
Name of the pad.
A pad configuration for the histogram server.
Definition PadConfig.h:26