Mercurial > repos > rliterman > csp2
annotate CSP2/CSP2_env/env-d9b9114564458d9d-741b3de822f2aaca6c6caa4325c4afce/include/mash/CommandList.h @ 69:33d812a61356
planemo upload commit 2e9511a184a1ca667c7be0c6321a36dc4e3d116d
author | jpayne |
---|---|
date | Tue, 18 Mar 2025 17:55:14 -0400 |
parents | |
children |
rev | line source |
---|---|
jpayne@69 | 1 // Copyright © 2015, Battelle National Biodefense Institute (BNBI); |
jpayne@69 | 2 // all rights reserved. Authored by: Brian Ondov, Todd Treangen, |
jpayne@69 | 3 // Sergey Koren, and Adam Phillippy |
jpayne@69 | 4 // |
jpayne@69 | 5 // See the LICENSE.txt file included with this software for license information. |
jpayne@69 | 6 |
jpayne@69 | 7 #ifndef INCLUDED_CommandList |
jpayne@69 | 8 #define INCLUDED_CommandList |
jpayne@69 | 9 |
jpayne@69 | 10 #include <map> |
jpayne@69 | 11 |
jpayne@69 | 12 #include "Command.h" |
jpayne@69 | 13 |
jpayne@69 | 14 namespace mash { |
jpayne@69 | 15 |
jpayne@69 | 16 class CommandList |
jpayne@69 | 17 { |
jpayne@69 | 18 std::map<std::string, Command *> commands; |
jpayne@69 | 19 |
jpayne@69 | 20 public: |
jpayne@69 | 21 |
jpayne@69 | 22 CommandList(std::string nameNew); |
jpayne@69 | 23 ~CommandList(); |
jpayne@69 | 24 |
jpayne@69 | 25 void addCommand(Command * command); |
jpayne@69 | 26 void print(); |
jpayne@69 | 27 int run(int argc, const char ** argv); |
jpayne@69 | 28 |
jpayne@69 | 29 private: |
jpayne@69 | 30 |
jpayne@69 | 31 void showLicense(); |
jpayne@69 | 32 |
jpayne@69 | 33 std::string name; |
jpayne@69 | 34 }; |
jpayne@69 | 35 |
jpayne@69 | 36 } // namespace mash |
jpayne@69 | 37 |
jpayne@69 | 38 #endif |