#include <evaluationpath_items.h>
Public Member Functions | |
AnalyzerItem (QString plugin, QTreeItem *p) | |
~AnalyzerItem () | |
Analyzer * | analyzer () |
void | process (NSCore::AcqisitionDataSet &data) |
process data | |
QString | type () const |
QString | name () const |
QString | help () const |
NSCore::NamedParameterTreeItemPointer | config () |
Give access to the configuration. | |
QDomNode | saveToXML (QDomDocument doc) |
Store the information of this element into a new QDomElement. | |
bool | restoreFromXML (QDomNode node) |
Restore the state of this element from the given QDomNode. | |
QStringList | guiActions () const |
GUI: return the supported actions. | |
Private Attributes | |
Analyzer * | _analyzer |
NSEvaluation::AnalyzerItem::AnalyzerItem | ( | QString | plugin, | |
QTreeItem * | p | |||
) | [inline] |
References _analyzer, NSCore::QTreeItem::setObjectName(), and NSEvaluation::Plugin::type().
NSEvaluation::AnalyzerItem::~AnalyzerItem | ( | ) | [inline] |
References _analyzer.
void NSEvaluation::AnalyzerItem::process | ( | NSCore::AcqisitionDataSet & | ) | [inline, virtual] |
process data
This function is used to process the data. This implementation does nothing, derived class have to to the real thing.
Reimplemented from NSEvaluation::PluginItem.
References _analyzer, and NSEvaluation::Analyzer::analyze().
QString NSEvaluation::AnalyzerItem::type | ( | ) | const [inline, virtual] |
Implements NSEvaluation::PluginItem.
QString NSEvaluation::AnalyzerItem::name | ( | ) | const [inline, virtual] |
QString NSEvaluation::AnalyzerItem::help | ( | ) | const [inline, virtual] |
Reimplemented from NSEvaluation::PluginItem.
References _analyzer, and NSEvaluation::Plugin::help().
NSCore::NamedParameterTreeItemPointer NSEvaluation::AnalyzerItem::config | ( | ) | [inline, virtual] |
Give access to the configuration.
Implements NSEvaluation::PluginItem.
References _analyzer, and NSEvaluation::Plugin::config().
QDomNode NSEvaluation::AnalyzerItem::saveToXML | ( | QDomDocument | doc | ) | [inline, virtual] |
Store the information of this element into a new QDomElement.
This function is only to save the state of this element, all the recursive stuff will be done by toXml().
doc | The QDomDocument to use for creation of the element |
Implements NSCore::QTreeItem.
References _analyzer, and NSEvaluation::Plugin::type().
bool NSEvaluation::AnalyzerItem::restoreFromXML | ( | QDomNode | node | ) | [inline, virtual] |
Restore the state of this element from the given QDomNode.
You don't have to do the recursive stuff here, that is handled in fromXml() for you. Only the things done in saveToXML need/can be restored here.
If you succeeded and want the childs to be restored too, return true.
node | The QDomNode to restore from |
Implements NSCore::QTreeItem.
QStringList NSEvaluation::AnalyzerItem::guiActions | ( | ) | const [inline, virtual] |
GUI: return the supported actions.
These actions will get symbols/buttons to get executed.
If you implement this, remember to call the parent guiActions() too:
SomeTreeItem::guiActions() const { return QStringList() << <your actions> << BaseClass::guiActions(); }
Reimplemented from NSEvaluation::PluginItem.
Analyzer* NSEvaluation::AnalyzerItem::_analyzer [private] |
Referenced by analyzer(), AnalyzerItem(), config(), help(), name(), process(), saveToXML(), and ~AnalyzerItem().