cmd_line_interface.hpp
Go to the documentation of this file.
1 
11 /*****************************************************************************
12 ** Ifdefs
13 *****************************************************************************/
14 
15 #ifndef TCLAP_COMMANDLINE_INTERFACE_H
16 #define TCLAP_COMMANDLINE_INTERFACE_H
17 
18 #include <string>
19 #include <vector>
20 #include <list>
21 #include <iostream>
22 #include <algorithm>
23 
24 
25 namespace ecl {
26 
27 class Arg;
28 class CmdLineOutput;
29 class XorHandler;
30 
37 {
38  public:
39 
43  virtual ~CmdLineInterface() {}
44 
49  virtual void add( Arg& a )=0;
50 
55  virtual void add( Arg* a )=0;
56 
64  virtual void xorAdd( Arg& a, Arg& b )=0;
65 
71  virtual void xorAdd( std::vector<Arg*>& xors )=0;
72 
78  virtual void parse(int argc, char** argv)=0;
79 
83  virtual CmdLineOutput* getOutput()=0;
84 
88  virtual void setOutput(CmdLineOutput* co)=0;
89 
93  virtual std::string& getVersion()=0;
94 
98  virtual std::string& getProgramName()=0;
99 
103  virtual std::list<Arg*>& getArgList()=0;
104 
108  virtual XorHandler& getXorHandler()=0;
109 
113  virtual char getDelimiter()=0;
114 
118  virtual std::string& getMessage()=0;
119 
124  virtual bool hasHelpAndVersion()=0;
125 };
126 
127 }; // namespace ecl
128 
129 
130 #endif
virtual std::string & getVersion()=0
Tclap class indirectly used by children for standardising outputs.
Managing interface for The base class that manages the command line definition and passes along the p...
Virtual parent for all the different argument classes.
Definition: arg.hpp:37
virtual std::list< Arg * > & getArgList()=0
virtual XorHandler & getXorHandler()=0
virtual void add(Arg &a)=0
virtual std::string & getMessage()=0
virtual void parse(int argc, char **argv)=0
virtual bool hasHelpAndVersion()=0
virtual char getDelimiter()=0
TClap class indirectly used by CmdLine for handling xor&#39;d arguments.
Definition: xor_handler.hpp:32
virtual CmdLineOutput * getOutput()=0
virtual void setOutput(CmdLineOutput *co)=0
virtual void xorAdd(Arg &a, Arg &b)=0
virtual std::string & getProgramName()=0


ecl_command_line
Author(s): Daniel Stonier
autogenerated on Mon Jun 10 2019 13:08:08