您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

54 行
1.2 KiB

  1. /******************************************************************************
  2. *
  3. * file: Visitor.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_VISITOR_H
  21. #define TCLAP_VISITOR_H
  22. namespace TCLAP {
  23. /**
  24. * A base class that defines the interface for visitors.
  25. */
  26. class Visitor
  27. {
  28. public:
  29. /**
  30. * Constructor. Does nothing.
  31. */
  32. Visitor() { }
  33. /**
  34. * Destructor. Does nothing.
  35. */
  36. virtual ~Visitor() { }
  37. /**
  38. * Does nothing. Should be overridden by child.
  39. */
  40. virtual void visit() { }
  41. };
  42. }
  43. #endif