CbmRoot
|
A canvas configuration for the histogram server. More...
#include <CanvasConfig.h>
Public Member Functions | |
CanvasConfig (std::string_view name, std::string_view title, int nPadsX=1, int nPadsY=1) | |
Constructor. | |
CanvasConfig (const CanvasConfig &)=default | |
Copy constructor. | |
CanvasConfig (CanvasConfig &&)=default | |
Move constructor. | |
CanvasConfig & | operator= (const CanvasConfig &)=default |
Copy assignment operator. | |
CanvasConfig & | operator= (CanvasConfig &&)=default |
Move assignment operator. | |
~CanvasConfig ()=default | |
Destructor. | |
void | AddPadConfig (const PadConfig &pad) |
Adds a pad to the canvas. | |
std::string | ToString () const |
Returns message config. | |
Private Attributes | |
std::string | fsName |
Name of the canvas. | |
std::string | fsTitle |
Name of the pad. | |
std::vector< std::string > | fvsPadConfigs |
Vector of pad config messages. | |
int | fNofPadsX = 1 |
Number of pads along the x-axis. | |
int | fNofPadsY = 1 |
Number of pads along the y-axis. | |
A canvas configuration for the histogram server.
The class represents a configuration of the canvas, which can be converted to the initialization message for the histogram server.
Definition at line 26 of file CanvasConfig.h.
CanvasConfig::CanvasConfig | ( | std::string_view | name, |
std::string_view | title, | ||
int | nPadsX = 1, | ||
int | nPadsY = 1 ) |
Constructor.
name | Name of the canvas |
title | Title of the canvas |
nPadsX | Number of pads along x-axis |
nPadsY | Number of pads along y-axis |
Definition at line 21 of file CanvasConfig.cxx.
|
default |
Copy constructor.
|
default |
Move constructor.
|
default |
Destructor.
void CanvasConfig::AddPadConfig | ( | const PadConfig & | pad | ) |
Adds a pad to the canvas.
Definition at line 31 of file CanvasConfig.cxx.
References fNofPadsX, fNofPadsY, fvsPadConfigs, and cbm::algo::qa::PadConfig::ToString().
|
default |
Move assignment operator.
|
default |
Copy assignment operator.
std::string CanvasConfig::ToString | ( | ) | const |
Returns message config.
Definition at line 48 of file CanvasConfig.cxx.
References fNofPadsX, fNofPadsY, fsName, fsTitle, fvsPadConfigs, and L_.
Referenced by cbm::algo::qa::Data::AddCanvasConfig().
|
private |
Number of pads along the x-axis.
Definition at line 60 of file CanvasConfig.h.
Referenced by AddPadConfig(), and ToString().
|
private |
Number of pads along the y-axis.
Definition at line 61 of file CanvasConfig.h.
Referenced by AddPadConfig(), and ToString().
|
private |
|
private |
|
private |
Vector of pad config messages.
Definition at line 59 of file CanvasConfig.h.
Referenced by AddPadConfig(), and ToString().