Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

DnaStrData Class Reference

The nucleotide sequence for the read, e.g. "atag*ct*cgcg". More...

#include <featuredata.h>

Inheritance diagram for DnaStrData:

Inheritance graph
[legend]
Collaboration diagram for DnaStrData:

Collaboration graph
[legend]
List of all members.

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

FeatureGuimakeGui ()
FeatureInfomakeInfo ()

Detailed Description

The nucleotide sequence for the read, e.g. "atag*ct*cgcg".

Definition at line 126 of file featuredata.h.


Constructor & Destructor Documentation

DnaStrData::DnaStrData  )  [inline]
 

Definition at line 129 of file featuredata.h.

00129                 : FeatureData()
00130   {}

DnaStrData::DnaStrData db_recno_t  readRecno,
TR_DNA  startPos,
TR_DNA  endPos
 

Definition at line 226 of file featuredata.cpp.

00227         : FeatureData( readRecno, startPos, endPos )
00228 {}

DnaStrData::~DnaStrData  )  [virtual]
 

Definition at line 267 of file featuredata.cpp.

00268 {
00269 }


Member Function Documentation

FeatureGui* DnaStrData::makeGui  )  [inline, protected, virtual]
 

Implements FeatureData.

Definition at line 142 of file featuredata.h.

00142 { return new DnaStrGui(this); }

FeatureInfo* DnaStrData::makeInfo  )  [inline, protected, virtual]
 

Reimplemented from FeatureData.

Definition at line 143 of file featuredata.h.

00143 { return new DnaStrInfo(this); }

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 250 of file featuredata.cpp.

References dnaVector, TrapperVector< T >::readAttributes(), and FeatureData::readAttributes().

00251 {
00252     FeatureData::readAttributes(attr);
00253     dnaVector.readAttributes(attr);
00254 }

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 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 }

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 230 of file featuredata.cpp.

References dnaVector, and FeatureData::readStream().

00231 {
00232     FeatureData::readStream( stream );
00233     stream >> dnaVector;
00234 }

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 132 of file featuredata.h.

00132 { return std::string("DnaStrData"); }

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 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 }

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 219 of file featuredata.cpp.

References dnaVector, and FeatureData::writeStream().

00220 {
00221     FeatureData::writeStream( stream );
00222     stream << dnaVector;
00223 }

void DnaStrData::writeXml ostream &  stream  )  [virtual]
 

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 }


Member Data Documentation

TrapperVector<char> DnaStrData::dnaVector
 

Definition at line 140 of file featuredata.h.

Referenced by TrapperDoc::importPhd(), DnaStrInfo::myInfoPos(), DnaStrGui::paintMe(), readAttributes(), readDom(), readStream(), writeDom(), writeStream(), and writeXml().


The documentation for this class was generated from the following files:
Generated on Fri Mar 17 17:44:57 2006 for trapper by  doxygen 1.4.4