Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 

53 Zeilen
1.3 KiB

  1. /******************************************************************************
  2. *
  3. * file: IgnoreRestVisitor.h
  4. *
  5. * Copyright (c) 2003, Michael E. Smoot .
  6. * All rights reverved.
  7. *
  8. * See the file COPYING in the top directory of this distribution for
  9. * more information.
  10. *
  11. * THE SOFTWARE IS PROVIDED _AS IS_, WITHOUT WARRANTY OF ANY KIND, EXPRESS
  12. * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  13. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
  14. * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  15. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  16. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  17. * DEALINGS IN THE SOFTWARE.
  18. *
  19. *****************************************************************************/
  20. #ifndef TCLAP_IGNORE_REST_VISITOR_H
  21. #define TCLAP_IGNORE_REST_VISITOR_H
  22. #include "Visitor.h"
  23. #include "Arg.h"
  24. namespace TCLAP {
  25. /**
  26. * A Vistor that tells the CmdLine to begin ignoring arguments after
  27. * this one is parsed.
  28. */
  29. class IgnoreRestVisitor: public Visitor
  30. {
  31. public:
  32. /**
  33. * Constructor.
  34. */
  35. IgnoreRestVisitor() : Visitor() {}
  36. /**
  37. * Sets Arg::_ignoreRest.
  38. */
  39. void visit() { Arg::beginIgnoring(); }
  40. };
  41. }
  42. #endif