BioInt  1.02.00
BioInt: An integrative biological object-oriented application framework and interpreter
BioMultipleGenBank.h
Go to the documentation of this file.
00001 /****************************************************************************
00002 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
00003 The BioBhasha : The Biologist's Programming Language 
00004 Version 1.0 (19th December 2001)
00005 Prasad, B.V.L.S.
00006 Contact: burrashiva@yahoo.com
00007 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
00008 *****************************************************************************/
00009 #ifndef BIOMULTIPLEGENBANK_H
00010 #define BIOMULTIPLEGENBANK_H
00011 
00012 #include <string>
00013 #include <vector>
00014 #include "BioGenBank.h"
00015 
00016 using namespace std;
00017 
00018 
00019 class BioMultipleGenBank 
00020 {
00021 
00022         vector <BioGenBank> multipleGenBank_;
00023 
00024 public:
00025   BioMultipleGenBank();
00026   ~BioMultipleGenBank();
00027   BioMultipleGenBank(const string& );
00028 
00029   long getNumberOfEntries();
00030   long getNumberOfOccurrencesOfGene(const string& );
00031   long getNumberOfGenomes();
00032   
00033   BioMultipleGenBank getEntriesByOrganism(const string& );
00034   BioMultipleGenBank getEntriesByGene(const string& );
00035   BioMultipleGenBank getEntriesByGenomes();
00036 
00037   vector<string>  getUniqueGenes();
00038   vector<string>  getUniqueOrganisms();
00039 
00040   BioGenBank getEntry(const string& );
00041   BioGenBank getEntry(unsigned long);
00042 
00043   bool findDefinition( unsigned long i, const string& );
00044   bool findLocus( unsigned long i, const string& );
00045   bool findAccession(unsigned long i,  const string& );
00046   bool findSource(unsigned long i,  const string& );
00047   bool findOrganism( unsigned long i, const string& );
00048   bool findTaxanomy( unsigned long i, const string& );
00049   bool findKeyword( unsigned long i, const string& );
00050 
00051   void showInMultipleFasta(const string& );
00052   void showInMultipleFasta(ostream& = cout);
00053   void showInFasta(int, ostream& = cout);
00054 
00055 
00056   friend BioMultipleGenBank operator+= (BioMultipleGenBank& , BioGenBank );
00057    
00058   friend BioMultipleGenBank operator+( BioMultipleGenBank , BioGenBank& );
00059   friend BioMultipleGenBank operator+( BioGenBank&, BioGenBank&);
00060 
00061   void pushEntry(BioGenBank);
00062 
00063 };
00064 
00065 #endif
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines