tclap 1.2.5
Visitor.h
Go to the documentation of this file.
1// -*- Mode: c++; c-basic-offset: 4; tab-width: 4; -*-
2
3
4/******************************************************************************
5 *
6 * file: Visitor.h
7 *
8 * Copyright (c) 2003, Michael E. Smoot .
9 * Copyright (c) 2017, Google LLC
10 * All rights reserved.
11 *
12 * See the file COPYING in the top directory of this distribution for
13 * more information.
14 *
15 * THE SOFTWARE IS PROVIDED _AS IS_, WITHOUT WARRANTY OF ANY KIND, EXPRESS
16 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21 * DEALINGS IN THE SOFTWARE.
22 *
23 *****************************************************************************/
24
25
26#ifndef TCLAP_VISITOR_H
27#define TCLAP_VISITOR_H
28
29namespace TCLAP {
30
35{
36 public:
37
41 Visitor() { }
42
46 virtual ~Visitor() { }
47
52 virtual void visit() = 0;
53};
54
55}
56
57#endif
A base class that defines the interface for visitors.
Definition Visitor.h:35
Visitor()
Constructor.
Definition Visitor.h:41
virtual void visit()=0
This method (to implemented by children) will be called when the visitor is visited.
virtual ~Visitor()
Destructor.
Definition Visitor.h:46
Definition Arg.h:48