Logo Search packages:      
Sourcecode: qt-gstreamer version File versions  Download package

Public Member Functions | Static Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | Friends | Related Functions

QGst::Structure Class Reference

Wrapper for GstStructure. More...

#include <QGst/Structure>

Inheritance diagram for QGst::Structure:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 Data ()
 Data (const Data &other)
QString fieldName (unsigned int fieldNumber) const
QGlib::Type fieldType (const char *fieldName) const
bool hasField (const char *fieldName) const
bool hasFieldTyped (const char *fieldName, QGlib::Type type) const
bool isValid () const
QString name () const
unsigned int numberOfFields () const
 operator const GstStructure * () const
 operator GstStructure * ()
Structureoperator= (const Structure &other)
void removeAllFields ()
void removeField (const char *fieldName)
void setName (const char *name)
void setValue (const char *fieldName, const QGlib::Value &value)
template<typename T >
void setValue (const char *fieldName, const T &value)
 Structure (const Structure &other)
 Structure (const GstStructure *structure)
 Structure (const char *name)
QString toString () const
QGlib::Value value (const char *fieldName) const

Static Public Member Functions

static Structure fromString (const char *str)
static Structure fromString (const QString &str)

Public Attributes

GstStructure * structure

Private Member Functions

QTGSTREAMER_NO_EXPORT Structure (Data *data)

Private Attributes

QSharedDataPointer< Data > d

Friends

class SharedStructure

Related Functions

(Note that these are not member functions.)


QTGSTREAMER_EXPORT QDebug operator<< (QDebug debug, const Structure &structure)

Detailed Description

Wrapper for GstStructure.

A Structure is a collection of key/value pairs. 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.

To use a Structure, you must first give it a name, either on the constructor or using the setName() method. Afterwards, you can set values with setValue() and retrieve them with value().

Structure is also serializable. You can use toString() to serialize it into a string and fromString() to deserialize it.

Note:
This class is implicitly shared.
See also:
SharedStructure

Definition at line 32 of file structure.cpp.


The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index