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

PrintAlgo Class Reference

#include <printalgo.h>

Inheritance diagram for PrintAlgo:

Inheritance graph
[legend]
Collaboration diagram for PrintAlgo:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PrintAlgo (TrapperDoc *pDoc_, std::set< db_recno_t > &recnoList, AlgoParam *param)
void start ()

Detailed Description

Definition at line 8 of file printalgo.h.


Constructor & Destructor Documentation

PrintAlgo::PrintAlgo TrapperDoc pDoc_,
std::set< db_recno_t > &  recnoList,
AlgoParam param
[inline]
 

Definition at line 11 of file printalgo.h.

00011                                                                                    : 
00012     RWAlgo(pDoc_, recnoList, param) {}


Member Function Documentation

void PrintAlgo::start  )  [virtual]
 

Implements RWAlgo.

Definition at line 6 of file printalgo.cc.

References MAl_Readonly::get_base(), MAl_Readonly::get_num_seq(), MAl_Readonly::get_seq_begin_global(), MAl_Readonly::get_seq_end(), and RWAlgo::getMAl().

00007 {
00008   ofstream outFile("alignment.out");
00009   
00010   for( size_t i = 0; i < getMAl()->get_num_seq(); i++ ) {
00011     for( size_t j = 0; j < getMAl()->get_seq_begin_global(i); j++ ) {
00012       outFile<<' ';
00013     }
00014     for( size_t j = 0; j < getMAl()->get_seq_end(i); j++ ) {
00015       outFile<<getMAl()->get_base(i, j);
00016     }
00017     outFile<<endl;
00018   }
00019   
00020   
00021   outFile.close();
00022   
00023 }


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