| 1 | // Generated by gmmproc 2.50.1 -- DO NOT MODIFY!cxx . . $ `<file>/gstreamer/gstreamermm/parse.cc`/ |
| 2 | |
| 3 | |
| 4 | #include <glibmm.h> |
| 5 | |
| 6 | #include <gstreamermm/parse.h>cxx . . $ `<file>/gstreamer/gstreamermm/parse.h`/ |
| 7 | #include <gstreamermm/private/parse_p.h>cxx . . $ `<file>/gstreamer/gstreamermm/private/parse_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 | #include <gst/gst.h> |
| 30 | #include <gstreamermm/element.h>cxx . . $ `<file>/gstreamer/gstreamermm/element.h`/ |
| 31 | |
| 32 | namespace Gstcxx . . $ Gst/ |
| 33 | { |
| 34 | |
| 35 | Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Elementcxx . . $ Gst/Element#> Parsecxx . . $ Gst/Parse#::launchcxx . . $ Gst/Parse#launch(1ef5e1ee31814ad5).(const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& pipeline_description) |
| 36 | { |
| 37 | GError* gerror = nullptr; |
| 38 | Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Elementcxx . . $ Gst/Element#> retvalue = Glibcxx . . $ Glib/::wrapcxx . . $ Glib/wrap(4a5d42c130b18675).(gst_parse_launch(pipeline_description.c_strcxx . . $ Glib/ustring#c_str(a9f41ea0e82d88cf).(), &gerror)); |
| 39 | |
| 40 | if(gerror) |
| 41 | ::Glibcxx . . $ Glib/::Errorcxx . . $ Glib/Error#::throw_exceptioncxx . . $ Glib/Error#throw_exception(a52d1233dfa6cf57).(gerror); |
| 42 | |
| 43 | return retvaluecxx . . $ Glib/RefPtr#RefPtr(560c7fdd049cdfe1).; |
| 44 | } |
| 45 | |
| 46 | Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Elementcxx . . $ Gst/Element#> Parsecxx . . $ Gst/Parse#::launchvcxx . . $ Gst/Parse#launchv(ef06f9382197dab).(const gchar *argv[]) |
| 47 | { |
| 48 | GError* gerror = nullptr; |
| 49 | Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Elementcxx . . $ Gst/Element#> retvalue = Glibcxx . . $ Glib/::wrapcxx . . $ Glib/wrap(4a5d42c130b18675).(gst_parse_launchv(argv, &gerror)); |
| 50 | |
| 51 | if(gerror) |
| 52 | ::Glibcxx . . $ Glib/::Errorcxx . . $ Glib/Error#::throw_exceptioncxx . . $ Glib/Error#throw_exception(a52d1233dfa6cf57).(gerror); |
| 53 | |
| 54 | return retvaluecxx . . $ Glib/RefPtr#RefPtr(560c7fdd049cdfe1).; |
| 55 | } |
| 56 | |
| 57 | Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Elementcxx . . $ Gst/Element#> Parsecxx . . $ Gst/Parse#::create_bincxx . . $ Gst/Parse#create_bin(23f633bf53f6e42a).(const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& bin_description, bool ghost_unconnected_pads) |
| 58 | { |
| 59 | GError* gerror = nullptr; |
| 60 | Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Elementcxx . . $ Gst/Element#> retvalue = Glibcxx . . $ Glib/::wrapcxx . . $ Glib/wrap(4a5d42c130b18675).(gst_parse_bin_from_description(bin_description.c_strcxx . . $ Glib/ustring#c_str(a9f41ea0e82d88cf).(), ghost_unconnected_pads, &gerror)); |
| 61 | |
| 62 | if(gerror) |
| 63 | ::Glibcxx . . $ Glib/::Errorcxx . . $ Glib/Error#::throw_exceptioncxx . . $ Glib/Error#throw_exception(a52d1233dfa6cf57).(gerror); |
| 64 | |
| 65 | return retvaluecxx . . $ Glib/RefPtr#RefPtr(560c7fdd049cdfe1).; |
| 66 | } |
| 67 | |
| 68 | } //namespace Gst |
| 69 | |
| 70 | namespacecxx . . $ `$anonymous_namespace_gstreamer/gstreamermm/parse.cc`/ |
| 71 | { |
| 72 | } // anonymous namespace |
| 73 | |
| 74 | |
| 75 | Gstcxx . . $ Gst/::ParseErrorcxx . . $ Gst/ParseError#::ParseErrorcxx . . $ Gst/ParseError#ParseError(989384d35552a147).(Gstcxx . . $ Gst/::ParseErrorcxx . . $ Gst/ParseError#::Codecxx . . $ Gst/ParseError#Code# error_code, const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& error_message) |
| 76 | : |
| 77 | Glibcxx . . $ Glib/::Errorcxx . . $ Glib/Error# (GST_PARSE_ERRORcxx . . $ `<external>/17205998979873621746/gstparse.h:37:9`!, error_code, error_message) |
| 78 | {} |
| 79 | |
| 80 | Gstcxx . . $ Gst/::ParseErrorcxx . . $ Gst/ParseError#::ParseErrorcxx . . $ Gst/ParseError#ParseError(2ff7d11a2ecc01bd).(GError* gobject) |
| 81 | : |
| 82 | Glibcxx . . $ Glib/::Errorcxx . . $ Glib/Error# (gobject) |
| 83 | {} |
| 84 | |
| 85 | Gstcxx . . $ Gst/::ParseErrorcxx . . $ Gst/ParseError#::Codecxx . . $ Gst/ParseError#Code# Gstcxx . . $ Gst/::ParseErrorcxx . . $ Gst/ParseError#::codecxx . . $ Gst/ParseError#code(23e753bd21ab372c).() const |
| 86 | { |
| 87 | return static_cast<Codecxx . . $ Gst/ParseError#Code#>(Glibcxx . . $ Glib/::Errorcxx . . $ Glib/Error#::codecxx . . $ Glib/Error#code(455f465bc33b4cdf).()); |
| 88 | } |
| 89 | |
| 90 | void Gstcxx . . $ Gst/::ParseErrorcxx . . $ Gst/ParseError#::throw_funccxx . . $ Gst/ParseError#throw_func(2ff7d11a2ecc01bd).(GError* gobject) |
| 91 | { |
| 92 | throw Gstcxx . . $ Gst/::ParseErrorcxx . . $ Gst/ParseError#(gobject); |
| 93 | } |
| 94 | |
| 95 | // static |
| 96 | GType Glibcxx . . $ Glib/::Valuecxx . . $ Glib/Value#<Gst::ParseError::Code>::value_typecxx . . $ Glib/Value#value_type(f708dce9a8856c70).() |
| 97 | { |
| 98 | return gst_parse_error_get_type(); |
| 99 | } |
| 100 | |
| 101 |