BinsNode.hh
1.16 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
/*
* BinsNode.hh
*
* Created on: Jan 27, 2023
* Author: AKKODIS
*/
#ifndef BINSNODE_HH_
#define BINSNODE_HH_
#include <libxml/tree.h>
#include <iosfwd>
#include "NodeCfg.hh"
#include "PlotLogger.hh"
#include "HistogramSeriesProperties.hh"
#include "CommonNode.hh"
namespace plot {
/**
* Read a 'manual' tag from xml request
*/
class ManualNode: public AMDA::XMLConfigurator::NodeCfg {
public:
ManualNode(std::string histogramType) : AMDA::XMLConfigurator::NodeCfg(),_histogramType(histogramType){};
virtual ~ManualNode(){};
void proceed(xmlNodePtr pNode_,const AMDA::Parameters::CfgContext& pContext_);
protected:
std::string _histogramType;
};
/**
* Read a 'bins' tag from xml request
*/
class BinsNode: public AMDA::XMLConfigurator::NodeGrpCfg {
public:
BinsNode(std::string histogramType): AMDA::XMLConfigurator::NodeGrpCfg(), _histogramType(histogramType){
getChildList()["manual"] = AMDA::XMLConfigurator::NodeCfgSPtr(new ManualNode(histogramType));
};
virtual ~BinsNode(){};
void proceed(xmlNodePtr pNode_,const AMDA::Parameters::CfgContext& pContext_);
protected:
std::string _histogramType;
};
} /* namespace plot */
#endif /* BINSNODE_HH_ */