parse.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 // Generated by gtkmmproc -- DO NOT MODIFY!
00003 #ifndef _GSTREAMERMM_PARSE_H
00004 #define _GSTREAMERMM_PARSE_H
00005 
00006 
00007 #include <glibmm.h>
00008 
00009 // -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 2 -*-
00010 
00011 /* gstreamermm - a C++ wrapper for gstreamer
00012  *
00013  * Copyright 2008 The gstreamermm Development Team
00014  *
00015  * This library is free software; you can redistribute it and/or
00016  * modify it under the terms of the GNU Library General Public
00017  * License as published by the Free Software Foundation; either
00018  * version 2 of the License, or (at your option) any later version.
00019  *
00020  * This library is distributed in the hope that it will be useful,
00021  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00022  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00023  * Library General Public License for more details.
00024  *
00025  * You should have received a copy of the GNU Library General Public
00026  * License along with this library; if not, write to the Free
00027  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00028  */
00029 
00030 #include <gst/gstparse.h>
00031 
00032 
00033 namespace Gst
00034 {
00035 
00036 class Element;
00037 
00048 class ParseError : public Glib::Error
00049 {
00050 public:
00051   enum Code
00052   {
00053     SYNTAX,
00054     NO_SUCH_ELEMENT,
00055     NO_SUCH_PROPERTY,
00056     LINK,
00057     COULD_NOT_SET_PROPERTY,
00058     EMPTY_BIN,
00059     EMPTY
00060   };
00061 
00062   ParseError(Code error_code, const Glib::ustring& error_message);
00063   explicit ParseError(GError* gobject);
00064   Code code() const;
00065 
00066 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00067 private:
00068 
00069 #ifdef GLIBMM_EXCEPTIONS_ENABLED
00070   static void throw_func(GError* gobject);
00071 #else
00072   //When not using exceptions, we just pass the Exception object around without throwing it:
00073   static std::auto_ptr<Glib::Error> throw_func(GError* gobject);
00074 #endif //GLIBMM_EXCEPTIONS_ENABLED
00075 
00076   friend void wrap_init(); // uses throw_func()
00077 #endif
00078 };
00079 
00080 } // namespace Gst
00081 
00082 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00083 namespace Glib
00084 {
00085 
00086 template <>
00087 class Value<Gst::ParseError::Code> : public Glib::Value_Enum<Gst::ParseError::Code>
00088 {
00089 public:
00090   static GType value_type() G_GNUC_CONST;
00091 };
00092 
00093 } // namespace Glib
00094 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00095 
00096 
00097 namespace Gst
00098 {
00099 
00100 
00105 class Parse
00106 {
00107 public:
00111   static Glib::QueryQuark error_quark();
00112 
00125 #ifdef GLIBMM_EXCEPTIONS_ENABLED
00126   static Glib::RefPtr<Element> launch(const Glib::ustring& pipeline_description);
00127 #else
00128   static Glib::RefPtr<Element> launch(const Glib::ustring& pipeline_description, std::auto_ptr<Glib::Error>& error);
00129 #endif //GLIBMM_EXCEPTIONS_ENABLED
00130 
00140 #ifdef GLIBMM_EXCEPTIONS_ENABLED
00141   static Glib::RefPtr<Element> launchv(const gchar *argv[]);
00142 #else
00143   static Glib::RefPtr<Element> launchv(const gchar *argv[], std::auto_ptr<Glib::Error>& error);
00144 #endif //GLIBMM_EXCEPTIONS_ENABLED
00145 
00163 #ifdef GLIBMM_EXCEPTIONS_ENABLED
00164   static Glib::RefPtr<Element> get_bin(const Glib::ustring& bin_description, bool ghost_unconnected_pads);
00165 #else
00166   static Glib::RefPtr<Element> get_bin(const Glib::ustring& bin_description, bool ghost_unconnected_pads, std::auto_ptr<Glib::Error>& error);
00167 #endif //GLIBMM_EXCEPTIONS_ENABLED
00168 };
00169 
00170 } // namespace Gst
00171 
00172 
00173 #endif /* _GSTREAMERMM_PARSE_H */
00174 

Generated on Sun Jul 27 17:07:20 2008 for gstreamermm by  doxygen 1.5.4