Bayeux  3.4.1
Core Foundation library for SuperNEMO
reflection_utils.h
Go to the documentation of this file.
1 /*
3  * Description :
4  *
5  * Some useful classes and macros related to datatools/Camp reflection.
6  *
7  * Copyright (C) 2012 Francois Mauger <mauger@lpccaen.in2p3.fr>
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 3 of the License, or (at
12  * your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful, but
15  * WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  * General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin Street, Fifth Floor,
22  * Boston, MA 02110-1301, USA.
23  *
24  */
25 
26 #ifndef DATATOOLS_DETAIL_REFLECTION_UTILS_H
27 #define DATATOOLS_DETAIL_REFLECTION_UTILS_H
28 
29 namespace datatools{
30  namespace detail {
32  namespace reflection {
33  template<typename Introspectable>
34  void implement_reflection(unsigned int);
35  }
36  }
37 }
38 
41 #define DR_CLASS_IMPLEMENT_REFLECTION_DECLARATION(Introspectable) \
42  namespace datatools{ \
43  namespace detail { \
44  namespace reflection { \
45  template<> \
46  void implement_reflection< Introspectable > (unsigned int); \
47  }}} \
48 
49 
52 #define DR_TYPE_IMPLEMENT_REFLECTION_DECLARATION(Introspectable) \
53  DR_CLASS_IMPLEMENT_REFLECTION_DECLARATION(Introspectable) \
54 
55 
56 #endif // DATATOOLS_DETAIL_REFLECTION_UTILS_H
57 
58 // Local Variables: --
59 // mode: c++ --
60 // c-file-style: "gnu" --
61 // tab-width: 2 --
62 // End: --
void implement_reflection(unsigned int)
The Bayeux/datatools library top-level namespace.
Definition: algo.h:13