#include <structure.h>
Public Types | |
typedef Structure | CppObjectType |
typedef GstStructure | BaseObjectType |
typedef sigc::slot< bool, GQuark, const GValue * > | ForeachSlot |
typedef sigc::slot< bool, GQuark, GValue * > | MapSlot |
Public Member Functions | |
Structure () | |
Structure (GstStructure *gobject, bool make_a_copy=true) | |
Structure (const Structure &other) | |
Structure & | operator= (const Structure &other) |
~Structure () | |
void | swap (Structure &other) |
GstStructure * | gobj () |
Provides access to the underlying C instance. | |
const GstStructure * | gobj () const |
Provides access to the underlying C instance. | |
GstStructure * | gobj_copy () const |
Provides access to the underlying C instance. The caller is responsible for freeing it. Use when directly setting fields in structs. | |
Structure (const Glib::ustring &name) | |
Structure (GQuark quark) | |
Structure (const GstStructure *castitem) | |
StructureValueProxy | operator[] (const Glib::ustring &fieldname) |
void | clear () |
int | size () const |
void | id_set_value (GQuark field, const Glib::ValueBase &value) |
void | set_value (const Glib::ustring &fieldname, const Glib::ValueBase &value) |
void | remove_field (const Glib::ustring &fieldname) |
GType | get_field_type (const Glib::ustring &fieldname) const |
bool | foreach (const ForeachSlot &slot) |
bool | has_field (const Glib::ustring &fieldname) const |
bool | has_field_typed (const Glib::ustring &fieldname, GType type) const |
bool | get_boolean (const Glib::ustring &fieldname, bool &value) const |
bool | get_int (const Glib::ustring &fieldname, int &value) const |
bool | get_uint (const Glib::ustring &fieldname, guint &value) const |
bool | get_fourcc (const Glib::ustring &fieldname, guint32 &value) const |
bool | get_double (const Glib::ustring &fieldname, double &value) const |
Glib::ustring | get_string (const Glib::ustring &fieldname) const |
bool | get_date (const Glib::ustring &fieldname, Glib::Date &value) const |
bool | get_clock_time (const Glib::ustring &fieldname, ClockTime &value) const |
bool | get_enum (const Glib::ustring &fieldname, GType enumtype, int &value) const |
bool | get_fraction (const Glib::ustring &fieldname, int &value_numerator, int &value_denominator) const |
bool | map_in_place (const MapSlot &slot) |
GQuark | get_name_id () const |
Glib::ustring | get_name () const |
bool | has_name (const Glib::ustring &name) const |
void | set_name (const Glib::ustring &name) |
Glib::ustring | to_string () const |
Glib::ustring | nth_field_name (guint index) const |
Static Public Member Functions | |
static GType | get_type () G_GNUC_CONST |
static Structure | create_from_string (const Glib::ustring &the_string) |
Protected Attributes | |
GstStructure * | gobject_ |
Related Functions | |
(Note that these are not member functions.) | |
void | swap (Structure &lhs, Structure &rhs) |
Gst::Structure | wrap (GstStructure *object, bool take_copy=false) |
typedef sigc::slot<bool, GQuark, const GValue*> Gst::Structure::ForeachSlot |
typedef sigc::slot<bool, GQuark, GValue*> Gst::Structure::MapSlot |
Gst::Structure::Structure | ( | ) |
Gst::Structure::Structure | ( | GstStructure * | gobject, | |
bool | make_a_copy = true | |||
) | [explicit] |
Gst::Structure::Structure | ( | const Structure & | other | ) |
Gst::Structure::~Structure | ( | ) |
Gst::Structure::Structure | ( | const Glib::ustring & | name | ) |
Gst::Structure::Structure | ( | GQuark | quark | ) |
Gst::Structure::Structure | ( | const GstStructure * | castitem | ) |
static GType Gst::Structure::get_type | ( | ) | [static] |
void Gst::Structure::swap | ( | Structure & | other | ) |
GstStructure* Gst::Structure::gobj | ( | ) | [inline] |
Provides access to the underlying C instance.
const GstStructure* Gst::Structure::gobj | ( | ) | const [inline] |
Provides access to the underlying C instance.
GstStructure* Gst::Structure::gobj_copy | ( | ) | const |
Provides access to the underlying C instance. The caller is responsible for freeing it. Use when directly setting fields in structs.
StructureValueProxy Gst::Structure::operator[] | ( | const Glib::ustring & | fieldname | ) |
void Gst::Structure::clear | ( | ) |
int Gst::Structure::size | ( | ) | const |
void Gst::Structure::id_set_value | ( | GQuark | field, | |
const Glib::ValueBase & | value | |||
) |
void Gst::Structure::set_value | ( | const Glib::ustring & | fieldname, | |
const Glib::ValueBase & | value | |||
) |
void Gst::Structure::remove_field | ( | const Glib::ustring & | fieldname | ) |
GType Gst::Structure::get_field_type | ( | const Glib::ustring & | fieldname | ) | const |
bool Gst::Structure::foreach | ( | const ForeachSlot & | slot | ) |
bool Gst::Structure::has_field | ( | const Glib::ustring & | fieldname | ) | const |
bool Gst::Structure::has_field_typed | ( | const Glib::ustring & | fieldname, | |
GType | type | |||
) | const |
bool Gst::Structure::get_boolean | ( | const Glib::ustring & | fieldname, | |
bool & | value | |||
) | const |
bool Gst::Structure::get_int | ( | const Glib::ustring & | fieldname, | |
int & | value | |||
) | const |
bool Gst::Structure::get_uint | ( | const Glib::ustring & | fieldname, | |
guint & | value | |||
) | const |
bool Gst::Structure::get_fourcc | ( | const Glib::ustring & | fieldname, | |
guint32 & | value | |||
) | const |
bool Gst::Structure::get_double | ( | const Glib::ustring & | fieldname, | |
double & | value | |||
) | const |
Glib::ustring Gst::Structure::get_string | ( | const Glib::ustring & | fieldname | ) | const |
bool Gst::Structure::get_date | ( | const Glib::ustring & | fieldname, | |
Glib::Date & | value | |||
) | const |
bool Gst::Structure::get_clock_time | ( | const Glib::ustring & | fieldname, | |
ClockTime & | value | |||
) | const |
bool Gst::Structure::get_enum | ( | const Glib::ustring & | fieldname, | |
GType | enumtype, | |||
int & | value | |||
) | const |
bool Gst::Structure::get_fraction | ( | const Glib::ustring & | fieldname, | |
int & | value_numerator, | |||
int & | value_denominator | |||
) | const |
bool Gst::Structure::map_in_place | ( | const MapSlot & | slot | ) |
static Structure Gst::Structure::create_from_string | ( | const Glib::ustring & | the_string | ) | [static] |
GQuark Gst::Structure::get_name_id | ( | ) | const |
Glib::ustring Gst::Structure::get_name | ( | ) | const |
bool Gst::Structure::has_name | ( | const Glib::ustring & | name | ) | const |
void Gst::Structure::set_name | ( | const Glib::ustring & | name | ) |
Glib::ustring Gst::Structure::to_string | ( | ) | const |
Glib::ustring Gst::Structure::nth_field_name | ( | guint | index | ) | const |
lhs | The left-hand side | |
rhs | The right-hand side |
Gst::Structure wrap | ( | GstStructure * | object, | |
bool | take_copy = false | |||
) | [related] |
A Glib::wrap() method for this object.
object | The C instance. | |
take_copy | False if the result should take ownership of the C instance. True if it should take a new copy or ref. |
GstStructure* Gst::Structure::gobject_ [protected] |