- Main Page
- Modules
- Namespaces
- Classes
- Files

# 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 /* 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/gstminiobject.h>
    00029 #include <gst/gstelement.h>
    00030
    00031
    00032 namespace Gst
    00033 {
    00034
    00048 enum MiniObjectFlags
    00049 {
    00050   MINI_OBJECT_FLAG_READONLY = 1<<0,
    00051   MINI_OBJECT_FLAG_LAST = 1<<4
    00052 };
    00053
    00055 inline MiniObjectFlags operator|(MiniObjectFlags lhs, MiniObjectFlags rhs)
    00056   { return static_cast<MiniObjectFlags>(static_cast<unsigned>(lhs) | static_cast<unsigned>(rhs)); }
    00057
    00059 inline MiniObjectFlags operator&(MiniObjectFlags lhs, MiniObjectFlags rhs)
    00060   { return static_cast<MiniObjectFlags>(static_cast<unsigned>(lhs) & static_cast<unsigned>(rhs)); }
    00061
    00063 inline MiniObjectFlags operator^(MiniObjectFlags lhs, MiniObjectFlags rhs)
    00064   { return static_cast<MiniObjectFlags>(static_cast<unsigned>(lhs) ^ static_cast<unsigned>(rhs)); }
    00065
    00067 inline MiniObjectFlags operator~(MiniObjectFlags flags)
    00068   { return static_cast<MiniObjectFlags>(~static_cast<unsigned>(flags)); }
    00069
    00071 inline MiniObjectFlags& operator|=(MiniObjectFlags& lhs, MiniObjectFlags rhs)
    00072   { return (lhs = static_cast<MiniObjectFlags>(static_cast<unsigned>(lhs) | static_cast<unsigned>(rhs))); }
    00073
    00075 inline MiniObjectFlags& operator&=(MiniObjectFlags& lhs, MiniObjectFlags rhs)
    00076   { return (lhs = static_cast<MiniObjectFlags>(static_cast<unsigned>(lhs) & static_cast<unsigned>(rhs))); }
    00077
    00079 inline MiniObjectFlags& operator^=(MiniObjectFlags& lhs, MiniObjectFlags rhs)
    00080   { return (lhs = static_cast<MiniObjectFlags>(static_cast<unsigned>(lhs) ^ static_cast<unsigned>(rhs))); }
    00081
    00082 } // namespace Gst
    00083
    00084
    00085 #ifndef DOXYGEN_SHOULD_SKIP_THIS
    00086 namespace Glib
    00087 {
    00088
    00089 template <>
    00090 class Value<Gst::MiniObjectFlags> : public Glib::Value_Flags<Gst::MiniObjectFlags>
    00091 {
    00092 public:
    00093   static GType value_type() G_GNUC_CONST;
    00094 };
    00095
    00096 } // namespace Glib
    00097 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
    00098
    00099
    00100 namespace Gst
    00101 {
    00102
    00106 enum State
    00107 {
    00108   STATE_VOID_PENDING,
    00109   STATE_NULL,
    00110   STATE_READY,
    00111   STATE_PAUSED,
    00112   STATE_PLAYING
    00113 };
    00114
    00115 } // namespace Gst
    00116
    00117
    00118 #ifndef DOXYGEN_SHOULD_SKIP_THIS
    00119 namespace Glib
    00120 {
    00121
    00122 template <>
    00123 class Value<Gst::State> : public Glib::Value_Enum<Gst::State>
    00124 {
    00125 public:
    00126   static GType value_type() G_GNUC_CONST;
    00127 };
    00128
    00129 } // namespace Glib
    00130 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
    00131
    00132
    00133 namespace Gst
    00134 {
    00135
    00136
    00137 } //namespace Gst
    00138
    00139
    00140 #endif /* _GSTREAMERMM_ENUMS_H */
    00141