#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) |
Public Attributes | |
TrapperVector< char > | dnaVector |
Protected Member Functions | |
FeatureGui * | makeGui () |
FeatureInfo * | makeInfo () |
Definition at line 126 of file featuredata.h.
|
Definition at line 129 of file featuredata.h. 00129 : FeatureData() 00130 {}
|
|
Definition at line 226 of file featuredata.cpp. 00227 : FeatureData( readRecno, startPos, endPos ) 00228 {}
|
|
Definition at line 267 of file featuredata.cpp.
|
|
Implements FeatureData. Definition at line 142 of file featuredata.h. 00142 { return new DnaStrGui(this); }
|
|
Reimplemented from FeatureData. Definition at line 143 of file featuredata.h. 00143 { return new DnaStrInfo(this); }
|
|
Loads the state of this object from QXmlAttributes.This method is used for importing. Reimplemented from FeatureData. Definition at line 250 of file featuredata.cpp. References dnaVector, TrapperVector< T >::readAttributes(), and FeatureData::readAttributes(). 00251 { 00252 FeatureData::readAttributes(attr); 00253 dnaVector.readAttributes(attr); 00254 }
|
|
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 FeatureData. Definition at line 244 of file featuredata.cpp. References dnaVector, TrapperVector< T >::readDom(), and FeatureData::readDom(). 00245 { 00246 FeatureData::readDom( elem ); 00247 dnaVector.readDom( elem ); 00248 }
|
|
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 230 of file featuredata.cpp. References dnaVector, and FeatureData::readStream(). 00231 { 00232 FeatureData::readStream( stream ); 00233 stream >> dnaVector; 00234 }
|
|
Specifies a name that uniquely should identify this class. It will be used for lookups in the GeneralMaker class. Implements GeneralData. Definition at line 132 of file featuredata.h.
|
|
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 FeatureData. Definition at line 238 of file featuredata.cpp. References dnaVector, TrapperVector< T >::writeDom(), and FeatureData::writeDom(). 00239 { 00240 FeatureData::writeDom( elem ); 00241 dnaVector.writeDom( elem ); 00242 }
|
|
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 219 of file featuredata.cpp. References dnaVector, and FeatureData::writeStream(). 00220 { 00221 FeatureData::writeStream( stream ); 00222 stream << dnaVector; 00223 }
|
|
Reimplemented from FeatureData. Definition at line 256 of file featuredata.cpp. References dnaVector, TrapperVector< T >::stlVector(), and FeatureData::writeXml(). 00257 { 00258 FeatureData::writeXml(stream); 00259 stream<<" trappervector=\""; 00260 for( size_t i = 0; i < dnaVector.stlVector().size(); i++ ) { 00261 stream<<dnaVector.stlVector()[i]; 00262 } 00263 stream<<"\"/>\n"; 00264 }
|
|
Definition at line 140 of file featuredata.h. Referenced by TrapperDoc::importPhd(), DnaStrInfo::myInfoPos(), DnaStrGui::paintMe(), readAttributes(), readDom(), readStream(), writeDom(), writeStream(), and writeXml(). |