IntervalTickNode.hh 1.08 KB
/**
 * IntervalTickNode.hh
 *
 *  Created on: Jan 26, 2015
 *      Author: AKKA
 */

#ifndef INTERVALTICKNODE_HH_
#define INTERVALTICKNODE_HH_

#include <libxml/tree.h>
#include <iosfwd>

#include "NodeCfg.hh"
#include "PlotLogger.hh"
#include "SeriesProperties.hh"
#include "CommonNode.hh"
#include "IntervalTickSymbolNode.hh"

namespace plot {

/**
 * Read a 'intervalTick' tag from xml request and populate related plot::SerieProperties
 * object (which is object holding drawing properties for that parameter's serie).
 * structure of xml node to read is defined in the plot.xsd schemas.
 */
class IntervalTickNode: public AMDA::XMLConfigurator::NodeGrpCfg {
public:

	IntervalTickNode() : AMDA::XMLConfigurator::NodeGrpCfg(){
		getChildList()["font"] = AMDA::XMLConfigurator::NodeCfgSPtr(
					new FontNode<IntervalTickProperties>()	);
		getChildList()["symbol"] = AMDA::XMLConfigurator::NodeCfgSPtr(
					new IntervalTickSymbolNode()	);
	};
	virtual ~IntervalTickNode(){};
	void proceed(xmlNodePtr ,const AMDA::Parameters::CfgContext& );
};

} /* namespace plot */

#endif /* INTERVALTICKNODE_HH_ */