#include <featuredata.h>
Inheritance diagram for DnaStrData:


Public Member Functions | |
| DnaStrData () | |
| DnaStrData (db_recno_t readRecno, TR_DNA startPos, TR_DNA endPos) | |
| std::string | uniqueName () |
| virtual | ~DnaStrData () |
| 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) |
| DnaStrData () | |
| DnaStrData (db_recno_t readRecno, TR_DNA startPos, TR_DNA endPos) | |
| std::string | uniqueName () |
| virtual | ~DnaStrData () |
| 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< char > | dnaVector |
| TrapperVector< char > | dnaVector |
Protected Member Functions | |
| FeatureGui * | makeGui () |
| FeatureInfo * | makeInfo () |
| FeatureGui * | makeGui () |
| FeatureInfo * | makeInfo () |
Definition at line 143 of file featuredata.h.
| DnaStrData::DnaStrData | ( | ) | [inline] |
| DnaStrData::DnaStrData | ( | db_recno_t | readRecno, | |
| TR_DNA | startPos, | |||
| TR_DNA | endPos | |||
| ) |
Definition at line 262 of file featuredata.cpp.
00263 : SpatialFeatureData( readRecno, startPos, endPos ) 00264 {}
| DnaStrData::~DnaStrData | ( | ) | [virtual] |
| DnaStrData::DnaStrData | ( | ) | [inline] |
| DnaStrData::DnaStrData | ( | db_recno_t | readRecno, | |
| TR_DNA | startPos, | |||
| TR_DNA | endPos | |||
| ) |
| virtual DnaStrData::~DnaStrData | ( | ) | [virtual] |
| std::string DnaStrData::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 149 of file featuredata.h.
| void DnaStrData::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 266 of file featuredata.cpp.
References dnaVector, and SpatialFeatureData::readStream().
00267 { 00268 SpatialFeatureData::readStream( stream ); 00269 stream >> dnaVector; 00270 }
| void DnaStrData::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 255 of file featuredata.cpp.
References dnaVector, and SpatialFeatureData::writeStream().
00256 { 00257 SpatialFeatureData::writeStream( stream ); 00258 stream << dnaVector; 00259 }
| void DnaStrData::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 274 of file featuredata.cpp.
References dnaVector, TrapperVector< T >::writeDom(), and GeneralData::writeDom().
00275 { 00276 SpatialFeatureData::writeDom( elem ); 00277 dnaVector.writeDom( elem ); 00278 }
| void DnaStrData::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 280 of file featuredata.cpp.
References dnaVector, TrapperVector< T >::readDom(), and GeneralData::readDom().
00281 { 00282 SpatialFeatureData::readDom( elem ); 00283 dnaVector.readDom( elem ); 00284 }
| void DnaStrData::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 286 of file featuredata.cpp.
References dnaVector, TrapperVector< T >::readAttributes(), and SpatialFeatureData::readAttributes().
Referenced by MacsimParser::endElement().
00287 { 00288 SpatialFeatureData::readAttributes(attr); 00289 dnaVector.readAttributes(attr); 00290 }
| void DnaStrData::writeXml | ( | ostream & | stream | ) | [virtual] |
Reimplemented from FeatureData.
Definition at line 292 of file featuredata.cpp.
References dnaVector, TrapperVector< T >::stlVector(), and SpatialFeatureData::writeXml().
00293 { 00294 SpatialFeatureData::writeXml(stream); 00295 stream<<" trappervector=\""; 00296 for( size_t i = 0; i < dnaVector.stlVector().size(); i++ ) { 00297 stream<<dnaVector.stlVector()[i]; 00298 } 00299 stream<<"\"/>\n"; 00300 }
| FeatureGui* DnaStrData::makeGui | ( | ) | [inline, protected, virtual] |
Implements FeatureData.
Definition at line 159 of file featuredata.h.
00159 { return new DnaStrGui(this); }
| FeatureInfo* DnaStrData::makeInfo | ( | ) | [inline, protected, virtual] |
Implements FeatureData.
Definition at line 160 of file featuredata.h.
00160 { return new DnaStrInfo(this); }
| std::string DnaStrData::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 130 of file spatialfeaturedata.h.
| void DnaStrData::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 DnaStrData::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 DnaStrData::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 DnaStrData::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 DnaStrData::readAttributes | ( | const QXmlAttributes & | attr | ) | [virtual] |
Loads the state of this object from QXmlAttributes.This method is used for importing.
Reimplemented from FeatureData.
| void DnaStrData::writeXml | ( | ostream & | stream | ) | [virtual] |
Reimplemented from FeatureData.
| FeatureGui* DnaStrData::makeGui | ( | ) | [inline, protected, virtual] |
Implements FeatureData.
Definition at line 140 of file spatialfeaturedata.h.
00140 { return new DnaStrGui(this); }
| FeatureInfo* DnaStrData::makeInfo | ( | ) | [inline, protected, virtual] |
Implements FeatureData.
Definition at line 141 of file spatialfeaturedata.h.
00141 { return new DnaStrInfo(this); }
Definition at line 157 of file featuredata.h.
Referenced by TrapperDoc::importPhd(), DnaStrInfo::myInfoPos(), readAttributes(), readDom(), readStream(), writeDom(), writeStream(), and writeXml().
Definition at line 138 of file spatialfeaturedata.h.
1.5.1