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

DnpInfo Class Reference

#include <featureinfo.h>

Inheritance diagram for DnpInfo:

Inheritance graph
[legend]
Collaboration diagram for DnpInfo:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 DnpInfo (FeatureData *data)
std::string myInfoPos (TR_DNA pos)
std::string myInfoRange (TR_DNA begin, TR_DNA end)

Private Member Functions

DnpDatadnpData ()

Detailed Description

Definition at line 36 of file featureinfo.h.


Constructor & Destructor Documentation

DnpInfo::DnpInfo FeatureData data  )  [inline]
 

Definition at line 39 of file featureinfo.h.

00039 : FeatureInfo(data) {}


Member Function Documentation

DnpData * DnpInfo::dnpData  )  [private]
 

Definition at line 59 of file featureinfo.cc.

References FeatureInfo::m_data.

Referenced by myInfoPos(), and myInfoRange().

00060 {
00061     return dynamic_cast<DnpData *>( m_data );
00062 }

std::string DnpInfo::myInfoPos TR_DNA  pos  )  [virtual]
 

Reimplemented from FeatureInfo.

Definition at line 33 of file featureinfo.cc.

References dnpData(), and DnpData::get_dnpID().

00034 {
00035   assert( pos == dnpData()->startPos() );
00036   assert( pos == dnpData()->endPos() );
00037   
00038   ostringstream os;
00039   
00040   os<<"DNP ID: "<<dnpData()->get_dnpID();
00041   
00042   return os.str();
00043 }

std::string DnpInfo::myInfoRange TR_DNA  begin,
TR_DNA  end
[virtual]
 

Reimplemented from FeatureInfo.

Definition at line 45 of file featureinfo.cc.

References dnpData(), DnpData::get_dnpID(), and FeatureData::startPos().

00046 {
00047   //Sanity check
00048   assert( dnpData()->startPos() == dnpData()->endPos() );
00049   ostringstream os;
00050   os.str("");
00051   if ( dnpData()->startPos() >= begin && dnpData()->startPos() <= end) {
00052     os<<"DNP ID: "<<dnpData()->get_dnpID()<<" at pos "<<dnpData()->startPos();
00053 
00054   }
00055   
00056   return os.str();
00057 }


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