source: rrlib_xml/tCleanupHandler.h

tip
Last change on this file was 57:3d0021116fb4, checked in by Tobias Föhst <foehst@…>, 9 years ago

Added and updated license information

File size: 3.1 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 modify
8// it under the terms of the GNU General Public License as published by
9// the Free Software Foundation; either version 2 of the License, or
10// (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 along
18// with this program; if not, write to the Free Software Foundation, Inc.,
19// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20//
21//----------------------------------------------------------------------
22/*!\file    rrlib/xml/tCleanupHandler.h
23 *
24 * \author  Tobias Foehst
25 *
26 * \date    2010-12-24
27 *
28 * \brief   Contains tCleanupHandler
29 *
30 * \b tCleanupHandler
31 *
32 */
33//----------------------------------------------------------------------
34#ifndef __rrlib__xml__tCleanupHandler_h__
35#define __rrlib__xml__tCleanupHandler_h__
36
37//----------------------------------------------------------------------
38// External includes (system with <>, local with "")
39//----------------------------------------------------------------------
40extern "C"
41{
42#include <libxml/tree.h>
43}
44
45#include "rrlib/design_patterns/singleton.h"
46
47//----------------------------------------------------------------------
48// Internal includes with ""
49//----------------------------------------------------------------------
50
51//----------------------------------------------------------------------
52// Debugging
53//----------------------------------------------------------------------
54
55//----------------------------------------------------------------------
56// Namespace declaration
57//----------------------------------------------------------------------
58namespace rrlib
59{
60namespace xml
61{
62
63//----------------------------------------------------------------------
64// Forward declarations / typedefs / enums
65//----------------------------------------------------------------------
66
67//----------------------------------------------------------------------
68// Class declaration
69//----------------------------------------------------------------------
70//!
71/*!
72 *
73 */
74class tCleanupHandlerImplementation
75{
76
77//----------------------------------------------------------------------
78// Public methods and typedefs
79//----------------------------------------------------------------------
80public:
81
82  /*! The ctor of tCleanupHandler
83   *
84   */
85  tCleanupHandlerImplementation()
86  {}
87
88  ~tCleanupHandlerImplementation()
89  {
90    xmlCleanupParser();
91  }
92
93};
94
95typedef design_patterns::tSingletonHolder<tCleanupHandlerImplementation, design_patterns::singleton::PhoenixSingleton> tCleanupHandler;
96
97//----------------------------------------------------------------------
98// End of namespace declaration
99//----------------------------------------------------------------------
100}
101}
102
103#endif
Note: See TracBrowser for help on using the repository browser.