Main MRPT website > C++ reference
MRPT logo

IgnoreRestVisitor.h

Go to the documentation of this file.
00001 
00002 /****************************************************************************** 
00003  * 
00004  *  file:  IgnoreRestVisitor.h
00005  * 
00006  *  Copyright (c) 2003, Michael E. Smoot .
00007  *  All rights reverved.
00008  * 
00009  *  See the file COPYING in the top directory of this distribution for
00010  *  more information.
00011  *  
00012  *  THE SOFTWARE IS PROVIDED _AS IS_, WITHOUT WARRANTY OF ANY KIND, EXPRESS 
00013  *  OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
00014  *  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 
00015  *  THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
00016  *  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 
00017  *  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 
00018  *  DEALINGS IN THE SOFTWARE.  
00019  *  
00020  *****************************************************************************/ 
00021 
00022 
00023 #ifndef TCLAP_IGNORE_REST_VISITOR_H
00024 #define TCLAP_IGNORE_REST_VISITOR_H
00025 
00026 #include <mrpt/otherlibs/tclap/Visitor.h>
00027 #include <mrpt/otherlibs/tclap/Arg.h>
00028 
00029 namespace TCLAP {
00030 
00031 /**
00032  * A Vistor that tells the CmdLine to begin ignoring arguments after
00033  * this one is parsed.
00034  */
00035 class IgnoreRestVisitor: public Visitor
00036 {
00037         public:
00038 
00039                 /**
00040                  * Constructor.
00041                  */
00042                 IgnoreRestVisitor() : Visitor() {}
00043 
00044                 /**
00045                  * Sets Arg::_ignoreRest.
00046                  */
00047                 void visit() { Arg::beginIgnoring();  }
00048 };
00049 
00050 }
00051 
00052 #endif



Page generated by Doxygen 1.7.3 for MRPT 0.9.4 SVN: at Sat Mar 26 06:16:28 UTC 2011