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