TimePlotNode.hh
1.01 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
/*
* TimePlotNode.hh
*
* Created on: Dec 1, 2013
* Author: amdadev
*/
#ifndef TIMEPLOTNODE_HH_
#define TIMEPLOTNODE_HH_
#include <boost/smart_ptr/shared_ptr.hpp>
#include <libxml/tree.h>
#include "PanelPlotOutput.hh"
#include "PlotOutput.hh"
#include "AbstractPanelPlotNode.hh"
#include "Panel.hh"
namespace plot {
/**
* xml node name, this name is used in both config and request xml files.
*/
#define TIMEPLOT_NODENAME "timePlot"
class TimePlotNode: public AbstractPanelPlotNode {
public:
/**
* Default contstructor.
*/
TimePlotNode();
/**
* destructor
*/
virtual ~TimePlotNode();
protected:
/**
* @overload plot::AbstractPanelPlotNode::proceed
*/
boost::shared_ptr<PanelPlotOutput> proceed(xmlNodePtr, PlotOutput*, Panel*);
private:
/**
* constant to uniquely identify this node in the registry
*/
static const std::string NODENAME;
/**
* artificial special attribute to force registering node.
*/
static std::string _key;
};
} // namespace plot
#endif /* TIMEPLOTNODE_HH_ */