Blame view

src/ParamOutputImpl/Plot/TimeTickNode.hh 1.18 KB
fbe3c2bb   Benjamin Renard   First commit
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
/**
 * TimeTickNode.hh
 *
 *  Created on: July 22, 2014
 *      Author: AKKA
 */

#ifndef TIMETICKNODE_HH_
#define TIMETICKNODE_HH_

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

#include "NodeCfg.hh"
#include "PlotLogger.hh"
#include "SeriesProperties.hh"
#include "CommonNode.hh"
#include "TimeTickSymbolNode.hh"
#include "TimeTickFirstSymbolNode.hh"

namespace plot {

/**
 * Read a 'timetick' 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 TimeTickNode: public AMDA::XMLConfigurator::NodeGrpCfg {
public:

	TimeTickNode() : AMDA::XMLConfigurator::NodeGrpCfg(){
		getChildList()["font"] = AMDA::XMLConfigurator::NodeCfgSPtr(
					new FontNode<TimeTickProperties>()	);
		getChildList()["symbol"] = AMDA::XMLConfigurator::NodeCfgSPtr(
					new TimeTickSymbolNode()	);
		getChildList()["firstSymbol"] = AMDA::XMLConfigurator::NodeCfgSPtr(
					new TimeTickFirstSymbolNode()	);
	};
	virtual ~TimeTickNode(){};
	void proceed(xmlNodePtr ,const AMDA::Parameters::CfgContext& );
};

} /* namespace plot */

#endif /* TIMETICKNODE_HH_ */