BinsNode.hh 987 Bytes
/*
 * 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 "Histogram2DSeriesProperties.hh"
#include "CommonNode.hh"



namespace plot {

/**
 * Read a 'manual' tag from xml request
 */
class ManualNode: public AMDA::XMLConfigurator::NodeCfg {
public:

	ManualNode() : AMDA::XMLConfigurator::NodeCfg(){};
	virtual ~ManualNode(){};
	void proceed(xmlNodePtr pNode_,const AMDA::Parameters::CfgContext& pContext_);
};

/**
 * Read a 'bins' tag from xml request
 */
class BinsNode: public AMDA::XMLConfigurator::NodeGrpCfg {
public:

	BinsNode() : AMDA::XMLConfigurator::NodeGrpCfg(){
		getChildList()["manual"] =  AMDA::XMLConfigurator::NodeCfgSPtr(new ManualNode());
	};
	virtual ~BinsNode(){};
	void proceed(xmlNodePtr pNode_,const AMDA::Parameters::CfgContext& pContext_);
};
} /* namespace plot */

#endif /* BINSNODE_HH_ */