QtGStreamer 1.2.0
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | List of all members
QGlib::ValueVTable Struct Reference

#include <value.h>

Collaboration diagram for QGlib::ValueVTable:
Collaboration graph
[legend]

Public Types

typedef void(* SetFunction) (Value &value, const void *data)
 
typedef void(* GetFunction) (const Value &value, void *data)
 

Public Member Functions

 ValueVTable (SetFunction s, GetFunction g)
 

Public Attributes

SetFunction set
 
GetFunction get
 

Detailed Description

This structure holds the set and get methods that are used internally by Value to handle data of a specific type. If you want to provide support for a custom type, you need to write two such methods, create a new ValueVTable instance that holds pointers to them and register it using Value::registerValueVTable().

See also
Value Design

Definition at line 44 of file value.h.

Member Typedef Documentation

◆ SetFunction

typedef void(* QGlib::ValueVTable::SetFunction) (Value &value, const void *data)

Definition at line 46 of file value.h.

◆ GetFunction

typedef void(* QGlib::ValueVTable::GetFunction) (const Value &value, void *data)

Definition at line 47 of file value.h.

Constructor & Destructor Documentation

◆ ValueVTable() [1/2]

QGlib::ValueVTable::ValueVTable ( )
inline

Definition at line 49 of file value.h.

◆ ValueVTable() [2/2]

QGlib::ValueVTable::ValueVTable ( SetFunction  s,
GetFunction  g 
)
inline

Definition at line 50 of file value.h.

Member Data Documentation

◆ set

SetFunction QGlib::ValueVTable::set

Definition at line 52 of file value.h.

◆ get

GetFunction QGlib::ValueVTable::get

Definition at line 53 of file value.h.


The documentation for this struct was generated from the following file: