Blame view

src/ParamOutputImpl/Plot/AbstractPanelPlotNode.cc 770 Bytes
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
/*
 * AbstractPanelPlotNode.cc
 *
 *  Created on: Dec 6, 2013
 *      Author: amdadev
 */

#include "AbstractPanelPlotNode.hh"

namespace plot {

AbstractPanelPlotNode::AbstractPanelPlotNode(): AMDA::XMLConfigurator::NodeGrpCfg() {

}

AbstractPanelPlotNode::~AbstractPanelPlotNode() {
}

void AbstractPanelPlotNode::proceed(xmlNodePtr pNode_, const AMDA::Parameters::CfgContext& pCtx_){
	// there we expect to retrieve a PanelPlotOutput pointer in the context...
	PlotOutput* plotManager = pCtx_.get<PlotOutput*>();
	Panel* panel = pCtx_.get<Panel*>();

	// parse current node and build related instance.
	boost::shared_ptr<PanelPlotOutput> plot= proceed(pNode_, plotManager, panel);
	// Add plot to plot manager.
	plotManager->addPlot(plot);
}

} /* namespace plot */