StatusPlotNode.hh 1.2 KB
 /*
 * StatusPlotNode.hh
 *
 *  Created on: 12 janv. 2015
 *      Author: AKKA
 */

#ifndef STATUSPLOTNODE_HH_
#define STATUSPLOTNODE_HH_

#include "AbstractDecoratorPlotNode.hh"

namespace plot {
/**
 * xml node name, this name is used in request xml files.
 */
#define STATUSPLOT_NODENAME "statusPlot"

class StatusPlot;

class StatusPlotNode: public AbstractDecoratorPlotNode {
public:
	/**
	 * @brief Default constructor.
	 */
	StatusPlotNode();

	/**
	 * @brief Destructor
	 */
	virtual ~StatusPlotNode();

protected:
	/*
	 * @override AbstractDecoratorPlotNode::createPlot Method to create the tick plot
	 */
	boost::shared_ptr<DecoratorPlot> createPlot(AMDA::Parameters::ParameterManager& manager, boost::shared_ptr<Panel> panel, bool isStandalone);

	/*
	 * @override AbstractDecoratorPlotNode::parseAttributes method to parse tick plot specifics attributes
	 */
	void parseAttributes(xmlNodePtr xmlNode_, boost::shared_ptr<DecoratorPlot> plot);

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 /* STATUSPLOTNODE_HH_ */