BioInt  1.02.00
BioInt: An integrative biological object-oriented application framework and interpreter
BioPdbTurn.h
Go to the documentation of this file.
00001 #ifndef BIOPDBTURN_H
00002 #define BIOPDBTURN_H
00003 
00004 using namespace std;
00005 
00006 #include <string>
00007 #include <vector>
00008 #include <fstream>
00009 #include "BioProteinChain.h"
00010 
00011 class BioPdbTurn
00012 {
00013         // Caution: Insertion Code is not included ....hence this is not 
00014         // exactly following the PDB turn format...
00015         // I will add them in future releases. Bear with me Untill then.
00016 
00017         int turnSerialNumber_;
00018         string turnId_;
00019         char initialChainId_;
00020         char endingChainId_;
00021         string FILE;
00022   string initialResidueName_;
00023         int initialResidueNumber_;
00024 
00025 
00026         string endingResidueName_;
00027         int endingResidueNumber_;
00028 
00029         string comment_;
00030         
00031            friend bool operator >(const BioPdbTurn& , const BioPdbTurn&);
00032               friend bool operator <(const BioPdbTurn& , const BioPdbTurn&);
00033                  friend bool operator ==(const BioPdbTurn& , const BioPdbTurn&);
00034 
00035 public:
00036         BioPdbTurn(){}
00037         BioPdbTurn(const string& ti_);
00038         BioPdbTurn(int hs,string hid,string irna, char ic, int irnu,
00039                      string erna, char ec, int ernu, string com, string f);
00040 
00041         int getTurnSerialNumber() ;
00042         string getTurnId() ;
00043         string getInitialResidueName() ;
00044         int getInitialResidueNumber();
00045 
00046         char getInitialChainId() ;
00047         char getEndingChainId() ;
00048 
00049         string getEndingResidueName() ;
00050         int getEndingResidueNumber() ;
00051 
00052         int getTurnLength() ;
00053 
00054         string getComment() ;
00055 
00056         BioProteinChain getTurnCoordinates(const string& );
00057         BioProteinChain getTurnCoordinates(BioProteinChain&  );
00058 
00059         void showTurnCoordinates(const string& ,ostream&  = cout);
00060         void showTurnCoordinates(BioProteinChain& ,ostream&  = cout);
00061 
00062         string getTurnSequence(const string& );
00063         string getTurnSequence(BioProteinChain&  );
00064 };
00065 
00066 #endif
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines