- Main Page
- Modules
- Namespaces
- Classes
- Files

- File List

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