| 1 | // Generated by gmmproc 2.50.1 -- DO NOT MODIFY! |
| 2 | |
| 3 | |
| 4 | #include <glibmm.h> |
| 5 | |
| 6 | #include <gstreamermm/valuelist.h> |
| 7 | #include <gstreamermm/private/valuelist_p.h> |
| 8 | |
| 9 | |
| 10 | /* gstreamermm - a C++ wrapper for gstreamer |
| 11 | * |
| 12 | * Copyright 2008 The gstreamermm Development Team |
| 13 | * |
| 14 | * This library is free software; you can redistribute it and/or |
| 15 | * modify it under the terms of the GNU Lesser General Public |
| 16 | * License as published by the Free Software Foundation; either |
| 17 | * version 2.1 of the License, or (at your option) any later version. |
| 18 | * |
| 19 | * This library is distributed in the hope that it will be useful, |
| 20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 22 | * Lesser General Public License for more details. |
| 23 | * |
| 24 | * You should have received a copy of the GNU Lesser General Public |
| 25 | * License along with this library; if not, write to the Free |
| 26 | * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| 27 | */ |
| 28 | |
| 29 | namespace Gst |
| 30 | { |
| 31 | |
| 32 | ValueList::ValueList() |
| 33 | {} |
| 34 | |
| 35 | // static |
| 36 | GType ValueList::get_type() |
| 37 | { |
| 38 | return GST_TYPE_LIST; |
| 39 | } |
| 40 | |
| 41 | guint ValueList::size() const |
| 42 | { |
| 43 | return gst_value_list_get_size(gobj()); |
| 44 | } |
| 45 | |
| 46 | bool ValueList::get(guint index, Glib::ValueBase& value) const |
| 47 | { |
| 48 | const GValue* g_value = gst_value_list_get_value(gobj(), index); |
| 49 | |
| 50 | if(g_value) |
| 51 | { |
| 52 | value.init(g_value); |
| 53 | return true; |
| 54 | } |
| 55 | else |
| 56 | return false; |
| 57 | } |
| 58 | |
| 59 | Gst::ValueList& ValueList::append(const Glib::ValueBase& value) |
| 60 | { |
| 61 | gst_value_list_append_value(gobj(), value.gobj()); |
| 62 | return *this; |
| 63 | } |
| 64 | |
| 65 | Gst::ValueList& ValueList::prepend(const Glib::ValueBase& value) |
| 66 | { |
| 67 | gst_value_list_prepend_value(gobj(), value.gobj()); |
| 68 | return *this; |
| 69 | } |
| 70 | |
| 71 | |
| 72 | } // Glib namespace |
| 73 | |
| 74 | namespace |
| 75 | { |
| 76 | } // anonymous namespace |
| 77 | |
| 78 |