QtGStreamer  1.2.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | Static Public Member Functions | Related Functions | List of all members
QGst::Structure Class Reference

#include <QGst/Structure>

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

Public Member Functions

 Structure (const char *name)
 
 Structure (const GstStructure *structure)
 
 Structure (const Structure &other)
 
Structureoperator= (const Structure &other)
 
bool isValid () const
 
QString name () const
 
void setName (const char *name)
 
QGlib::Value value (const char *fieldName) const
 
template<typename T >
void setValue (const char *fieldName, const T &value)
 
void setValue (const char *fieldName, const QGlib::Value &value)
 
unsigned int numberOfFields () const
 
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
 
void removeField (const char *fieldName)
 
void removeAllFields ()
 
QString toString () const
 
 operator GstStructure * ()
 
 operator const GstStructure * () const
 

Static Public Member Functions

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

Related Functions

(Note that these are not member functions.)

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 49 of file structure.h.

Friends And Related Function Documentation

QDebug operator<< ( QDebug  debug,
const Structure structure 
)
related

Definition at line 258 of file structure.cpp.


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