add new sigc++2 directory
[ardour.git] / libs / glibmm2 / glib / src / value_basictypes.h.m4
1 divert(-1)
2
3 dnl $Id: value_basictypes.h.m4 2 2003-01-07 16:59:16Z murrayc $
4
5 dnl  Glib::Value specializations for fundamental types
6 dnl
7 dnl  Copyright 2002 The gtkmm Development Team
8 dnl
9 dnl  This library is free software; you can redistribute it and/or
10 dnl  modify it under the terms of the GNU Library General Public
11 dnl  License as published by the Free Software Foundation; either
12 dnl  version 2 of the License, or (at your option) any later version.
13 dnl
14 dnl  This library is distributed in the hope that it will be useful,
15 dnl  but WITHOUT ANY WARRANTY; without even the implied warranty of
16 dnl  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17 dnl  Library General Public License for more details.
18 dnl
19 dnl  You should have received a copy of the GNU Library General Public
20 dnl  License along with this library; if not, write to the Free
21 dnl  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22
23 include(template.macros.m4)
24
25 dnl
26 dnl GLIB_VALUE_BASIC(bool, boolean)
27 dnl
28 define([GLIB_VALUE_BASIC],[dnl
29 LINE(]__line__[)dnl
30
31 /**
32  * @ingroup glibmmValue
33  */
34 template <>
35 class Value<$1> : public ValueBase
36 {
37 public:
38   typedef $1 CppType;
39   typedef g$2 CType;
40
41   static GType value_type() G_GNUC_CONST;
42
43   void set($1 data);
44   $1 get() const;
45
46 #ifndef DOXYGEN_SHOULD_SKIP_THIS
47   GParamSpec* create_param_spec(const Glib::ustring& name) const;
48 #endif
49 };
50 ])
51
52 divert[]dnl
53 // -*- c++ -*-
54 // This is a generated file, do not edit.  Generated from __file__
55
56 #ifndef DOXYGEN_SHOULD_SKIP_THIS
57 #ifndef _GLIBMM_VALUE_H_INCLUDE_VALUE_BASICTYPES_H
58 #error "glibmm/value_basictypes.h cannot be included directly"
59 #endif
60 #endif
61
62 /* Suppress warnings about `long long' when GCC is in -pedantic mode.
63  */
64 #if (__GNUC__ >= 3 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96))
65 #pragma GCC system_header
66 #endif
67
68 namespace Glib
69 {
70 GLIB_VALUE_BASIC(bool, boolean)
71 GLIB_VALUE_BASIC(char, char)
72 GLIB_VALUE_BASIC(unsigned char, uchar)
73 GLIB_VALUE_BASIC(int, int)
74 GLIB_VALUE_BASIC(unsigned int, uint)
75 GLIB_VALUE_BASIC(long, long)
76 GLIB_VALUE_BASIC(unsigned long, ulong)
77 GLIB_VALUE_BASIC(long long, int64)
78 GLIB_VALUE_BASIC(unsigned long long, uint64)
79 GLIB_VALUE_BASIC(float, float)
80 GLIB_VALUE_BASIC(double, double)
81 GLIB_VALUE_BASIC(void*, pointer)
82 } // namespace Glib
83