BinsProperties.hh
1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/*
* BinsProperties.hh
*
* Created on: Jan 30, 2023
* Author: AKKODIS
*/
#ifndef BINSPROPERTIES_HH_
#define BINSPROPERTIES_HH_
#include <iostream>
#include <map>
#include <string>
#include "Matrix.hh"
namespace plot {
/**
* Properties saved after reading 'bins' tag from xml request
*/
class BinsProperties
{
public:
BinsProperties() : _xBinNumber(0){}
BinsProperties(unsigned int xBinNumber)
: _xBinNumber(xBinNumber) {}
~BinsProperties() {}
// No need to comment, I guess
void setXBinNumber(unsigned int xBinNumber) { _xBinNumber = xBinNumber; }
unsigned int getXBinNumber() const { return _xBinNumber; }
void setYBinNumber(unsigned int yBinNumber) { _yBinNumber = yBinNumber; }
unsigned int getYBinNumber() const { return _yBinNumber; }
void setStairs(bool hasStairs){
_stairs = hasStairs;
}
bool hasStairs() const{
return _stairs;
}
private:
unsigned int _xBinNumber;
unsigned int _yBinNumber;
bool _stairs;
};
/**
* Properties saved after reading 'manual' tag from xml request
*/
class ManualProperties : public BinsProperties {
public:
};
} /* namespace plot */
#endif /* BINSPROPERTIES_HH_ */