X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=commandfactory.hpp;fp=commandfactory.hpp;h=3b6a17e38b2abb74b152da573a9bf2f1666e62e6;hb=2bbb7273d4bf5209f098c764551c6e072d60df36;hp=6f96e90b4813e961222c60f9bb7390188d19c3e5;hpb=438aa88dbc092d9c1c80ec3fa20c8e47f97101c4;p=mothur.git diff --git a/commandfactory.hpp b/commandfactory.hpp index 6f96e90..3b6a17e 100644 --- a/commandfactory.hpp +++ b/commandfactory.hpp @@ -1,45 +1,45 @@ -#ifndef COMMANDFACTORY_HPP -#define COMMANDFACTORY_HPP - -/* - * commandfactory.h - * - * - * Created by Pat Schloss on 10/25/08. - * Copyright 2008 Patrick D. Schloss. All rights reserved. - * - */ - -#include "mothur.h" -#include "mothurout.h"; - -class Command; - -class CommandFactory { -public: - static CommandFactory* getInstance(); - Command* getCommand(string, string); - Command* getCommand(); - bool isValidCommand(string); - void printCommands(ostream&); - void setOutputDirectory(string o) { outputDir = o; } - void setInputDirectory(string i) { inputDir = i; } - string getOutputDir() { return outputDir; } - bool MPIEnabled(string); - -private: - Command* command; - MothurOut* m; - map commands; - map::iterator it; - string outputDir, inputDir; - - static CommandFactory* _uniqueInstance; - CommandFactory( const CommandFactory& ); // Disable copy constructor - void operator=( const CommandFactory& ); // Disable assignment operator - CommandFactory(); - ~CommandFactory(); - -}; - -#endif +#ifndef COMMANDFACTORY_HPP +#define COMMANDFACTORY_HPP + +/* + * commandfactory.h + * + * + * Created by Pat Schloss on 10/25/08. + * Copyright 2008 Patrick D. Schloss. All rights reserved. + * + */ + +#include "mothur.h" +#include "mothurout.h" + +class Command; + +class CommandFactory { +public: + static CommandFactory* getInstance(); + Command* getCommand(string, string); + Command* getCommand(); + bool isValidCommand(string); + void printCommands(ostream&); + void setOutputDirectory(string o) { outputDir = o; } + void setInputDirectory(string i) { inputDir = i; } + string getOutputDir() { return outputDir; } + bool MPIEnabled(string); + +private: + Command* command; + MothurOut* m; + map commands; + map::iterator it; + string outputDir, inputDir; + + static CommandFactory* _uniqueInstance; + CommandFactory( const CommandFactory& ); // Disable copy constructor + void operator=( const CommandFactory& ); // Disable assignment operator + CommandFactory(); + ~CommandFactory(); + +}; + +#endif