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

FeatureGuimakeGui ()
FeatureInfomakeInfo ()
FeatureGuimakeGui ()
FeatureInfomakeInfo ()

Detailed Description

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

Definition at line 143 of file featuredata.h.


Constructor & Destructor Documentation

DnaStrData::DnaStrData (  )  [inline]

Definition at line 146 of file featuredata.h.

00146                 : SpatialFeatureData()
00147   {}

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

Definition at line 262 of file featuredata.cpp.

DnaStrData::~DnaStrData (  )  [virtual]

Definition at line 303 of file featuredata.cpp.

00304 {
00305 }

DnaStrData::DnaStrData (  )  [inline]

Definition at line 127 of file spatialfeaturedata.h.

00127                 : FeatureData()
00128   {}

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

virtual DnaStrData::~DnaStrData (  )  [virtual]


Member Function Documentation

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.

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

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.

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

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


Member Data Documentation

TrapperVector<char> DnaStrData::dnaVector

Definition at line 157 of file featuredata.h.

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

TrapperVector<char> DnaStrData::dnaVector

Definition at line 138 of file spatialfeaturedata.h.


The documentation for this class was generated from the following files:
Generated on Fri Jul 17 20:19:45 2009 for ngsview by  doxygen 1.5.1