]> git.donarmstrong.com Git - mothur.git/blobdiff - sharedsabundvector.cpp
finishing the container classes, combining read.otu and read.list commands. some...
[mothur.git] / sharedsabundvector.cpp
index 5175f5ee23b6a24b881eef09deb7272bee3ee6b2..b2624840e568d5d90715db1d662bc0ee5d8e7567 100644 (file)
@@ -264,7 +264,7 @@ bool compareMembers (individual member, individual member2){
 }
 
 /***********************************************************************/
-SharedRAbundVector SharedSAbundVector::getSharedVector(){
+SharedRAbundVector SharedSAbundVector::getSharedRAbundVector(){
        try {
                SharedRAbundVector rav;
                
@@ -300,7 +300,26 @@ SharedSAbundVector SharedSAbundVector::getSharedSAbundVector(){
 }
 
 /***********************************************************************/
-
+SharedOrderVector SharedSAbundVector::getSharedOrderVector() {
+       try {
+               SharedRAbundVector rav;
+               SharedOrderVector ov;
+               
+               rav = this->getSharedRAbundVector();
+               ov = rav.getSharedOrderVector();
+               
+               return ov;
+       }
+       catch(exception& e) {
+               cout << "Standard Error: " << e.what() << " has occurred in the SharedSAbundVector class Function getSharedOrderVector. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
+               exit(1);
+       }
+       catch(...) {
+               cout << "An unknown error has occurred in the SharedSAbundVector class function getSharedOrderVector. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
+               exit(1);
+       }               
+}
+/***********************************************************************/
 OrderVector SharedSAbundVector::getOrderVector(map<string,int>* hold = NULL){
        try {
                OrderVector ov;