#include <QGst/Structure>
Public Member Functions | |
Structure (const char *name) | |
Structure (const GstStructure *structure) | |
Structure (const Structure &other) | |
Structure & | operator= (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) |
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.
Definition at line 49 of file structure.h.
|
related |
Definition at line 258 of file structure.cpp.