3d81e3ece8bea0880bb8e059bfd6473cf022c1b0
[ardour.git] / libs / glibmm2 / glibmm / value_basictypes.h
1 // -*- c++ -*-
2 // This is a generated file, do not edit.  Generated from value_basictypes.h.m4
3
4 #ifndef DOXYGEN_SHOULD_SKIP_THIS
5 #ifndef _GLIBMM_VALUE_H_INCLUDE_VALUE_BASICTYPES_H
6 #error "glibmm/value_basictypes.h cannot be included directly"
7 #endif
8 #endif
9
10 /* Suppress warnings about `long long' when GCC is in -pedantic mode.
11  */
12 #if (__GNUC__ >= 3 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96))
13 #pragma GCC system_header
14 #endif
15
16 namespace Glib
17 {
18
19 /**
20  * @ingroup glibmmValue
21  */
22 template <>
23 class Value<bool> : public ValueBase
24 {
25 public:
26   typedef bool CppType;
27   typedef gboolean CType;
28
29   static GType value_type() G_GNUC_CONST;
30
31   void set(bool data);
32   bool get() const;
33
34 #ifndef DOXYGEN_SHOULD_SKIP_THIS
35   GParamSpec* create_param_spec(const Glib::ustring& name) const;
36 #endif
37 };
38
39
40 /**
41  * @ingroup glibmmValue
42  */
43 template <>
44 class Value<char> : public ValueBase
45 {
46 public:
47   typedef char CppType;
48   typedef gchar CType;
49
50   static GType value_type() G_GNUC_CONST;
51
52   void set(char data);
53   char get() const;
54
55 #ifndef DOXYGEN_SHOULD_SKIP_THIS
56   GParamSpec* create_param_spec(const Glib::ustring& name) const;
57 #endif
58 };
59
60
61 /**
62  * @ingroup glibmmValue
63  */
64 template <>
65 class Value<unsigned char> : public ValueBase
66 {
67 public:
68   typedef unsigned char CppType;
69   typedef guchar CType;
70
71   static GType value_type() G_GNUC_CONST;
72
73   void set(unsigned char data);
74   unsigned char get() const;
75
76 #ifndef DOXYGEN_SHOULD_SKIP_THIS
77   GParamSpec* create_param_spec(const Glib::ustring& name) const;
78 #endif
79 };
80
81
82 /**
83  * @ingroup glibmmValue
84  */
85 template <>
86 class Value<int> : public ValueBase
87 {
88 public:
89   typedef int CppType;
90   typedef gint CType;
91
92   static GType value_type() G_GNUC_CONST;
93
94   void set(int data);
95   int get() const;
96
97 #ifndef DOXYGEN_SHOULD_SKIP_THIS
98   GParamSpec* create_param_spec(const Glib::ustring& name) const;
99 #endif
100 };
101
102
103 /**
104  * @ingroup glibmmValue
105  */
106 template <>
107 class Value<unsigned int> : public ValueBase
108 {
109 public:
110   typedef unsigned int CppType;
111   typedef guint CType;
112
113   static GType value_type() G_GNUC_CONST;
114
115   void set(unsigned int data);
116   unsigned int get() const;
117
118 #ifndef DOXYGEN_SHOULD_SKIP_THIS
119   GParamSpec* create_param_spec(const Glib::ustring& name) const;
120 #endif
121 };
122
123
124 /**
125  * @ingroup glibmmValue
126  */
127 template <>
128 class Value<long> : public ValueBase
129 {
130 public:
131   typedef long CppType;
132   typedef glong CType;
133
134   static GType value_type() G_GNUC_CONST;
135
136   void set(long data);
137   long get() const;
138
139 #ifndef DOXYGEN_SHOULD_SKIP_THIS
140   GParamSpec* create_param_spec(const Glib::ustring& name) const;
141 #endif
142 };
143
144
145 /**
146  * @ingroup glibmmValue
147  */
148 template <>
149 class Value<unsigned long> : public ValueBase
150 {
151 public:
152   typedef unsigned long CppType;
153   typedef gulong CType;
154
155   static GType value_type() G_GNUC_CONST;
156
157   void set(unsigned long data);
158   unsigned long get() const;
159
160 #ifndef DOXYGEN_SHOULD_SKIP_THIS
161   GParamSpec* create_param_spec(const Glib::ustring& name) const;
162 #endif
163 };
164
165
166 /**
167  * @ingroup glibmmValue
168  */
169 template <>
170 class Value<long long> : public ValueBase
171 {
172 public:
173   typedef long long CppType;
174   typedef gint64 CType;
175
176   static GType value_type() G_GNUC_CONST;
177
178   void set(long long data);
179   long long get() const;
180
181 #ifndef DOXYGEN_SHOULD_SKIP_THIS
182   GParamSpec* create_param_spec(const Glib::ustring& name) const;
183 #endif
184 };
185
186
187 /**
188  * @ingroup glibmmValue
189  */
190 template <>
191 class Value<unsigned long long> : public ValueBase
192 {
193 public:
194   typedef unsigned long long CppType;
195   typedef guint64 CType;
196
197   static GType value_type() G_GNUC_CONST;
198
199   void set(unsigned long long data);
200   unsigned long long get() const;
201
202 #ifndef DOXYGEN_SHOULD_SKIP_THIS
203   GParamSpec* create_param_spec(const Glib::ustring& name) const;
204 #endif
205 };
206
207
208 /**
209  * @ingroup glibmmValue
210  */
211 template <>
212 class Value<float> : public ValueBase
213 {
214 public:
215   typedef float CppType;
216   typedef gfloat CType;
217
218   static GType value_type() G_GNUC_CONST;
219
220   void set(float data);
221   float get() const;
222
223 #ifndef DOXYGEN_SHOULD_SKIP_THIS
224   GParamSpec* create_param_spec(const Glib::ustring& name) const;
225 #endif
226 };
227
228
229 /**
230  * @ingroup glibmmValue
231  */
232 template <>
233 class Value<double> : public ValueBase
234 {
235 public:
236   typedef double CppType;
237   typedef gdouble CType;
238
239   static GType value_type() G_GNUC_CONST;
240
241   void set(double data);
242   double get() const;
243
244 #ifndef DOXYGEN_SHOULD_SKIP_THIS
245   GParamSpec* create_param_spec(const Glib::ustring& name) const;
246 #endif
247 };
248
249
250 /**
251  * @ingroup glibmmValue
252  */
253 template <>
254 class Value<void*> : public ValueBase
255 {
256 public:
257   typedef void* CppType;
258   typedef gpointer CType;
259
260   static GType value_type() G_GNUC_CONST;
261
262   void set(void* data);
263   void* get() const;
264
265 #ifndef DOXYGEN_SHOULD_SKIP_THIS
266   GParamSpec* create_param_spec(const Glib::ustring& name) const;
267 #endif
268 };
269
270 } // namespace Glib
271