Valadoc | Vala | Tutorial | API-References | Markup

Structure


Object Hierarchy:

Object hierarchy for Structure

Description:

[ Immutable ]
public class Structure

A Structure is a collection of key/value pairs. The keys are expressed as GQuarks and the values can be of any GType. In addition to the key/value pairs, a Structure also has a name. The name starts with a letter and can be folled by letters, numbers and any of "/-_.:". Structure is used by various GStreamer subsystems to store information in a flexible and extensible way. A Structure does not have a refcount because it usually is part of a higher level object such as Caps. It provides a means to enforce mutability using the refcount of the parent with the set_parent_refcount method. A Structure can be created with Structure.empty or Structure, which both take a name and an optional set of key/value pairs along with the types of the values. Field values can be changed with set_value or set. Field values can be retrieved with get_value or the more convenient gst_structure_get_*() functions. Fields can be removed with remove_field or remove_fields. Strings in structures must be ASCII or UTF-8 encoded. Other encodings are not allowed. Strings must not be empty either, but may be NULL. Last reviewed on 2009-06-08 (0.10.23)


Namespace: Gst
Package: gstreamer-0.10

Content:

Static methods:

Creation methods:

Methods: