#include <featuredata.h>
Inheritance diagram for QualityData:
Public Member Functions | |
QualityData () | |
QualityData (db_recno_t readRecno, TR_DNA startPos, TR_DNA endPos) | |
std::string | uniqueName () |
virtual | ~QualityData () |
int | quality (int pos) |
void | readStream (QDataStream &str) |
void | writeStream (QDataStream &str) |
void | writeDom (QDomElement &elem) |
void | readDom (QDomElement &elem) |
void | readAttributes (const QXmlAttributes &attr) |
void | writeXml (ostream &stream) |
QualityData () | |
QualityData (db_recno_t readRecno, TR_DNA startPos, TR_DNA endPos) | |
std::string | uniqueName () |
virtual | ~QualityData () |
int | quality (int pos) |
void | readStream (QDataStream &str) |
void | writeStream (QDataStream &str) |
void | writeDom (QDomElement &elem) |
void | readDom (QDomElement &elem) |
void | readAttributes (const QXmlAttributes &attr) |
void | writeXml (ostream &stream) |
Public Attributes | |
TrapperVector< Q_UINT32 > | qualityVector |
TrapperVector< Q_UINT32 > | qualityVector |
Protected Member Functions | |
FeatureGui * | makeGui () |
FeatureInfo * | makeInfo () |
FeatureGui * | makeGui () |
FeatureInfo * | makeInfo () |
Definition at line 193 of file featuredata.h.
QualityData::QualityData | ( | ) | [inline] |
QualityData::QualityData | ( | db_recno_t | readRecno, | |
TR_DNA | startPos, | |||
TR_DNA | endPos | |||
) |
Definition at line 467 of file featuredata.cpp.
00467 : 00468 SpatialFeatureData( readRecno, startPos, endPos ) 00469 {}
virtual QualityData::~QualityData | ( | ) | [inline, virtual] |
QualityData::QualityData | ( | ) | [inline] |
QualityData::QualityData | ( | db_recno_t | readRecno, | |
TR_DNA | startPos, | |||
TR_DNA | endPos | |||
) |
virtual QualityData::~QualityData | ( | ) | [inline, virtual] |
std::string QualityData::uniqueName | ( | ) | [inline, virtual] |
Specifies a name that uniquely should identify this class. It will be used for lookups in the GeneralMaker class.
Implements GeneralData.
Definition at line 201 of file featuredata.h.
int QualityData::quality | ( | int | pos | ) | [inline] |
Definition at line 208 of file featuredata.h.
References qualityVector, and TrapperVector< T >::stlVector().
00208 { return qualityVector.stlVector()[pos]; }
void QualityData::readStream | ( | QDataStream & | str | ) | [virtual] |
Loads the state of this object from a byte stream. Or in other words reads and unserializes a byte stream to set the values of this class object. This method is used for loading a GeneralData object from Berkeley Db.
Reimplemented from FeatureData.
Definition at line 307 of file featuredata.cpp.
References qualityVector, and SpatialFeatureData::readStream().
00308 { 00309 SpatialFeatureData::readStream( stream ); 00310 stream >> qualityVector; 00311 }
void QualityData::writeStream | ( | QDataStream & | str | ) | [virtual] |
Saves the state of this object to a byte stream. Or in other words serializes and writes the internal data held in this class object to a byte stream. This method is used for storing a GeneralData object into Berkeley Db.
Reimplemented from FeatureData.
Definition at line 313 of file featuredata.cpp.
References qualityVector, and SpatialFeatureData::writeStream().
00314 { 00315 SpatialFeatureData::writeStream( stream ); 00316 stream << qualityVector; 00317 }
void QualityData::writeDom | ( | QDomElement & | elem | ) | [virtual] |
Saves the state of this object to a dom tree. Or in other words writes out the internal data held in this class to a dom tree underneath the QDomElement elem. This method is used for exporting.
Reimplemented from GeneralData.
Definition at line 319 of file featuredata.cpp.
References qualityVector, TrapperVector< T >::writeDom(), and GeneralData::writeDom().
00320 { 00321 SpatialFeatureData::writeDom( elem ); 00322 qualityVector.writeDom( elem ); 00323 }
void QualityData::readDom | ( | QDomElement & | elem | ) | [virtual] |
Loads the state of this object from a dom tree. Or in other words reads in the values of the data members of this class from a dom tree underneath the QDomElement elem. This method is used for importing.
Reimplemented from GeneralData.
Definition at line 325 of file featuredata.cpp.
References qualityVector, TrapperVector< T >::readDom(), and GeneralData::readDom().
00326 { 00327 SpatialFeatureData::readDom( elem ); 00328 qualityVector.readDom( elem ); 00329 }
void QualityData::readAttributes | ( | const QXmlAttributes & | attr | ) | [virtual] |
Loads the state of this object from QXmlAttributes.This method is used for importing.
Reimplemented from FeatureData.
Definition at line 331 of file featuredata.cpp.
References qualityVector, TrapperVector< T >::readAttributes(), and SpatialFeatureData::readAttributes().
Referenced by MacsimParser::endElement().
00332 { 00333 SpatialFeatureData::readAttributes(attr); 00334 qualityVector.readAttributes(attr); 00335 }
void QualityData::writeXml | ( | ostream & | stream | ) | [virtual] |
Reimplemented from FeatureData.
Definition at line 337 of file featuredata.cpp.
References qualityVector, TrapperVector< T >::stlVector(), and SpatialFeatureData::writeXml().
00338 { 00339 SpatialFeatureData::writeXml(stream); 00340 stream<<" trappervector=\""; 00341 for( size_t i = 0; i < qualityVector.stlVector().size(); i++ ) { 00342 stream<<' '<<qualityVector.stlVector()[i]; 00343 } 00344 stream<<"\"/>\n"; 00345 }
FeatureGui* QualityData::makeGui | ( | ) | [inline, protected, virtual] |
Implements FeatureData.
Definition at line 219 of file featuredata.h.
00219 { return new QualityGui(this); }
FeatureInfo* QualityData::makeInfo | ( | ) | [inline, protected, virtual] |
Implements FeatureData.
Definition at line 220 of file featuredata.h.
00220 { return new QualityInfo(this); }
std::string QualityData::uniqueName | ( | ) | [inline, virtual] |
Specifies a name that uniquely should identify this class. It will be used for lookups in the GeneralMaker class.
Implements GeneralData.
Definition at line 182 of file spatialfeaturedata.h.
int QualityData::quality | ( | int | pos | ) | [inline] |
Definition at line 189 of file spatialfeaturedata.h.
References qualityVector, and TrapperVector< T >::stlVector().
00189 { return qualityVector.stlVector()[pos]; }
void QualityData::readStream | ( | QDataStream & | str | ) | [virtual] |
Loads the state of this object from a byte stream. Or in other words reads and unserializes a byte stream to set the values of this class object. This method is used for loading a GeneralData object from Berkeley Db.
Reimplemented from FeatureData.
void QualityData::writeStream | ( | QDataStream & | str | ) | [virtual] |
Saves the state of this object to a byte stream. Or in other words serializes and writes the internal data held in this class object to a byte stream. This method is used for storing a GeneralData object into Berkeley Db.
Reimplemented from FeatureData.
void QualityData::writeDom | ( | QDomElement & | elem | ) | [virtual] |
Saves the state of this object to a dom tree. Or in other words writes out the internal data held in this class to a dom tree underneath the QDomElement elem. This method is used for exporting.
Reimplemented from GeneralData.
void QualityData::readDom | ( | QDomElement & | elem | ) | [virtual] |
Loads the state of this object from a dom tree. Or in other words reads in the values of the data members of this class from a dom tree underneath the QDomElement elem. This method is used for importing.
Reimplemented from GeneralData.
void QualityData::readAttributes | ( | const QXmlAttributes & | attr | ) | [virtual] |
Loads the state of this object from QXmlAttributes.This method is used for importing.
Reimplemented from FeatureData.
void QualityData::writeXml | ( | ostream & | stream | ) | [virtual] |
Reimplemented from FeatureData.
FeatureGui* QualityData::makeGui | ( | ) | [inline, protected, virtual] |
Implements FeatureData.
Definition at line 200 of file spatialfeaturedata.h.
00200 { return new QualityGui(this); }
FeatureInfo* QualityData::makeInfo | ( | ) | [inline, protected, virtual] |
Implements FeatureData.
Definition at line 201 of file spatialfeaturedata.h.
00201 { return new QualityInfo(this); }
TrapperVector<Q_UINT32> QualityData::qualityVector |
Definition at line 216 of file featuredata.h.
Referenced by QualityInfo::myInfoPos(), quality(), readAttributes(), readDom(), readStream(), writeDom(), writeStream(), and writeXml().
TrapperVector<Q_UINT32> QualityData::qualityVector |
Definition at line 197 of file spatialfeaturedata.h.