1 ////////////////////////////////////////////////////////////////////////////////
2 //
3 // Copyright (c) 2008 The Regents of the University of California
4 //
5 // This file is part of Qbox
6 //
7 // Qbox is distributed under the terms of the GNU General Public License
8 // as published by the Free Software Foundation, either version 2 of
9 // the License, or (at your option) any later version.
10 // See the file COPYING in the root directory of this distribution
11 // or <http://www.gnu.org/licenses/>.
12 //
13 ////////////////////////////////////////////////////////////////////////////////
14 //
15 // SpeciesCmd.h:
16 //
17 ////////////////////////////////////////////////////////////////////////////////
18 
19 #ifndef SPECIESCMD_H
20 #define SPECIESCMD_H
21 
22 #include <iostream>
23 #include <cstdlib>
24 #include <string>
25 using namespace std;
26 
27 #include "UserInterface.h"
28 #include "Sample.h"
29 
30 class SpeciesCmd : public Cmd
31 {
32   public:
33 
34   Sample *s;
35 
SpeciesCmd(Sample * sample)36   SpeciesCmd(Sample *sample) : s(sample) {};
37 
name(void)38   const char *name(void) const { return "species"; }
help_msg(void)39   const char *help_msg(void) const
40   {
41     return
42     "\n species\n\n"
43     " syntax: species name uri\n\n"
44     "   The species command defines a species name.\n\n";
45   }
46 
47   int action(int argc, char **argv);
48 };
49 #endif
50