Debian Codegraph @

gstreamer/gstreamermm/parse.h

raw symbols SCIP
1 // Generated by gmmproc 2.50.1 -- DO NOT MODIFY!cxx . . $ `<file>/gstreamer/gstreamermm/parse.h`/
2 #ifndef _GSTREAMERMM_PARSE_H
3 #define _GSTREAMERMM_PARSE_Hcxx . . $ `gstreamer/gstreamermm/parse.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
30
31 namespace Gstcxx . . $ Gst/
32 {
33
34 class Elementcxx . . $ Gst/Element#;
35
36 /** The different parsing errors that can occur.
37 *
38 * - SYNTAX - A syntax error occured.
39 * - NO_SUCH_ELEMENT - The description contained an unknown element
40 * - NO_SUCH_PROPERTY - An element did not have a specified property
41 * - LINK - There was an error linking two pads.
42 * - COULD_NOT_SET_PROPERTY - There was an error setting a property
43 * - EMPTY_BIN - An empty bin was specified.
44 * - EMPTY - An empty description was specified
45 */
46 class ParseErrorcxx . . $ Gst/ParseError# : public Glibcxx . . $ Glib/::Errorcxx . . $ Glib/Error#
47 {
48 public:
49 /** @var Code SYNTAX
50 * A syntax error occurred.
51 *
52 * @var Code NO_SUCH_ELEMENT
53 * The description contained an unknown element.
54 *
55 * @var Code NO_SUCH_PROPERTY
56 * An element did not have a specified property.
57 *
58 * @var Code LINK
59 * There was an error linking two pads.
60 *
61 * @var Code COULD_NOT_SET_PROPERTY
62 * There was an error setting a property.
63 *
64 * @var Code EMPTY_BIN
65 * An empty bin was specified.
66 *
67 * @var Code EMPTY
68 * An empty description was specified.
69 *
70 * @var Code DELAYED_LINK
71 * A delayed link did not get resolved.
72 *
73 * @enum Code
74 *
75 * The different parsing errors that can occur.
76 */
77 enum Codecxx . . $ Gst/ParseError#Code#
78 {
79 SYNTAXcxx . . $ Gst/ParseError#SYNTAX.,
80 NO_SUCH_ELEMENTcxx . . $ Gst/ParseError#NO_SUCH_ELEMENT.,
81 NO_SUCH_PROPERTYcxx . . $ Gst/ParseError#NO_SUCH_PROPERTY.,
82 LINKcxx . . $ Gst/ParseError#LINK.,
83 COULD_NOT_SET_PROPERTYcxx . . $ Gst/ParseError#COULD_NOT_SET_PROPERTY.,
84 EMPTY_BINcxx . . $ Gst/ParseError#EMPTY_BIN.,
85 EMPTYcxx . . $ Gst/ParseError#EMPTY.,
86 DELAYED_LINKcxx . . $ Gst/ParseError#DELAYED_LINK.
87 };
88
89 ParseErrorcxx . . $ Gst/ParseError#ParseError(989384d35552a147).(Codecxx . . $ Gst/ParseError#Code# error_code, const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& error_message);
90 explicit ParseErrorcxx . . $ Gst/ParseError#ParseError(2ff7d11a2ecc01bd).(GError* gobject);
91 Codecxx . . $ Gst/ParseError#Code# codecxx . . $ Gst/ParseError#code(23e753bd21ab372c).() const;
92
93 #ifndef DOXYGEN_SHOULD_SKIP_THIS
94 private:
95
96 static void throw_funccxx . . $ Gst/ParseError#throw_func(2ff7d11a2ecc01bd).(GError* gobject);
97
98 friend void wrap_initcxx . . $ Gst/wrap_init(49f6e7a06ebc5aa8).(); // uses throw_func()
99
100 #endif //DOXYGEN_SHOULD_SKIP_THIS
101 };
102
103 } // namespace Gst
104
105 #ifndef DOXYGEN_SHOULD_SKIP_THIS
106 namespace Glibcxx . . $ Glib/
107 {
108
109 template <>
110 class Valuecxx . . $ Glib/Value#<Gstcxx . . $ Gst/::ParseErrorcxx . . $ Gst/ParseError#::Codecxx . . $ Gst/ParseError#Code#> : public Glibcxx . . $ Glib/::Value_Enumcxx . . $ Glib/Value_Enum#<Gstcxx . . $ Gst/::ParseErrorcxx . . $ Gst/ParseError#::Codecxx . . $ Gst/ParseError#Code#>
111 {
112 public:
113 static GType value_typecxx . . $ Glib/Value#value_type(f708dce9a8856c70).() G_GNUC_CONSTcxx . . $ `gstreamer/gstreamermm/wrap_init.cc:9:9`!;
114 };
115
116 } // namespace Glib
117 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
118
119 namespace Gstcxx . . $ Gst/
120 {
121
122
123 /** A class that gets a pipeline from a text pipeline description.
124 * The methods in this class allow to create a pipeline based on the syntax
125 * used in the gst-launch utillity.
126 */
127 class Parsecxx . . $ Gst/Parse#
128 {
129 public:
130 /** Get the error quark used by the parsing subsystem.
131 * @return The quark of the parse errors.
132 */
133 static Glibcxx . . $ Glib/::QueryQuarkcxx . . $ Glib/QueryQuark# error_quarkcxx . . $ Gst/Parse#error_quark(e5f625668f9128e2).();
134
135 /** Create a new pipeline based on command line syntax. Please note that you
136 * might get a return value that is not a null RefPtr<> even though the error
137 * is set. In this case there was a recoverable parsing error and you can try
138 * to play the pipeline.
139 * @param pipeline_description The command line describing the pipeline.
140 * @return A new element on success, a null RefPtr<> on failure. If more than
141 * one toplevel element is specified by the pipeline_description, all
142 * elements are put into a Gst::Pipeline, which than is returned.
143 * @throw Gst::CoreError
144 * @throw Gst::ParseError
145 */
146 static Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Elementcxx . . $ Gst/Element#> launchcxx . . $ Gst/Parse#launch(1ef5e1ee31814ad5).(const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& pipeline_description);
147
148 /** Create a new element based on command line syntax. An error does not
149 * mean that the pipeline could not be constructed.
150 * @param argv null-terminated array of arguments.
151 * specified.
152 * @return A new element on success and null on failure.
153 * @throw Gst::CoreError
154 * @throw Gst::ParseError
155 */
156 static Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Elementcxx . . $ Gst/Element#> launchvcxx . . $ Gst/Parse#launchv(ef06f9382197dab).(const gchar *argv[]);
157
158 /** This is a convenience wrapper around launch() to create a Gst::Bin from a
159 * gst-launch-style pipeline description. See launch() and the gst-launch man
160 * page for details about the syntax. Ghost pads on the bin for unconnected
161 * source or sink pads within the bin can automatically be created (but only
162 * a maximum of one ghost pad for each direction will be created; if you
163 * expect multiple unconnected source pads or multiple unconnected sink pads
164 * and want them all ghosted, you will have to create the ghost pads
165 * yourself).
166 *
167 * @param bin_description Command line describing the bin.
168 * @param ghost_unconnected_pads Whether to automatically create ghost pads
169 * for unconnected source or sink pads within the bin.
170 * @return A newly-created bin, or a null RefPtr<> if an error occurred.
171 * @throw Gst::CoreError
172 * @throw Gst::ParseError
173 */
174 static Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Elementcxx . . $ Gst/Element#> create_bincxx . . $ Gst/Parse#create_bin(23f633bf53f6e42a).(const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& bin_description, bool ghost_unconnected_pads);
175 };
176
177 } // namespace Gst
178
179
180 #endif /* _GSTREAMERMM_PARSE_H */
181