Debian Codegraph @

gstreamer/gstreamermm/miniobject.h

raw symbols SCIP
1 // Generated by gmmproc 2.50.1 -- DO NOT MODIFY!cxx . . $ `<file>/gstreamer/gstreamermm/miniobject.h`/
2 #ifndef _GSTREAMERMM_MINIOBJECT_H
3 #define _GSTREAMERMM_MINIOBJECT_Hcxx . . $ `gstreamer/gstreamermm/miniobject.h:3:9`!
4
5
6 #include <glibmm/ustring.h>
7 #include <sigc++/sigc++.h>
8
9 /* gstreamermm - a C++ wrapper for gstreamer
10 *
11 * Copyright 2008 The gstreamermm Development Team
12 *
13 * This library is free software; you can redistribute it and/or
14 * modify it under the terms of the GNU Lesser General Public
15 * License as published by the Free Software Foundation; either
16 * version 2.1 of the License, or (at your option) any later version.
17 *
18 * This library is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21 * Lesser General Public License for more details.
22 *
23 * You should have received a copy of the GNU Lesser General Public
24 * License along with this library; if not, write to the Free
25 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
26 */
27
28 #include <gst/gst.h>
29 #include <glibmm/value.h>
30 #include <sigc++/sigc++.h>
31
32 #include <map>
33
34
35 namespace Gstcxx . . $ Gst/
36 {
37
38 /** @addtogroup gstreamermmEnums gstreamermm Enums and Flags */
39
40 /**
41 * @var MiniObjectFlags MINI_OBJECT_FLAG_LOCKABLE
42 * The object can be locked and unlocked with
43 * Gst::MiniObject::lock() and Gst::MiniObject::unlock().
44 *
45 * @var MiniObjectFlags MINI_OBJECT_FLAG_LOCK_READONLY
46 * The object is permanently locked in
47 * READONLY mode. Only read locks can be performed on the object.
48 *
49 * @var MiniObjectFlags MINI_OBJECT_FLAG_LAST
50 * First flag that can be used by subclasses.
51 *
52 * @enum MiniObjectFlags
53 *
54 * Flags for the mini object
55 *
56 * @ingroup gstreamermmEnums
57 * @par Bitwise operators:
58 * <tt>%MiniObjectFlags operator|(MiniObjectFlags, MiniObjectFlags)</tt><br>
59 * <tt>%MiniObjectFlags operator&(MiniObjectFlags, MiniObjectFlags)</tt><br>
60 * <tt>%MiniObjectFlags operator^(MiniObjectFlags, MiniObjectFlags)</tt><br>
61 * <tt>%MiniObjectFlags operator~(MiniObjectFlags)</tt><br>
62 * <tt>%MiniObjectFlags& operator|=(MiniObjectFlags&, MiniObjectFlags)</tt><br>
63 * <tt>%MiniObjectFlags& operator&=(MiniObjectFlags&, MiniObjectFlags)</tt><br>
64 * <tt>%MiniObjectFlags& operator^=(MiniObjectFlags&, MiniObjectFlags)</tt><br>
65 */
66 enum MiniObjectFlagscxx . . $ Gst/MiniObjectFlags#
67 {
68 MINI_OBJECT_FLAG_LOCKABLEcxx . . $ Gst/MINI_OBJECT_FLAG_LOCKABLE. = (1 << 0),
69 MINI_OBJECT_FLAG_LOCK_READONLYcxx . . $ Gst/MINI_OBJECT_FLAG_LOCK_READONLY. = (1 << 1),
70 MINI_OBJECT_FLAG_LASTcxx . . $ Gst/MINI_OBJECT_FLAG_LAST. = (1 << 4)
71 };
72
73 /** @ingroup gstreamermmEnums */
74 inline MiniObjectFlagscxx . . $ Gst/MiniObjectFlags# operatorcxx . . $ Gst/`operator|`(f89b2c4e92c161b).|(MiniObjectFlagscxx . . $ Gst/MiniObjectFlags# lhs, MiniObjectFlagscxx . . $ Gst/MiniObjectFlags# rhs)
75 { return static_cast<MiniObjectFlagscxx . . $ Gst/MiniObjectFlags#>(static_cast<unsigned>(lhs) | static_cast<unsigned>(rhs)); }
76
77 /** @ingroup gstreamermmEnums */
78 inline MiniObjectFlagscxx . . $ Gst/MiniObjectFlags# operatorcxx . . $ Gst/`operator&`(f89b2c4e92c161b).&(MiniObjectFlagscxx . . $ Gst/MiniObjectFlags# lhs, MiniObjectFlagscxx . . $ Gst/MiniObjectFlags# rhs)
79 { return static_cast<MiniObjectFlagscxx . . $ Gst/MiniObjectFlags#>(static_cast<unsigned>(lhs) & static_cast<unsigned>(rhs)); }
80
81 /** @ingroup gstreamermmEnums */
82 inline MiniObjectFlagscxx . . $ Gst/MiniObjectFlags# operatorcxx . . $ Gst/`operator^`(f89b2c4e92c161b).^(MiniObjectFlagscxx . . $ Gst/MiniObjectFlags# lhs, MiniObjectFlagscxx . . $ Gst/MiniObjectFlags# rhs)
83 { return static_cast<MiniObjectFlagscxx . . $ Gst/MiniObjectFlags#>(static_cast<unsigned>(lhs) ^ static_cast<unsigned>(rhs)); }
84
85 /** @ingroup gstreamermmEnums */
86 inline MiniObjectFlagscxx . . $ Gst/MiniObjectFlags# operatorcxx . . $ Gst/`operator~`(66d7c190845439ad).~(MiniObjectFlagscxx . . $ Gst/MiniObjectFlags# flags)
87 { return static_cast<MiniObjectFlagscxx . . $ Gst/MiniObjectFlags#>(~static_cast<unsigned>(flags)); }
88
89 /** @ingroup gstreamermmEnums */
90 inline MiniObjectFlagscxx . . $ Gst/MiniObjectFlags#& operatorcxx . . $ Gst/`operator|=`(adae738579ba3a7b).|=(MiniObjectFlagscxx . . $ Gst/MiniObjectFlags#& lhs, MiniObjectFlagscxx . . $ Gst/MiniObjectFlags# rhs)
91 { return (lhs = static_cast<MiniObjectFlagscxx . . $ Gst/MiniObjectFlags#>(static_cast<unsigned>(lhs) | static_cast<unsigned>(rhs))); }
92
93 /** @ingroup gstreamermmEnums */
94 inline MiniObjectFlagscxx . . $ Gst/MiniObjectFlags#& operatorcxx . . $ Gst/`operator&=`(adae738579ba3a7b).&=(MiniObjectFlagscxx . . $ Gst/MiniObjectFlags#& lhs, MiniObjectFlagscxx . . $ Gst/MiniObjectFlags# rhs)
95 { return (lhs = static_cast<MiniObjectFlagscxx . . $ Gst/MiniObjectFlags#>(static_cast<unsigned>(lhs) & static_cast<unsigned>(rhs))); }
96
97 /** @ingroup gstreamermmEnums */
98 inline MiniObjectFlagscxx . . $ Gst/MiniObjectFlags#& operatorcxx . . $ Gst/`operator^=`(adae738579ba3a7b).^=(MiniObjectFlagscxx . . $ Gst/MiniObjectFlags#& lhs, MiniObjectFlagscxx . . $ Gst/MiniObjectFlags# rhs)
99 { return (lhs = static_cast<MiniObjectFlagscxx . . $ Gst/MiniObjectFlags#>(static_cast<unsigned>(lhs) ^ static_cast<unsigned>(rhs))); }
100
101 } // namespace Gst
102
103 #ifndef DOXYGEN_SHOULD_SKIP_THIS
104 namespace Glibcxx . . $ Glib/
105 {
106
107 template <>
108 class Valuecxx . . $ Glib/Value#<Gstcxx . . $ Gst/::MiniObjectFlagscxx . . $ Gst/MiniObjectFlags#> : public Glibcxx . . $ Glib/::Value_Flagscxx . . $ Glib/Value_Flags#<Gstcxx . . $ Gst/::MiniObjectFlagscxx . . $ Gst/MiniObjectFlags#>
109 {
110 public:
111 static GType value_typecxx . . $ Glib/Value#value_type(f708dce9a8856c70).() G_GNUC_CONSTcxx . . $ `<external>/12741050725406041920/gmacros.h:640:9`!;
112 };
113
114 } // namespace Glib
115 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
116
117 namespace Gstcxx . . $ Gst/
118 {
119
120 /**
121 * @var LockFlags LOCK_FLAG_READ
122 * Lock for read access.
123 *
124 * @var LockFlags LOCK_FLAG_WRITE
125 * Lock for write access.
126 *
127 * @var LockFlags LOCK_FLAG_EXCLUSIVE
128 * Lock for exclusive access.
129 *
130 * @var LockFlags LOCK_FLAG_LAST
131 * First flag that can be used for custom purposes.
132 *
133 * @enum LockFlags
134 *
135 * Flags used when locking miniobjects
136 *
137 * @ingroup gstreamermmEnums
138 * @par Bitwise operators:
139 * <tt>%LockFlags operator|(LockFlags, LockFlags)</tt><br>
140 * <tt>%LockFlags operator&(LockFlags, LockFlags)</tt><br>
141 * <tt>%LockFlags operator^(LockFlags, LockFlags)</tt><br>
142 * <tt>%LockFlags operator~(LockFlags)</tt><br>
143 * <tt>%LockFlags& operator|=(LockFlags&, LockFlags)</tt><br>
144 * <tt>%LockFlags& operator&=(LockFlags&, LockFlags)</tt><br>
145 * <tt>%LockFlags& operator^=(LockFlags&, LockFlags)</tt><br>
146 */
147 enum LockFlagscxx . . $ Gst/LockFlags#
148 {
149 LOCK_FLAG_READcxx . . $ Gst/LOCK_FLAG_READ. = (1 << 0),
150 LOCK_FLAG_WRITEcxx . . $ Gst/LOCK_FLAG_WRITE. = (1 << 1),
151 LOCK_FLAG_EXCLUSIVEcxx . . $ Gst/LOCK_FLAG_EXCLUSIVE. = (1 << 2),
152 LOCK_FLAG_LASTcxx . . $ Gst/LOCK_FLAG_LAST. = (1 << 8)
153 };
154
155 /** @ingroup gstreamermmEnums */
156 inline LockFlagscxx . . $ Gst/LockFlags# operatorcxx . . $ Gst/`operator|`(48ca2a946fe7905f).|(LockFlagscxx . . $ Gst/LockFlags# lhs, LockFlagscxx . . $ Gst/LockFlags# rhs)
157 { return static_cast<LockFlagscxx . . $ Gst/LockFlags#>(static_cast<unsigned>(lhs) | static_cast<unsigned>(rhs)); }
158
159 /** @ingroup gstreamermmEnums */
160 inline LockFlagscxx . . $ Gst/LockFlags# operatorcxx . . $ Gst/`operator&`(48ca2a946fe7905f).&(LockFlagscxx . . $ Gst/LockFlags# lhs, LockFlagscxx . . $ Gst/LockFlags# rhs)
161 { return static_cast<LockFlagscxx . . $ Gst/LockFlags#>(static_cast<unsigned>(lhs) & static_cast<unsigned>(rhs)); }
162
163 /** @ingroup gstreamermmEnums */
164 inline LockFlagscxx . . $ Gst/LockFlags# operatorcxx . . $ Gst/`operator^`(48ca2a946fe7905f).^(LockFlagscxx . . $ Gst/LockFlags# lhs, LockFlagscxx . . $ Gst/LockFlags# rhs)
165 { return static_cast<LockFlagscxx . . $ Gst/LockFlags#>(static_cast<unsigned>(lhs) ^ static_cast<unsigned>(rhs)); }
166
167 /** @ingroup gstreamermmEnums */
168 inline LockFlagscxx . . $ Gst/LockFlags# operatorcxx . . $ Gst/`operator~`(d63463bae78ca1a4).~(LockFlagscxx . . $ Gst/LockFlags# flags)
169 { return static_cast<LockFlagscxx . . $ Gst/LockFlags#>(~static_cast<unsigned>(flags)); }
170
171 /** @ingroup gstreamermmEnums */
172 inline LockFlagscxx . . $ Gst/LockFlags#& operatorcxx . . $ Gst/`operator|=`(fd3f8ccf41fe205a).|=(LockFlagscxx . . $ Gst/LockFlags#& lhs, LockFlagscxx . . $ Gst/LockFlags# rhs)
173 { return (lhs = static_cast<LockFlagscxx . . $ Gst/LockFlags#>(static_cast<unsigned>(lhs) | static_cast<unsigned>(rhs))); }
174
175 /** @ingroup gstreamermmEnums */
176 inline LockFlagscxx . . $ Gst/LockFlags#& operatorcxx . . $ Gst/`operator&=`(fd3f8ccf41fe205a).&=(LockFlagscxx . . $ Gst/LockFlags#& lhs, LockFlagscxx . . $ Gst/LockFlags# rhs)
177 { return (lhs = static_cast<LockFlagscxx . . $ Gst/LockFlags#>(static_cast<unsigned>(lhs) & static_cast<unsigned>(rhs))); }
178
179 /** @ingroup gstreamermmEnums */
180 inline LockFlagscxx . . $ Gst/LockFlags#& operatorcxx . . $ Gst/`operator^=`(fd3f8ccf41fe205a).^=(LockFlagscxx . . $ Gst/LockFlags#& lhs, LockFlagscxx . . $ Gst/LockFlags# rhs)
181 { return (lhs = static_cast<LockFlagscxx . . $ Gst/LockFlags#>(static_cast<unsigned>(lhs) ^ static_cast<unsigned>(rhs))); }
182
183 } // namespace Gst
184
185 #ifndef DOXYGEN_SHOULD_SKIP_THIS
186 namespace Glibcxx . . $ Glib/
187 {
188
189 template <>
190 class Valuecxx . . $ Glib/Value#<Gstcxx . . $ Gst/::LockFlagscxx . . $ Gst/LockFlags#> : public Glibcxx . . $ Glib/::Value_Flagscxx . . $ Glib/Value_Flags#<Gstcxx . . $ Gst/::LockFlagscxx . . $ Gst/LockFlags#>
191 {
192 public:
193 static GType value_typecxx . . $ Glib/Value#value_type(f708dce9a8856c70).() G_GNUC_CONSTcxx . . $ `<external>/12741050725406041920/gmacros.h:640:9`!;
194 };
195
196 } // namespace Glib
197 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
198
199 namespace Gstcxx . . $ Gst/
200 {
201
202
203 /** This is a base class for data which represents qdata.
204 */
205 class QuarkDatacxx . . $ Gst/QuarkData#
206 {
207 public:
208 virtual ~cxx . . $ Gst/QuarkData#`~QuarkData`(ced63f7c635d850d).QuarkDatacxx . . $ Gst/QuarkData#(){}
209 };
210
211 /** This is a base class for some gstreamermm objects.
212 * It is similar to Glib::Object but has no GObject property or signal support.
213 */
214 class MiniObjectcxx . . $ Gst/MiniObject#
215 {
216 public:
217 #ifndef DOXYGEN_SHOULD_SKIP_THIS
218 using CppObjectTypecxx . . $ Gst/MiniObject#CppObjectType# = MiniObjectcxx . . $ Gst/MiniObject#;
219 using BaseObjectTypecxx . . $ Gst/MiniObject#BaseObjectType# = GstMiniObject;
220 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
221
222
223 /** Increment the reference count for this object.
224 * You should never need to do this manually - use the object via a RefPtr instead.
225 */
226 void referencecxx . . $ Gst/MiniObject#reference(83f5f38750778ac8).() const;
227
228 /** Decrement the reference count for this object.
229 * You should never need to do this manually - use the object via a RefPtr instead.
230 */
231 void unreferencecxx . . $ Gst/MiniObject#unreference(83f5f38750778ac8).() const;
232
233 ///Provides access to the underlying C instance.
234 GstMiniObject* gobjcxx . . $ Gst/MiniObject#gobj(38f55b1ae576fab2).();
235
236 ///Provides access to the underlying C instance.
237 const GstMiniObject* gobjcxx . . $ Gst/MiniObject#gobj(2897744ae5effc52).() const;
238
239 ///Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
240 GstMiniObject* gobj_copycxx . . $ Gst/MiniObject#gobj_copy(f3d3780a908b226b).() const;
241
242 MiniObjectcxx . . $ Gst/MiniObject#MiniObject(49f6e7a06ebc5aa8).() = delete;
243
244 // noncopyable
245 MiniObjectcxx . . $ Gst/MiniObject#MiniObject(6291b40e76d48f2e).(const MiniObjectcxx . . $ Gst/MiniObject#&) = delete;
246 MiniObjectcxx . . $ Gst/MiniObject#& operatorcxx . . $ Gst/MiniObject#`operator=`(510c81139f0c383e).=(const MiniObjectcxx . . $ Gst/MiniObject#&) = delete;
247
248 protected:
249 // Do not derive this. Gst::MiniObject can neither be constructed nor deleted.
250
251 void operatorcxx . . $ Gst/MiniObject#`operator delete`(e819ef7a57397d90). delete(void*, stdcxx . . $ std/::size_tcxx . . $ std/size_t#);
252
253 private:
254
255
256 public:
257 typedef sigccxx . . $ sigc/::slotcxx . . $ sigc/slot#< void > SlotFinalizercxx . . $ Gst/MiniObject#SlotFinalizer#;
258
259 ~cxx . . $ Gst/MiniObject#`~MiniObject`(49f6e7a06ebc5aa8).MiniObjectcxx . . $ Gst/MiniObject#();
260 guint get_flagscxx . . $ Gst/MiniObject#get_flags(ddd8539a2fcdd4ce).() const;
261 void set_flagscxx . . $ Gst/MiniObject#set_flags(8e697350d7af5000).(const guint& value);
262
263 gint get_refcountcxx . . $ Gst/MiniObject#get_refcount(455f465bc33b4cdf).() const;
264
265 gint get_lockstatecxx . . $ Gst/MiniObject#get_lockstate(455f465bc33b4cdf).() const;
266
267
268 /** Lock the mini-object with the specified access mode in @a flags.
269 *
270 * @param flags Gst::LockFlags.
271 * @return <tt>true</tt> if @a object could be locked.
272 */
273 bool lockcxx . . $ Gst/MiniObject#lock(16b5b5ec7596633).(LockFlagscxx . . $ Gst/LockFlags# flags);
274
275 /** Unlock the mini-object with the specified access mode in @a flags.
276 *
277 * @param flags Gst::LockFlags.
278 */
279 void unlockcxx . . $ Gst/MiniObject#unlock(e0aa61a16a5bc008).(LockFlagscxx . . $ Gst/LockFlags# flags);
280
281 /** If @a mini_object has the LOCKABLE flag set, check if the current EXCLUSIVE
282 * lock on @a object is the only one, this means that changes to the object will
283 * not be visible to any other object.
284 *
285 * If the LOCKABLE flag is not set, check if the refcount of @a mini_object is
286 * exactly 1, meaning that no other reference exists to the object and that the
287 * object is therefore writable.
288 *
289 * Modification of a mini-object should only be done after verifying that it
290 * is writable.
291 *
292 * @return <tt>true</tt> if the object is writable.
293 */
294 bool is_writablecxx . . $ Gst/MiniObject#is_writable(50ce9a9e25b4a850).() const;
295
296
297 /** Checks if a mini-object is writable. If not, a writable copy is made and
298 * returned. This gives away the reference to the original mini object,
299 * and returns a reference to the new object.
300 *
301 * MT safe
302 * @return A mini-object (possibly the same pointer) that
303 * is writable.
304 */
305 Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<MiniObjectcxx . . $ Gst/MiniObject#> create_writablecxx . . $ Gst/MiniObject#create_writable(92f2c868643191bf).();
306
307 /** This sets an opaque, named pointer on a miniobject.
308 * The name is specified through a #GQuark (retrived e.g. via
309 * g_quark_from_static_string()), and the pointer
310 * can be gotten back with get_qdata().
311 * Setting a previously set user data pointer, overrides (frees)
312 * the old pointer set, using NULL as pointer essentially
313 * removes the data stored.
314 * @param quark a GQuark, naming the user data pointer.
315 * @param data an opaque user data pointer.
316 */
317 void set_qdatacxx . . $ Gst/MiniObject#set_qdata(62fe55a4e6c8b71b).(GQuark quark, QuarkDatacxx . . $ Gst/QuarkData# *data);
318
319
320 /** This function gets back user data pointers stored via
321 * set_qdata().
322 * @param quark a GQuark, naming the user data pointer.
323 * @return the user data pointer set, or NULL.
324 */
325 QuarkDatacxx . . $ Gst/QuarkData#* get_qdatacxx . . $ Gst/MiniObject#get_qdata(857201ba21ba23af).(GQuark quark) const;
326
327
328 /** This function gets back user data pointers stored via set_qdata()
329 * and removes the data from @a object without invoking its destroy() function (if
330 * any was set).
331 *
332 * @param quark A Quark, naming the user data pointer.
333 * @return The user data pointer set, or
334 * <tt>nullptr</tt>.
335 */
336 QuarkDatacxx . . $ Gst/QuarkData#* steal_qdatacxx . . $ Gst/MiniObject#steal_qdata(16d0b97e2a1afd59).(GQuark quark);
337
338 // Copying a mini object can be achieved by assignment.
339
340
341 /** Adds notifier when mini object is finalized
342 * @param slot notifier.
343 */
344 void add_finalize_notifiercxx . . $ Gst/MiniObject#add_finalize_notifier(c89ba1236a12ec8f).(const SlotFinalizercxx . . $ Gst/MiniObject#SlotFinalizer#& slot);
345
346 /** Remove finalize notifier
347 */
348 void remove_finalize_notifiercxx . . $ Gst/MiniObject#remove_finalize_notifier(49f6e7a06ebc5aa8).();
349
350
351 private:
352 // In this class non-static member cannot exists, so there is a map
353 // with key = gobj() and value = handler.
354 static stdcxx . . $ std/::mapcxx . . $ std/map#<GstMiniObject*, SlotFinalizercxx . . $ Gst/MiniObject#SlotFinalizer#*> finalizerscxx . . $ Gst/MiniObject#finalizers.;
355
356 static void destroy_qdatacxx . . $ Gst/MiniObject#destroy_qdata(5d22bdacc48458e8).(gpointer qdata);
357
358 static void MiniObject_Finalizer_gstreamermm_callbackcxx . . $ Gst/MiniObject#MiniObject_Finalizer_gstreamermm_callback(327c659357c44b77).(gpointer userdata, GstMiniObject *obj);
359
360
361 };
362
363 } // namespace Gst
364
365
366 namespace Glibcxx . . $ Glib/
367 {
368
369 /** A Glib::wrap() method for this object.
370 *
371 * @param object The C instance.
372 * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
373 * @result A C++ instance that wraps this C instance.
374 *
375 * @relates Gst::MiniObject
376 */
377 Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::MiniObjectcxx . . $ Gst/MiniObject#> wrapcxx . . $ Glib/wrap(413d5b330b2373be).(GstMiniObject* object, bool take_copy = false);
378
379 } // namespace Glib
380
381
382 #endif /* _GSTREAMERMM_MINIOBJECT_H */
383