KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
l_cloneable.h
Go to the documentation of this file.
1 /* $Id: l_cloneable.h 9127 2011-04-01 02:43:50Z predoehl $ */
2 
3 /* =========================================================================== *
4 |
5 | Copyright (c) 1994-2008 by Kobus Barnard (author).
6 |
7 | Personal and educational use of this code is granted, provided that this
8 | header is kept intact, and that the authorship is not misrepresented, that
9 | its use is acknowledged in publications, and relevant papers are cited.
10 |
11 | For other use contact the author (kobus AT cs DOT arizona DOT edu).
12 |
13 | Please note that the code in this file has not necessarily been adequately
14 | tested. Naturally, there is no guarantee of performance, support, or fitness
15 | for any particular task. Nonetheless, I am interested in hearing about
16 | problems that you encounter.
17 |
18 | Authors:
19 | Joseph Schlecht, Luca Del Pero
20 |
21 * =========================================================================== */
22 
23 
33 #ifndef KJB_CLONEABLE_H
34 #define KJB_CLONEABLE_H
35 
36 
37 namespace kjb {
38 
39 
45 class Cloneable
46 {
47  public:
48 
50  virtual ~Cloneable() { }
51 
52 
54  virtual Cloneable* clone() const = 0;
55 };
56 
57 
58 }
59 
60 
61 #endif
virtual ~Cloneable()
Deletes this Cloneable.
Definition: l_cloneable.h:50
Abstract class to clone this object.
Definition: l_cloneable.h:45
virtual Cloneable * clone() const =0
Processes an Option from program command-line arguments.