]> git.donarmstrong.com Git - mothur.git/blobdiff - engine.cpp
fixed blast code path problem
[mothur.git] / engine.cpp
index 5e56479f2851f89e324f8c62dc54250324da7d66..23e3f6e119af2add01b95aa0d8c41f710b9b0a96 100644 (file)
  */
 using namespace std;
 
-
-#include "utilities.hpp"
-#include "globaldata.hpp"
-#include "commandoptionparser.hpp"
-#include "command.hpp"
-#include "commandfactory.hpp"
-#include "errorchecking.h"
 #include "engine.hpp"
 
 /***********************************************************************/
 
-InteractEngine::InteractEngine(){
+InteractEngine::InteractEngine(string path){
 
        globaldata = GlobalData::getInstance();
-
+       globaldata->argv = path;
+       
        system("clear");
 //     char buffer = ' ';
 //     ifstream header("introtext.txt");
@@ -52,8 +46,8 @@ bool InteractEngine::getInput(){
                bool errorFree;
                ErrorCheck* errorCheckor = new ErrorCheck();
                
-               cout << "mothur v1.0" << endl;
-               cout << "Last updated: 1/29/2009" << endl << endl;
+               cout << "mothur v1.2.0" << endl;
+               cout << "Last updated: 4/14/2009" << endl << endl;
                cout << "by" << endl;
                cout << "Patrick D. Schloss" << endl << endl;
                cout << "Department of Microbiology" << endl;
@@ -99,10 +93,11 @@ bool InteractEngine::getInput(){
 
 /***********************************************************************/
 //This function opens the batchfile to be used by BatchEngine::getInput.
-BatchEngine::BatchEngine(string batchFileName){
+BatchEngine::BatchEngine(string path, string batchFileName){
        try {
                globaldata = GlobalData::getInstance();
                openedBatch = openInputFile(batchFileName, inputBatchFile);
+               globaldata->argv = path;
 
                system("clear");