<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>gstreamermm: Gst::QueryPosition Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.6.1 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div class="navpath"><a class="el" href="namespaceGst.html">Gst</a>::<a class="el" href="classGst_1_1QueryPosition.html">QueryPosition</a> </div> </div> <div class="contents"> <h1>Gst::QueryPosition Class Reference</h1><!-- doxytag: class="Gst::QueryPosition" --><!-- doxytag: inherits="Gst::Query" --> <p>A stream position query object. <a href="#_details">More...</a></p> <p>Inherits <a class="el" href="classGst_1_1Query.html">Gst::Query</a>.</p> <div class="dynheader"> Collaboration diagram for Gst::QueryPosition:</div> <div class="dynsection"> <div class="center"><img src="classGst_1_1QueryPosition__coll__graph.png" border="0" usemap="#Gst_1_1QueryPosition_coll__map" alt="Collaboration graph"/></div> <map name="Gst_1_1QueryPosition_coll__map" id="Gst_1_1QueryPosition_coll__map"> <area shape="rect" href="classGst_1_1Query.html" title="Gst::Query - Classes used to perform queries on pads and elements." alt="" coords="28,83,113,112"/><area shape="rect" href="classMiniObject.html" title="MiniObject" alt="" coords="29,5,112,35"/></map> <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div> <p><a href="classGst_1_1QueryPosition-members.html">List of all members.</a></p> <table border="0" cellpadding="0" cellspacing="0"> <tr><td colspan="2"><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGst_1_1QueryPosition.html#a4b798d124223e73fc1b06cd89865ce99">QueryPosition</a> (GstQuery* query)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGst_1_1QueryPosition.html#a5b181628b630ec5ac20118a2edb518c1">set</a> (<a class="el" href="group__gstreamermmEnums.html#ga9aeb4c7c49680888ff819ac95fb13cff">Format</a> format, gint64 position)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Answer a position query by setting the requested value in the given format. <a href="#a5b181628b630ec5ac20118a2edb518c1"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGst_1_1QueryPosition.html#a81c740fe3aba1ce4111ac6bbfe25cf2b">parse</a> (<a class="el" href="group__gstreamermmEnums.html#ga9aeb4c7c49680888ff819ac95fb13cff">Format</a>& format, gint64& position) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="classGst_1_1Parse.html" title="Gst::Parse - Get a pipeline from a text pipeline description.">Parse</a> a position query, writing the format into format, and the position into <em>position</em>. <a href="#a81c740fe3aba1ce4111ac6bbfe25cf2b"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">gint64 </td><td class="memItemRight" valign="bottom"><a class="el" href="classGst_1_1QueryPosition.html#a5b02751f528eca4fea250ef012d3279b">parse</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="classGst_1_1Parse.html" title="Gst::Parse - Get a pipeline from a text pipeline description.">Parse</a> the position of a position query, returning the position. <a href="#a5b02751f528eca4fea250ef012d3279b"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__gstreamermmEnums.html#ga9aeb4c7c49680888ff819ac95fb13cff">Format</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGst_1_1QueryPosition.html#a5d4f16d51167e2e6a0ecb856811409ae">parse_format</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="classGst_1_1Parse.html" title="Gst::Parse - Get a pipeline from a text pipeline description.">Parse</a> the format of a position query, returning the format. <a href="#a5d4f16d51167e2e6a0ecb856811409ae"></a><br/></td></tr> <tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">static <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGst_1_1Query.html">Gst::Query</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGst_1_1QueryPosition.html#a5fb818eddf628c17011c97d38d97c7fb">create</a> (<a class="el" href="group__gstreamermmEnums.html#ga9aeb4c7c49680888ff819ac95fb13cff">Format</a> format)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructs a new query stream position query object. <a href="#a5fb818eddf628c17011c97d38d97c7fb"></a><br/></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p>A stream position query object. </p> <p>See <a class="el" href="classGst_1_1QueryPosition.html#a5fb818eddf628c17011c97d38d97c7fb" title="Constructs a new query stream position query object.">create()</a> for more details. </p> <hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="a4b798d124223e73fc1b06cd89865ce99"></a><!-- doxytag: member="Gst::QueryPosition::QueryPosition" ref="a4b798d124223e73fc1b06cd89865ce99" args="(GstQuery *query)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">Gst::QueryPosition::QueryPosition </td> <td>(</td> <td class="paramtype">GstQuery * </td> <td class="paramname"> <em>query</em></td> <td> ) </td> <td><code> [explicit]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="a5fb818eddf628c17011c97d38d97c7fb"></a><!-- doxytag: member="Gst::QueryPosition::create" ref="a5fb818eddf628c17011c97d38d97c7fb" args="(Format format)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGst_1_1Query.html">Gst::Query</a>> Gst::QueryPosition::create </td> <td>(</td> <td class="paramtype"><a class="el" href="group__gstreamermmEnums.html#ga9aeb4c7c49680888ff819ac95fb13cff">Format</a> </td> <td class="paramname"> <em>format</em></td> <td> ) </td> <td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Constructs a new query stream position query object. </p> <p>A position query is used to query the current position of playback in the streams, in some format. </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>format</em> </td><td>The default <a class="el" href="group__gstreamermmEnums.html#ga9aeb4c7c49680888ff819ac95fb13cff">Gst::Format</a> for the new query. </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>The new <a class="el" href="classGst_1_1QueryPosition.html" title="A stream position query object.">Gst::QueryPosition</a>. </dd></dl> </div> </div> <a class="anchor" id="a5b02751f528eca4fea250ef012d3279b"></a><!-- doxytag: member="Gst::QueryPosition::parse" ref="a5b02751f528eca4fea250ef012d3279b" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">gint64 Gst::QueryPosition::parse </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p><a class="el" href="classGst_1_1Parse.html" title="Gst::Parse - Get a pipeline from a text pipeline description.">Parse</a> the position of a position query, returning the position. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>The current position of the position query. </dd></dl> </div> </div> <a class="anchor" id="a81c740fe3aba1ce4111ac6bbfe25cf2b"></a><!-- doxytag: member="Gst::QueryPosition::parse" ref="a81c740fe3aba1ce4111ac6bbfe25cf2b" args="(Format &format, gint64 &position) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gst::QueryPosition::parse </td> <td>(</td> <td class="paramtype"><a class="el" href="group__gstreamermmEnums.html#ga9aeb4c7c49680888ff819ac95fb13cff">Format</a>& </td> <td class="paramname"> <em>format</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">gint64 & </td> <td class="paramname"> <em>position</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td> const</td> </tr> </table> </div> <div class="memdoc"> <p><a class="el" href="classGst_1_1Parse.html" title="Gst::Parse - Get a pipeline from a text pipeline description.">Parse</a> a position query, writing the format into format, and the position into <em>position</em>. </p> <p>Use the other <a class="el" href="classGst_1_1QueryPosition.html#a81c740fe3aba1ce4111ac6bbfe25cf2b" title="Parse a position query, writing the format into format, and the position into position...">parse()</a> methods for parsing individual values. </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>format</em> </td><td>The storage for the <a class="el" href="group__gstreamermmEnums.html#ga9aeb4c7c49680888ff819ac95fb13cff">Gst::Format</a> of the position values. </td></tr> <tr><td valign="top"></td><td valign="top"><em>position</em> </td><td>The storage for the current position. </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="a5d4f16d51167e2e6a0ecb856811409ae"></a><!-- doxytag: member="Gst::QueryPosition::parse_format" ref="a5d4f16d51167e2e6a0ecb856811409ae" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="group__gstreamermmEnums.html#ga9aeb4c7c49680888ff819ac95fb13cff">Format</a> Gst::QueryPosition::parse_format </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p><a class="el" href="classGst_1_1Parse.html" title="Gst::Parse - Get a pipeline from a text pipeline description.">Parse</a> the format of a position query, returning the format. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>The the <a class="el" href="group__gstreamermmEnums.html#ga9aeb4c7c49680888ff819ac95fb13cff">Gst::Format</a> of the position values. </dd></dl> </div> </div> <a class="anchor" id="a5b181628b630ec5ac20118a2edb518c1"></a><!-- doxytag: member="Gst::QueryPosition::set" ref="a5b181628b630ec5ac20118a2edb518c1" args="(Format format, gint64 position)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gst::QueryPosition::set </td> <td>(</td> <td class="paramtype"><a class="el" href="group__gstreamermmEnums.html#ga9aeb4c7c49680888ff819ac95fb13cff">Format</a> </td> <td class="paramname"> <em>format</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">gint64 </td> <td class="paramname"> <em>position</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Answer a position query by setting the requested value in the given format. </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>format</em> </td><td>The requested <a class="el" href="group__gstreamermmEnums.html#ga9aeb4c7c49680888ff819ac95fb13cff">Gst::Format</a>. </td></tr> <tr><td valign="top"></td><td valign="top"><em>position</em> </td><td>The position to set. </td></tr> </table> </dd> </dl> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li>gstreamermm/query.h</li> </ul> </div> <hr size="1"/><address style="text-align: right;"><small>Generated on Mon Sep 21 22:33:00 2009 for gstreamermm by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address> </body> </html>