1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
|
//
// renamefilecommand.h
// Mothur
//
// Created by Sarah Westcott on 4/18/16.
// Copyright (c) 2016 Schloss Lab. All rights reserved.
//
#ifndef __Mothur__renamefilecommand__
#define __Mothur__renamefilecommand__
#include "command.hpp"
class RenameFileCommand : public Command {
#ifdef UNIT_TEST
friend class TestRenameFileCommand;
#endif
public:
RenameFileCommand(string);
~RenameFileCommand(){}
vector<string> setParameters();
string getCommandName() { return "rename.file"; }
string getCommandCategory() { return "General"; }
string getHelpString();
string getOutputPattern(string);
string getCitation() { return "http://www.mothur.org/wiki/rename.file"; }
string getDescription() { return "renames file and updates current"; }
int execute();
void help() { m->mothurOut(getHelpString()); }
private:
string accnosfile, phylipfile, columnfile, listfile, rabundfile, sabundfile, namefile, groupfile, designfile, taxonomyfile, biomfile, countfile, summaryfile, inputfile;
string treefile, sharedfile, ordergroupfile, relabundfile, fastafile, qualfile, sfffile, oligosfile, flowfile, filefile, outputfile, constaxonomyfile, prefix;
bool mothurGenerated, abort, deleteOld;
vector<string> outputNames;
string getNewName(string name, string type);
string renameOrCopy(string oldName, string newName);
};
#endif /* defined(__Mothur__renamefilecommand__) */
|