]> git.donarmstrong.com Git - mothur.git/blob - nocommands.cpp
added pipeline commands which involved change to command factory and command class...
[mothur.git] / nocommands.cpp
1 /*
2  *  nocommand.cpp
3  *  Dotur
4  *
5  *  Created by Sarah Westcott on 1/2/09.
6  *  Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
7  *
8  */
9
10 #include "nocommands.h"
11
12 //**********************************************************************************************************************
13 vector<string> NoCommand::getValidParameters(){ 
14         try {
15                 vector<string> myArray; 
16                 return myArray;
17         }
18         catch(exception& e) {
19                 m->errorOut(e, "NoCommand", "getValidParameters");
20                 exit(1);
21         }
22 }
23 //**********************************************************************************************************************
24 vector<string> NoCommand::getRequiredParameters(){      
25         try {
26                 vector<string> myArray;
27                 return myArray;
28         }
29         catch(exception& e) {
30                 m->errorOut(e, "NoCommand", "getRequiredParameters");
31                 exit(1);
32         }
33 }
34 //**********************************************************************************************************************
35 vector<string> NoCommand::getRequiredFiles(){   
36         try {
37                 vector<string> myArray;
38                 return myArray;
39         }
40         catch(exception& e) {
41                 m->errorOut(e, "NoCommand", "getRequiredFiles");
42                 exit(1);
43         }
44 }
45 //**********************************************************************************************************************
46
47 NoCommand::NoCommand(string option)  {}
48
49 //**********************************************************************************************************************
50
51 NoCommand::~NoCommand(){}
52
53 //**********************************************************************************************************************
54
55 int NoCommand::execute(){
56         //Could choose to give more help here?fdsah
57         cout << "Invalid command.\n";
58    
59                 CommandFactory* valid =  CommandFactory::getInstance();
60         valid->printCommands(cout);
61         
62         return 0;
63 }
64
65 //**********************************************************************************************************************