iRoCS Toolbox  1.1.0
ArgIter.hh
Go to the documentation of this file.
1 /**************************************************************************
2  *
3  * Copyright (C) 2005-2015 Olaf Ronneberger, Jörg Mechnich, Florian Pigorsch,
4  * Mario Emmenlauer, Thorsten Schmidt
5  *
6  * Image Analysis Lab, University of Freiburg, Germany
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 3 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software Foundation,
20  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21  *
22  **************************************************************************/
23 
24 /**************************************************************************
25 ** Title: basic agument iterator
26 ** $RCSfile$
27 ** $Revision: 78 $$Name$
28 ** $Date: 2002-05-14 10:14:15 +0200 (Tue, 14 May 2002) $
29 ** Copyright: GPL $Author: pigorsch $
30 ** Description:
31 **
32 **
33 **
34 **-------------------------------------------------------------------------
35 **
36 ** $Log$
37 ** Revision 1.3 2002/05/14 08:13:28 pigorsch
38 ** - added documentation
39 **
40 ** Revision 1.2 2002/04/04 12:02:38 pigorsch
41 ** - renamed operator() to fetch()
42 ** - removed function temporary()
43 **
44 ** Revision 1.1 2002/03/26 07:36:28 ronneber
45 ** restructuring for autoconf
46 **
47 ** Revision 1.1.1.1 2002/03/22 13:45:07 pigorsch
48 ** moved from polsoft repository
49 **
50 **
51 **
52 **************************************************************************/
53 
54 #ifndef ARGITER_HH
55 #define ARGITER_HH
56 
57 #ifdef HAVE_CONFIG_H
58 #include <config.hh>
59 #endif
60 
61 /*======================================================================*/
72 /*======================================================================*/
73 class ArgIter
74 {
75 public:
76  /*====================================================================*/
80  /*====================================================================*/
82  {};
83 
84  /*====================================================================*/
88  /*====================================================================*/
89  virtual ~ArgIter()
90  {};
91 
92  /*====================================================================*/
99  /*====================================================================*/
100  virtual const char*
101  fetch()=0;
102 
103 private:
104  /*====================================================================*/
108  /*====================================================================*/
109  ArgIter(const ArgIter&)
110  {};
111 
112  /*====================================================================*/
116  /*====================================================================*/
117  ArgIter&
118  operator=(const ArgIter&)
119  {
120  return *this;
121  };
122 };
123 
124 #endif
virtual ~ArgIter()
Destructor.
Definition: ArgIter.hh:89
ArgIter()
Constructor.
Definition: ArgIter.hh:81
The ArgIter class is an abstract class used by the CmdLine class for fetching command line arguments...
Definition: ArgIter.hh:73
virtual const char * fetch()=0
Returns the current argument, advances to the next argument and returns NULL is there are no argument...