source: rrlib_util/patterns/final_class.h @ 34:ab31d5f0532b

Last change on this file since 34:ab31d5f0532b was 34:ab31d5f0532b, checked in by Tobias Föhst <foehst@…>, 9 years ago

Updated and added old/missing copyright notes

File size: 2.6 KB
Line 
1//
2// You received this file as part of RRLib
3// Robotics Research Library
4//
5// Copyright (C) Finroc GbR (finroc.org)
6//
7// This program is free software; you can redistribute it and/or
8// modify it under the terms of the GNU General Public License
9// as published by the Free Software Foundation; either version 2
10// of the License, or (at your option) any later version.
11//
12// This program is distributed in the hope that it will be useful,
13// but WITHOUT ANY WARRANTY; without even the implied warranty of
14// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15// GNU General Public License for more details.
16//
17// You should have received a copy of the GNU General Public License
18// along with this program; if not, write to the Free Software
19// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
20//
21//----------------------------------------------------------------------
22/*!\file    final_class.h
23 *
24 * \author  Tobias Foehst
25 *
26 * \date    2010-12-14
27 *
28 * \brief Contains final_class
29 *
30 * \b final_class
31 *
32 */
33//----------------------------------------------------------------------
34#ifndef __rrlib__util__patterns__final_class_h__
35#define __rrlib__util__patterns__final_class_h__
36
37//----------------------------------------------------------------------
38// External includes (system with <>, local with "")
39//----------------------------------------------------------------------
40
41//----------------------------------------------------------------------
42// Internal includes with ""
43//----------------------------------------------------------------------
44
45//----------------------------------------------------------------------
46// Debugging
47//----------------------------------------------------------------------
48
49//----------------------------------------------------------------------
50// Namespace declaration
51//----------------------------------------------------------------------
52namespace rrlib
53{
54namespace util
55{
56
57//----------------------------------------------------------------------
58// Forward declarations / typedefs / enums
59//----------------------------------------------------------------------
60#define RRLIB_FINAL_CLASS private virtual rrlib::util::final_class
61
62//----------------------------------------------------------------------
63// Class declaration
64//----------------------------------------------------------------------
65class final_class
66{
67protected:
68  ~final_class() {}
69};
70
71//----------------------------------------------------------------------
72// End of namespace declaration
73//----------------------------------------------------------------------
74}
75}
76
77#endif
Note: See TracBrowser for help on using the repository browser.