Fraxinus  22.09
An IGT application
ProbeXmlConfigParserImpl Class Reference

Implementation of abstract interface ProbeXmlConfigParser Interface to ProbeCalibConfigs.xml. More...

#include <ProbeXmlConfigParserImpl.h>

Inheritance diagram for ProbeXmlConfigParserImpl:
ProbeXmlConfigParser

Public Member Functions

 ProbeXmlConfigParserImpl (QString &pathToXml)
 opens the file and reads it onto the QDomDocument More...
 
virtual ~ProbeXmlConfigParserImpl ()
 
virtual QString getFileName ()
 
virtual void removeConfig (QString scanner, QString probe, QString rtsource, QString configId)
 
virtual void saveCurrentConfig (Configuration config)
 
virtual QStringList getScannerList ()
 get a list of all scanner in the xml More...
 
virtual QStringList getProbeList (QString scanner)
 get a list of all probes for that scanner More...
 
virtual QStringList getRtSourceList (QString scanner, QString probe)
 get a list of rt sources for that scanner/probe combo More...
 
virtual QStringList getConfigIdList (QString scanner, QString probe, QString rtSource)
 get a list of config ids for that scanner/probe/rsource combo More...
 
virtual Configuration getConfiguration (QString scanner, QString probe, QString rtsource, QString configId)
 get a easy-to-work-with struct of a specific config More...
 

Protected Member Functions

QList< QDomNode > getScannerNodes (QString scanner="ALL")
 get a list of ALL scanner nodes or just the one you are looking for More...
 
QList< QDomNode > getProbeNodes (QString scanner, QString probe="ALL")
 get a list of ALL probenodes for that scanner, or just the one you are looking for More...
 
QList< QDomNode > getRTSourceNodes (QString scanner, QString probe, QString rtSource="ALL")
 get a list of ALL rtsourcenodes for that scanner/probe combo, or just the one you are looking for More...
 
QList< QDomNode > getConfigNodes (QString scanner, QString probe, QString rtsource, QString config="ALL")
 get a list of ALL confignodes for that scanner/probe/rtsource combo, or just the one you are looking for More...
 
QList< QDomNode > nodeListToListOfNodes (QDomNodeList list)
 converts a QDomNodeList to a QList<QDomNode> More...
 
void addTextElement (QDomElement parent, QString element, QString text)
 

Protected Attributes

cx::XmlOptionFile mFile
 

Additional Inherited Members

- Public Types inherited from ProbeXmlConfigParser
typedef std::pair< double, double > ColRowPair
 

Detailed Description

Implementation of abstract interface ProbeXmlConfigParser Interface to ProbeCalibConfigs.xml.

Date
Jun 4, 2013
Author
Ole Vegard Solberg, SINTEF
jbake

Definition at line 29 of file ProbeXmlConfigParserImpl.h.

Constructor & Destructor Documentation

ProbeXmlConfigParserImpl::ProbeXmlConfigParserImpl ( QString &  pathToXml)

opens the file and reads it onto the QDomDocument

Definition at line 24 of file ProbeXmlConfigParserImpl.cpp.

ProbeXmlConfigParserImpl::~ProbeXmlConfigParserImpl ( )
virtual

Definition at line 34 of file ProbeXmlConfigParserImpl.cpp.

Member Function Documentation

void ProbeXmlConfigParserImpl::addTextElement ( QDomElement  parent,
QString  element,
QString  text 
)
protected

Add a trivial QDomElement with a QTextElement, i.e. <elem> text </elem> .

Definition at line 409 of file ProbeXmlConfigParserImpl.cpp.

QStringList ProbeXmlConfigParserImpl::getConfigIdList ( QString  scanner,
QString  probe,
QString  rtSource 
)
virtual

get a list of config ids for that scanner/probe/rsource combo

Implements ProbeXmlConfigParser.

Definition at line 78 of file ProbeXmlConfigParserImpl.cpp.

QList< QDomNode > ProbeXmlConfigParserImpl::getConfigNodes ( QString  scanner,
QString  probe,
QString  rtsource,
QString  config = "ALL" 
)
protected

get a list of ALL confignodes for that scanner/probe/rtsource combo, or just the one you are looking for

Definition at line 343 of file ProbeXmlConfigParserImpl.cpp.

ProbeXmlConfigParser::Configuration ProbeXmlConfigParserImpl::getConfiguration ( QString  scanner,
QString  probe,
QString  rtsource,
QString  configId 
)
virtual

get a easy-to-work-with struct of a specific config

< get a list of all probes for that scanner

Implements ProbeXmlConfigParser.

Definition at line 160 of file ProbeXmlConfigParserImpl.cpp.

QString ProbeXmlConfigParserImpl::getFileName ( )
virtual

Implements ProbeXmlConfigParser.

Definition at line 49 of file ProbeXmlConfigParserImpl.cpp.

QStringList ProbeXmlConfigParserImpl::getProbeList ( QString  scanner)
virtual

get a list of all probes for that scanner

Implements ProbeXmlConfigParser.

Definition at line 54 of file ProbeXmlConfigParserImpl.cpp.

QList< QDomNode > ProbeXmlConfigParserImpl::getProbeNodes ( QString  scanner,
QString  probe = "ALL" 
)
protected

get a list of ALL probenodes for that scanner, or just the one you are looking for

Definition at line 283 of file ProbeXmlConfigParserImpl.cpp.

QStringList ProbeXmlConfigParserImpl::getRtSourceList ( QString  scanner,
QString  probe 
)
virtual

get a list of rt sources for that scanner/probe combo

Implements ProbeXmlConfigParser.

Definition at line 66 of file ProbeXmlConfigParserImpl.cpp.

QList< QDomNode > ProbeXmlConfigParserImpl::getRTSourceNodes ( QString  scanner,
QString  probe,
QString  rtSource = "ALL" 
)
protected

get a list of ALL rtsourcenodes for that scanner/probe combo, or just the one you are looking for

Definition at line 313 of file ProbeXmlConfigParserImpl.cpp.

QStringList ProbeXmlConfigParserImpl::getScannerList ( )
virtual

get a list of all scanner in the xml

Implements ProbeXmlConfigParser.

Definition at line 37 of file ProbeXmlConfigParserImpl.cpp.

QList< QDomNode > ProbeXmlConfigParserImpl::getScannerNodes ( QString  scanner = "ALL")
protected

get a list of ALL scanner nodes or just the one you are looking for

Definition at line 263 of file ProbeXmlConfigParserImpl.cpp.

QList< QDomNode > ProbeXmlConfigParserImpl::nodeListToListOfNodes ( QDomNodeList  list)
protected

converts a QDomNodeList to a QList<QDomNode>

Definition at line 373 of file ProbeXmlConfigParserImpl.cpp.

void ProbeXmlConfigParserImpl::removeConfig ( QString  scanner,
QString  probe,
QString  rtsource,
QString  configId 
)
virtual

Implements ProbeXmlConfigParser.

Definition at line 383 of file ProbeXmlConfigParserImpl.cpp.

void ProbeXmlConfigParserImpl::saveCurrentConfig ( Configuration  config)
virtual

Implements ProbeXmlConfigParser.

Definition at line 420 of file ProbeXmlConfigParserImpl.cpp.

Member Data Documentation

cx::XmlOptionFile ProbeXmlConfigParserImpl::mFile
protected

Definition at line 50 of file ProbeXmlConfigParserImpl.h.


The documentation for this class was generated from the following files: