gstreamermm  0.10.11
Public Member Functions | Static Public Member Functions
Gst::QueryPosition Class Reference

A stream position query object. More...

Inheritance diagram for Gst::QueryPosition:
Inheritance graph
[legend]
Collaboration diagram for Gst::QueryPosition:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 QueryPosition (GstQuery* query)
void set (Format format, gint64 position)
 Answer a position query by setting the requested value in the given format.
void parse (Format& format, gint64& position) const
 Parse a position query, writing the format into format, and the position into position.
gint64 parse () const
 Parse the position of a position query, returning the position.
Format parse_format () const
 Parse the format of a position query, returning the format.

Static Public Member Functions

static Glib::RefPtr
< Gst::QueryPosition
create (Format format)
 Constructs a new query stream position query object.

Detailed Description

A stream position query object.

See create() for more details.


Constructor & Destructor Documentation

Gst::QueryPosition::QueryPosition ( GstQuery *  query) [explicit]

Member Function Documentation

Constructs a new query stream position query object.

A position query is used to query the current position of playback in the streams, in some format.

Parameters:
formatThe default Gst::Format for the new query.
Returns:
The new Gst::QueryPosition.
void Gst::QueryPosition::parse ( Format format,
gint64 &  position 
) const

Parse a position query, writing the format into format, and the position into position.

Use the other parse() methods for parsing individual values.

Parameters:
formatThe storage for the Gst::Format of the position values.
positionThe storage for the current position.
gint64 Gst::QueryPosition::parse ( ) const

Parse the position of a position query, returning the position.

Returns:
The current position of the position query.

Parse the format of a position query, returning the format.

Returns:
The the Gst::Format of the position values.
void Gst::QueryPosition::set ( Format  format,
gint64  position 
)

Answer a position query by setting the requested value in the given format.

Parameters:
formatThe requested Gst::Format.
positionThe position to set.

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