]> git.donarmstrong.com Git - mothur.git/blobdiff - setdircommand.cpp
done testing 1.14.0
[mothur.git] / setdircommand.cpp
index 043c0acc8ec524c1b510da28c36c149d300f215a..214bd172e80208f246bede7978ad69329f6e23db 100644 (file)
@@ -9,6 +9,40 @@
 
 #include "setdircommand.h"
 
+//**********************************************************************************************************************
+vector<string> SetDirectoryCommand::getValidParameters(){      
+       try {
+               string Array[] =  {"output","input","tempdefault","outputdir","inputdir"};
+               vector<string> myArray (Array, Array+(sizeof(Array)/sizeof(string)));
+               return myArray;
+       }
+       catch(exception& e) {
+               m->errorOut(e, "SetDirectoryCommand", "getValidParameters");
+               exit(1);
+       }
+}
+//**********************************************************************************************************************
+vector<string> SetDirectoryCommand::getRequiredParameters(){   
+       try {
+               vector<string> myArray;
+               return myArray;
+       }
+       catch(exception& e) {
+               m->errorOut(e, "SetDirectoryCommand", "getRequiredParameters");
+               exit(1);
+       }
+}
+//**********************************************************************************************************************
+vector<string> SetDirectoryCommand::getRequiredFiles(){        
+       try {
+               vector<string> myArray;
+               return myArray;
+       }
+       catch(exception& e) {
+               m->errorOut(e, "SetDirectoryCommand", "getRequiredFiles");
+               exit(1);
+       }
+}
 //**********************************************************************************************************************
 
 SetDirectoryCommand::SetDirectoryCommand(string option)  {
@@ -106,7 +140,7 @@ int SetDirectoryCommand::execute(){
                        #endif
                        
                        //test to make sure directory exists
-                       output = getFullPathName(output);
+                       output = m->getFullPathName(output);
                        string outTemp = output + "temp";
                        ofstream out;
                        out.open(outTemp.c_str(), ios::trunc);
@@ -139,7 +173,7 @@ int SetDirectoryCommand::execute(){
                        #endif
                        
                        //test to make sure directory exists
-                       input = getFullPathName(input);
+                       input = m->getFullPathName(input);
                        string inTemp = input + "temp";
                        ofstream in;
                        in.open(inTemp.c_str(), ios::trunc);