Debian Codegraph @

gstreamer/gstreamermm/filesink.cc

raw symbols SCIP
1 // Generated by gmmproc 2.50.1 -- DO NOT MODIFY!
2
3
4 #include <gstreamermmconfig.h>
5 #ifndef GSTREAMERMM_DISABLE_DEPRECATED
6
7
8 #include <glibmm.h>
9
10 #include <gstreamermm/filesink.h>
11 #include <gstreamermm/private/filesink_p.h>
12
13
14 // Generated by generate_plugin_gmmproc_file. Don't edit this file.
15
16
17 extern "C"
18 {
19
20 static GType gst_file_sink_buffer_mode_get_type()
21 {
22 static GType const type = g_type_from_name("GstFileSinkBufferMode");
23 return type;
24 }
25
26 GType gst_file_sink_gstreamermm_get_type()
27 {
28 static GType type = 0;
29 GstElementFactory* factory = 0;
30 GstPluginFeature* feature = 0;
31
32 if(!type)
33 {
34 factory = gst_element_factory_find("filesink");
35 // Make sure that the feature is actually loaded:
36 if(factory)
37 {
38 feature =
39 gst_plugin_feature_load(GST_PLUGIN_FEATURE(factory));
40
41 g_object_unref(factory);
42 factory = GST_ELEMENT_FACTORY(feature);
43 type = gst_element_factory_get_element_type(factory);
44 g_object_unref(factory);
45 }
46 }
47
48 return type;
49 }
50
51 } // extern "C"
52
53 namespace Gst
54 {
55
56 FileSink::FileSink()
57 : // Mark this class as non-derived to allow C++ vfuncs to be skipped.
58 Glib::ObjectBase(nullptr),
59 Gst::BaseSink(Glib::ConstructParams(filesink_class_.init(), "name",static_cast<char*>(0), nullptr))
60 {}
61
62 FileSink::FileSink(const Glib::ustring& name)
63 : // Mark this class as non-derived to allow C++ vfuncs to be skipped.
64 Glib::ObjectBase(nullptr),
65 Gst::BaseSink(Glib::ConstructParams(filesink_class_.init(), "name",name.c_str(), nullptr))
66 {}
67
68 }
69
70 namespace
71 {
72 } // anonymous namespace
73
74 // static
75 GType Glib::Value<Gst::FileSinkBufferMode>::value_type()
76 {
77 return gst_file_sink_buffer_mode_get_type();
78 }
79
80
81 namespace Glib
82 {
83
84 Glib::RefPtr<Gst::FileSink> wrap(GstFileSink* object, bool take_copy)
85 {
86 return Glib::RefPtr<Gst::FileSink>( dynamic_cast<Gst::FileSink*> (Glib::wrap_auto ((GObject*)(object), take_copy)) );
87 //We use dynamic_cast<> in case of multiple inheritance.
88 }
89
90 } /* namespace Glib */
91
92
93 namespace Gst
94 {
95
96
97 /* The *_Class implementation: */
98
99 const Glib::Class& FileSink_Class::init()
100 {
101 if(!gtype_) // create the GType if necessary
102 {
103 // Glib::Class has to know the class init function to clone custom types.
104 class_init_func_ = &FileSink_Class::class_init_function;
105
106 // This is actually just optimized away, apparently with no harm.
107 // Make sure that the parent type has been created.
108 //CppClassParent::CppObjectType::get_type();
109
110 // Create the wrapper type, with the same class/instance size as the base type.
111 register_derived_type(gst_file_sink_gstreamermm_get_type());
112
113 // Add derived versions of interfaces, if the C type implements any interfaces:
114 Gst::URIHandler::add_interface(get_type());
115
116 }
117
118 return *this;
119 }
120
121
122 void FileSink_Class::class_init_function(void* g_class, void* class_data)
123 {
124 const auto klass = static_cast<BaseClassType*>(g_class);
125 CppClassParent::class_init_function(klass, class_data);
126
127
128 }
129
130
131 Glib::ObjectBase* FileSink_Class::wrap_new(GObject* object)
132 {
133 return new FileSink((GstFileSink*)object);
134 }
135
136
137 /* The implementation: */
138
139 GstFileSink* FileSink::gobj_copy()
140 {
141 reference();
142 return gobj();
143 }
144
145 FileSink::FileSink(const Glib::ConstructParams& construct_params)
146 :
147 Gst::BaseSink(construct_params)
148 {
149
150 }
151
152 FileSink::FileSink(GstFileSink* castitem)
153 :
154 Gst::BaseSink((GstBaseSink*)(castitem))
155 {}
156
157
158 FileSink::FileSink(FileSink&& src) noexcept
159 : Gst::BaseSink(std::move(src))
160 , Gst::URIHandler(std::move(src))
161 {}
162
163 FileSink& FileSink::operator=(FileSink&& src) noexcept
164 {
165 Gst::BaseSink::operator=(std::move(src));
166 Gst::URIHandler::operator=(std::move(src));
167 return *this;
168 }
169
170
171 FileSink::~FileSink() noexcept
172 {}
173
174
175 FileSink::CppClassType FileSink::filesink_class_; // initialize static member
176
177 GType FileSink::get_type()
178 {
179 return filesink_class_.init().get_type();
180 }
181
182
183 GType FileSink::get_base_type()
184 {
185 return gst_file_sink_gstreamermm_get_type();
186 }
187
188
189 Glib::RefPtr<FileSink> FileSink::create()
190 {
191 return Glib::RefPtr<FileSink>( new FileSink() );
192 }
193
194 Glib::RefPtr<FileSink> FileSink::create(const Glib::ustring& name)
195 {
196 return Glib::RefPtr<FileSink>( new FileSink(name) );
197 }
198
199
200 Glib::PropertyProxy< Glib::ustring > FileSink::property_location()
201 {
202 return Glib::PropertyProxy< Glib::ustring >(this, "location");
203 }
204
205 Glib::PropertyProxy_ReadOnly< Glib::ustring > FileSink::property_location() const
206 {
207 return Glib::PropertyProxy_ReadOnly< Glib::ustring >(this, "location");
208 }
209
210 Glib::PropertyProxy< Gst::FileSinkBufferMode > FileSink::property_buffer_mode()
211 {
212 return Glib::PropertyProxy< Gst::FileSinkBufferMode >(this, "buffer-mode");
213 }
214
215 Glib::PropertyProxy_ReadOnly< Gst::FileSinkBufferMode > FileSink::property_buffer_mode() const
216 {
217 return Glib::PropertyProxy_ReadOnly< Gst::FileSinkBufferMode >(this, "buffer-mode");
218 }
219
220 Glib::PropertyProxy< guint > FileSink::property_buffer_size()
221 {
222 return Glib::PropertyProxy< guint >(this, "buffer-size");
223 }
224
225 Glib::PropertyProxy_ReadOnly< guint > FileSink::property_buffer_size() const
226 {
227 return Glib::PropertyProxy_ReadOnly< guint >(this, "buffer-size");
228 }
229
230 Glib::PropertyProxy< bool > FileSink::property_append()
231 {
232 return Glib::PropertyProxy< bool >(this, "append");
233 }
234
235 Glib::PropertyProxy_ReadOnly< bool > FileSink::property_append() const
236 {
237 return Glib::PropertyProxy_ReadOnly< bool >(this, "append");
238 }
239
240
241 } // namespace Gst
242
243 #endif // GSTREAMERMM_DISABLE_DEPRECATED
244
245