Debian Codegraph @

gstreamer/gstreamermm/error.cc

raw symbols SCIP
1 // Generated by gmmproc 2.50.1 -- DO NOT MODIFY!
2
3
4 #include <glibmm.h>
5
6 #include <gstreamermm/error.h>
7 #include <gstreamermm/private/error_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
31 namespace Gst
32 {
33
34 Glib::QueryQuark get_core_error_quark()
35 {
36 return gst_core_error_quark();
37 }
38
39 Glib::QueryQuark get_library_error_quark()
40 {
41 return gst_library_error_quark();
42 }
43
44 Glib::QueryQuark get_resource_error_quark()
45 {
46 return gst_resource_error_quark();
47 }
48
49 Glib::QueryQuark get_stream_error_quark()
50 {
51 return gst_stream_error_quark();
52 }
53
54 } // namespace Gst
55
56 namespace
57 {
58 } // anonymous namespace
59
60
61 Gst::CoreError::CoreError(Gst::CoreError::Code error_code, const Glib::ustring& error_message)
62 :
63 Glib::Error (GST_CORE_ERROR, error_code, error_message)
64 {}
65
66 Gst::CoreError::CoreError(GError* gobject)
67 :
68 Glib::Error (gobject)
69 {}
70
71 Gst::CoreError::Code Gst::CoreError::code() const
72 {
73 return static_cast<Code>(Glib::Error::code());
74 }
75
76 void Gst::CoreError::throw_func(GError* gobject)
77 {
78 throw Gst::CoreError(gobject);
79 }
80
81
82 Gst::LibraryError::LibraryError(Gst::LibraryError::Code error_code, const Glib::ustring& error_message)
83 :
84 Glib::Error (GST_LIBRARY_ERROR, error_code, error_message)
85 {}
86
87 Gst::LibraryError::LibraryError(GError* gobject)
88 :
89 Glib::Error (gobject)
90 {}
91
92 Gst::LibraryError::Code Gst::LibraryError::code() const
93 {
94 return static_cast<Code>(Glib::Error::code());
95 }
96
97 void Gst::LibraryError::throw_func(GError* gobject)
98 {
99 throw Gst::LibraryError(gobject);
100 }
101
102
103 Gst::ResourceError::ResourceError(Gst::ResourceError::Code error_code, const Glib::ustring& error_message)
104 :
105 Glib::Error (GST_RESOURCE_ERROR, error_code, error_message)
106 {}
107
108 Gst::ResourceError::ResourceError(GError* gobject)
109 :
110 Glib::Error (gobject)
111 {}
112
113 Gst::ResourceError::Code Gst::ResourceError::code() const
114 {
115 return static_cast<Code>(Glib::Error::code());
116 }
117
118 void Gst::ResourceError::throw_func(GError* gobject)
119 {
120 throw Gst::ResourceError(gobject);
121 }
122
123
124 Gst::StreamError::StreamError(Gst::StreamError::Code error_code, const Glib::ustring& error_message)
125 :
126 Glib::Error (GST_STREAM_ERROR, error_code, error_message)
127 {}
128
129 Gst::StreamError::StreamError(GError* gobject)
130 :
131 Glib::Error (gobject)
132 {}
133
134 Gst::StreamError::Code Gst::StreamError::code() const
135 {
136 return static_cast<Code>(Glib::Error::code());
137 }
138
139 void Gst::StreamError::throw_func(GError* gobject)
140 {
141 throw Gst::StreamError(gobject);
142 }
143
144