Debian Codegraph @

gstreamer/src/valuelist.hg

raw
1 /* gstreamermm - a C++ wrapper for gstreamer
2 *
3 * Copyright 2008 The gstreamermm Development Team
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free
17 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 */
19
20 #include <gst/gst.h>
21 #include <gst/gstvalue.h>
22 #include <glibmm/value.h>
23 #include <glibmm/value_custom.h>
24
25 _DEFS(gstreamermm,gst)
26
27 namespace Gst
28 {
29
30 class ValueList : public Glib::ValueBase
31 {
32 public:
33 /** Default constructor.
34 */
35 ValueList();
36
37 /** Get the GType for this class, for use with the underlying GObject type system.
38 */
39 static GType get_type() G_GNUC_CONST;
40
41 public:
42
43 /** Gets the number of values contained in @a value.
44 *
45 * @return The number of values.
46 */
47 guint size() const;
48
49 /** Gets the value that is a member of the list contained in @a value and
50 * has the index @a index.
51 *
52 * @param value A Value of type Gst::TYPE_LIST.
53 * @param index Index of value to get from the list.
54 * @return The value at the given index.
55 */
56 bool get(guint index, Glib::ValueBase& value) const;
57
58 /** Appends @a value to the ValueList.
59 *
60 * @param value The value to append.
61 */
62 Gst::ValueList& append(const Glib::ValueBase& value);
63
64 /** Prepends @a value to the ValueList.
65 *
66 * @param value The value to prepend.
67 */
68 Gst::ValueList& prepend(const Glib::ValueBase& value);
69
70 };
71
72 } //namespace Gst
73