format.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 // Generated by gtkmmproc -- DO NOT MODIFY!
00003 #ifndef _GSTREAMERMM_FORMAT_H
00004 #define _GSTREAMERMM_FORMAT_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/gstformat.h>
00031 
00032 
00033 namespace Gst
00034 {
00035 
00041 enum Format
00042 {
00043   FORMAT_UNDEFINED,
00044   FORMAT_DEFAULT,
00045   FORMAT_BYTES,
00046   FORMAT_TIME,
00047   FORMAT_BUFFERS,
00048   FORMAT_PERCENT
00049 };
00050 
00051 } // namespace Gst
00052 
00053 
00054 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00055 namespace Glib
00056 {
00057 
00058 template <>
00059 class Value<Gst::Format> : public Glib::Value_Enum<Gst::Format>
00060 {
00061 public:
00062   static GType value_type() G_GNUC_CONST;
00063 };
00064 
00065 } // namespace Glib
00066 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00067 
00068 
00069 namespace Gst
00070 {
00071 
00072 
00076 struct FormatDefinition
00077 {
00079   Gst::Format         value;
00080 
00082   Glib::ustring       nick;
00083 
00085   Glib::ustring       description;
00086 
00088   Glib::QueryQuark    quark;
00089 };
00090 
00091 namespace Enums
00092 {
00093 
00099 Glib::ustring get_name(Format f);
00100 
00106 Glib::QueryQuark get_quark(Format f);
00107 
00108 } //namespace Enums
00109 
00116 Format get_format(const Glib::ustring& nick);
00117 
00124 bool get_details(Format format, FormatDefinition& def);
00125 
00126 } //namespace Gst
00127 
00128 
00129 #endif /* _GSTREAMERMM_FORMAT_H */
00130 

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