SpectraPac 2.0(r200)
Evaluates PAC Measurements
|
Abstract container. More...
#include <PacAbstractContainer.h>
Public Slots | |
void | exportAsCSV () |
Public Member Functions | |
PacAbstractContainer (const QString &primarySpectrumsName, const QString &xmlNodeName, const PacBasicMeasurementInfo *basicinfo, QObject *parent=0) | |
virtual | ~PacAbstractContainer () |
virtual bool | isValid () const |
Returns true if this container contains valid spectra / other contents. | |
virtual void | appendWidgets (QTabWidget *tabwidget, QWidget *filetoolbox)=0 |
Appends this container's widget(s) to the passed QTabWidget or QWidget. | |
virtual void | appendToDom (QDomElement &root) const |
Appends this container's current state to passed DOM tree. | |
virtual void | initializeFromDom (const QDomElement &root) |
Recreates container state from passed DOM. | |
QString | csvMainHeader (const QString &spectrumname, const QString &filename) |
Static Public Member Functions | |
static QString | toXmlText (const QVector< qreal > &array) |
static QVector< qreal > | xmlTextToDoubleArray (const QString &txt) |
static QString | toXmlText (const QVector< quint64 > &array) |
static QVector< quint64 > | xmlTextToUInt64Array (const QString &txt) |
Methods for the precision maintaining conversion of integer and floating point variables to text | |
static QString | toXmlText (double value) |
static QString | toXmlText (float value) |
static QString | toXmlText (quint32 value) |
static QString | toXmlText (qint32 value) |
static QString | toXmlText (quint64 value) |
static QString | toXmlText (qint64 value) |
Protected Member Functions | |
virtual void | csvInputHeaderAndData (QTextStream &s) const =0 |
virtual void | saveDataInDom (QDomElement &top) const =0 |
virtual void | loadDataFromDom (const QDomElement &top)=0 |
Protected Attributes | |
const PacBasicMeasurementInfo * | basicinfo |
QPointer< QWidget > | w |
QString | primarySpectrumsName |
const QString | xmlnodename |
bool | valid |
Abstract container.
This abstract base class contains prototypes for methods common to all (spectrum) container classes
PacAbstractContainer::PacAbstractContainer | ( | const QString & | primarySpectrumsName, |
const QString & | xmlNodeName, | ||
const PacBasicMeasurementInfo * | basicinfo, | ||
QObject * | parent = 0 |
||
) |
PacAbstractContainer::~PacAbstractContainer | ( | ) | [virtual] |
void PacAbstractContainer::appendToDom | ( | QDomElement & | root | ) | const [virtual] |
Appends this container's current state to passed DOM tree.
This method expects the DOM's root to be passed and creates the appropriate subtree itself
virtual void PacAbstractContainer::appendWidgets | ( | QTabWidget * | tabwidget, |
QWidget * | filetoolbox | ||
) | [pure virtual] |
Appends this container's widget(s) to the passed QTabWidget or QWidget.
Implemented in PacCalibratedEnergyContainer, PacCoincidenceContainer, PacEnergyContainer, PacInitialContainer, and PacRTContainer.
virtual void PacAbstractContainer::csvInputHeaderAndData | ( | QTextStream & | s | ) | const [protected, pure virtual] |
Implemented in PacCalibratedEnergyContainer, PacCoincidenceContainer, PacEnergyContainer, PacInitialContainer, and PacRTContainer.
QString PacAbstractContainer::csvMainHeader | ( | const QString & | spectrumname, |
const QString & | filename | ||
) |
void PacAbstractContainer::exportAsCSV | ( | ) | [slot] |
void PacAbstractContainer::initializeFromDom | ( | const QDomElement & | root | ) | [virtual] |
Recreates container state from passed DOM.
This method expects the DOM's root to be passed and selects the appropriate subtree itself
bool PacAbstractContainer::isValid | ( | ) | const [virtual] |
Returns true if this container contains valid spectra / other contents.
virtual void PacAbstractContainer::loadDataFromDom | ( | const QDomElement & | top | ) | [protected, pure virtual] |
Implemented in PacCalibratedEnergyContainer, PacCoincidenceContainer, PacEnergyContainer, PacInitialContainer, and PacRTContainer.
virtual void PacAbstractContainer::saveDataInDom | ( | QDomElement & | top | ) | const [protected, pure virtual] |
Implemented in PacCalibratedEnergyContainer, PacCoincidenceContainer, PacEnergyContainer, PacInitialContainer, and PacRTContainer.
QString PacAbstractContainer::toXmlText | ( | qint64 | value | ) | [static] |
QString PacAbstractContainer::toXmlText | ( | quint64 | value | ) | [static] |
QString PacAbstractContainer::toXmlText | ( | const QVector< quint64 > & | array | ) | [static] |
QString PacAbstractContainer::toXmlText | ( | qint32 | value | ) | [static] |
QString PacAbstractContainer::toXmlText | ( | float | value | ) | [static] |
QString PacAbstractContainer::toXmlText | ( | double | value | ) | [static] |
QString PacAbstractContainer::toXmlText | ( | quint32 | value | ) | [static] |
QString PacAbstractContainer::toXmlText | ( | const QVector< qreal > & | array | ) | [static] |
QVector< qreal > PacAbstractContainer::xmlTextToDoubleArray | ( | const QString & | txt | ) | [static] |
QVector< quint64 > PacAbstractContainer::xmlTextToUInt64Array | ( | const QString & | txt | ) | [static] |
const PacBasicMeasurementInfo* PacAbstractContainer::basicinfo [protected] |
QString PacAbstractContainer::primarySpectrumsName [protected] |
bool PacAbstractContainer::valid [protected] |
QPointer<QWidget> PacAbstractContainer::w [protected] |
const QString PacAbstractContainer::xmlnodename [protected] |