AbstractPanelPlotNode.cc
770 Bytes
/*
* 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 */