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 
36 class CmdLineInterface
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
ecl::CmdLineInterface::getArgList
virtual std::list< Arg * > & getArgList()=0
ecl::CmdLineInterface::getVersion
virtual std::string & getVersion()=0
ecl::XorHandler
TClap class indirectly used by CmdLine for handling xor'd arguments.
Definition: xor_handler.hpp:34
ecl::CmdLineInterface::~CmdLineInterface
virtual ~CmdLineInterface()
Definition: cmd_line_interface.hpp:45
ecl::CmdLineInterface::getMessage
virtual std::string & getMessage()=0
ecl::CmdLineInterface::getDelimiter
virtual char getDelimiter()=0
ecl::CmdLineInterface::add
virtual void add(Arg &a)=0
ecl::Arg
Virtual parent for all the different argument classes.
Definition: arg.hpp:39
ecl::CmdLineInterface::getXorHandler
virtual XorHandler & getXorHandler()=0
ecl::CmdLineInterface::hasHelpAndVersion
virtual bool hasHelpAndVersion()=0
ecl::CmdLineInterface::xorAdd
virtual void xorAdd(Arg &a, Arg &b)=0
ecl::CmdLineInterface::parse
virtual void parse(int argc, char **argv)=0
ecl::CmdLineOutput
Tclap class indirectly used by children for standardising outputs.
Definition: cmd_line_output.hpp:37
ecl::CmdLineInterface::setOutput
virtual void setOutput(CmdLineOutput *co)=0
ecl::CmdLineInterface::getOutput
virtual CmdLineOutput * getOutput()=0
ecl::CmdLineInterface::getProgramName
virtual std::string & getProgramName()=0
ecl


ecl_command_line
Author(s): Daniel Stonier
autogenerated on Sun Aug 2 2020 03:12:03