enums.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 // Generated by gtkmmproc -- DO NOT MODIFY!
00003 #ifndef _GSTREAMERMM_ENUMS_H
00004 #define _GSTREAMERMM_ENUMS_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/gstminiobject.h>
00031 #include <gst/gstelement.h>
00032 
00033 
00034 namespace Gst
00035 {
00036 
00050 enum MiniObjectFlags
00051 {
00052   MINI_OBJECT_FLAG_READONLY = 1<<0,
00053   MINI_OBJECT_FLAG_LAST = 1<<4
00054 };
00055 
00057 inline MiniObjectFlags operator|(MiniObjectFlags lhs, MiniObjectFlags rhs)
00058   { return static_cast<MiniObjectFlags>(static_cast<unsigned>(lhs) | static_cast<unsigned>(rhs)); }
00059 
00061 inline MiniObjectFlags operator&(MiniObjectFlags lhs, MiniObjectFlags rhs)
00062   { return static_cast<MiniObjectFlags>(static_cast<unsigned>(lhs) & static_cast<unsigned>(rhs)); }
00063 
00065 inline MiniObjectFlags operator^(MiniObjectFlags lhs, MiniObjectFlags rhs)
00066   { return static_cast<MiniObjectFlags>(static_cast<unsigned>(lhs) ^ static_cast<unsigned>(rhs)); }
00067 
00069 inline MiniObjectFlags operator~(MiniObjectFlags flags)
00070   { return static_cast<MiniObjectFlags>(~static_cast<unsigned>(flags)); }
00071 
00073 inline MiniObjectFlags& operator|=(MiniObjectFlags& lhs, MiniObjectFlags rhs)
00074   { return (lhs = static_cast<MiniObjectFlags>(static_cast<unsigned>(lhs) | static_cast<unsigned>(rhs))); }
00075 
00077 inline MiniObjectFlags& operator&=(MiniObjectFlags& lhs, MiniObjectFlags rhs)
00078   { return (lhs = static_cast<MiniObjectFlags>(static_cast<unsigned>(lhs) & static_cast<unsigned>(rhs))); }
00079 
00081 inline MiniObjectFlags& operator^=(MiniObjectFlags& lhs, MiniObjectFlags rhs)
00082   { return (lhs = static_cast<MiniObjectFlags>(static_cast<unsigned>(lhs) ^ static_cast<unsigned>(rhs))); }
00083 
00084 } // namespace Gst
00085 
00086 
00087 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00088 namespace Glib
00089 {
00090 
00091 template <>
00092 class Value<Gst::MiniObjectFlags> : public Glib::Value_Flags<Gst::MiniObjectFlags>
00093 {
00094 public:
00095   static GType value_type() G_GNUC_CONST;
00096 };
00097 
00098 } // namespace Glib
00099 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00100 
00101 
00102 namespace Gst
00103 {
00104 
00108 enum State
00109 {
00110   STATE_VOID_PENDING,
00111   STATE_NULL,
00112   STATE_READY,
00113   STATE_PAUSED,
00114   STATE_PLAYING
00115 };
00116 
00117 } // namespace Gst
00118 
00119 
00120 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00121 namespace Glib
00122 {
00123 
00124 template <>
00125 class Value<Gst::State> : public Glib::Value_Enum<Gst::State>
00126 {
00127 public:
00128   static GType value_type() G_GNUC_CONST;
00129 };
00130 
00131 } // namespace Glib
00132 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00133 
00134 
00135 namespace Gst
00136 {
00137 
00138 
00139 } //namespace Gst
00140 
00141 
00142 #endif /* _GSTREAMERMM_ENUMS_H */
00143 

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