EVOLUTION-MANAGER
Edit File: classOGRStyleMgr.html
<!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"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.5"/> <title>OGR: OGRStyleMgr Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">OGR </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.5 --> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <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><!-- top --> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> | <a href="classOGRStyleMgr-members.html">List of all members</a> </div> <div class="headertitle"> <div class="title">OGRStyleMgr Class Reference</div> </div> </div><!--header--> <div class="contents"> <p><code>#include <<a class="el" href="ogr__featurestyle_8h_source.html">ogr_featurestyle.h</a>></code></p> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr class="memitem:abdd3e0eab4c6733e92ddaaf7c69639e5"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRStyleMgr.html#abdd3e0eab4c6733e92ddaaf7c69639e5">OGRStyleMgr</a> (<a class="el" href="classOGRStyleTable.html">OGRStyleTable</a> *poDataSetStyleTable=NULL)</td></tr> <tr class="memdesc:abdd3e0eab4c6733e92ddaaf7c69639e5"><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <a href="#abdd3e0eab4c6733e92ddaaf7c69639e5">More...</a><br/></td></tr> <tr class="separator:abdd3e0eab4c6733e92ddaaf7c69639e5"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a534a68c59c66901a6fc01d72130337ae"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRStyleMgr.html#a534a68c59c66901a6fc01d72130337ae">~OGRStyleMgr</a> ()</td></tr> <tr class="memdesc:a534a68c59c66901a6fc01d72130337ae"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#a534a68c59c66901a6fc01d72130337ae">More...</a><br/></td></tr> <tr class="separator:a534a68c59c66901a6fc01d72130337ae"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a22060a3fce80f8b7cb30702f388af335"><td class="memItemLeft" align="right" valign="top">GBool </td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRStyleMgr.html#a22060a3fce80f8b7cb30702f388af335">SetFeatureStyleString</a> (<a class="el" href="classOGRFeature.html">OGRFeature</a> *, const char *pszStyleString=NULL, GBool bNoMatching=FALSE)</td></tr> <tr class="memdesc:a22060a3fce80f8b7cb30702f388af335"><td class="mdescLeft"> </td><td class="mdescRight">Set a style in a feature. <a href="#a22060a3fce80f8b7cb30702f388af335">More...</a><br/></td></tr> <tr class="separator:a22060a3fce80f8b7cb30702f388af335"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:adadbb0a44c3ca3bd11801ee64568d2a6"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRStyleMgr.html#adadbb0a44c3ca3bd11801ee64568d2a6">InitFromFeature</a> (<a class="el" href="classOGRFeature.html">OGRFeature</a> *)</td></tr> <tr class="memdesc:adadbb0a44c3ca3bd11801ee64568d2a6"><td class="mdescLeft"> </td><td class="mdescRight">Initialize style manager from the style string of a feature. <a href="#adadbb0a44c3ca3bd11801ee64568d2a6">More...</a><br/></td></tr> <tr class="separator:adadbb0a44c3ca3bd11801ee64568d2a6"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a0d9d942d7cd5335b82dd4a764cb9ef73"><td class="memItemLeft" align="right" valign="top">GBool </td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRStyleMgr.html#a0d9d942d7cd5335b82dd4a764cb9ef73">InitStyleString</a> (const char *pszStyleString=NULL)</td></tr> <tr class="memdesc:a0d9d942d7cd5335b82dd4a764cb9ef73"><td class="mdescLeft"> </td><td class="mdescRight">Initialize style manager from the style string. <a href="#a0d9d942d7cd5335b82dd4a764cb9ef73">More...</a><br/></td></tr> <tr class="separator:a0d9d942d7cd5335b82dd4a764cb9ef73"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ad1dca451c9afa2da8075fbaa31fac68a"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRStyleMgr.html#ad1dca451c9afa2da8075fbaa31fac68a">GetStyleName</a> (const char *pszStyleString=NULL)</td></tr> <tr class="memdesc:ad1dca451c9afa2da8075fbaa31fac68a"><td class="mdescLeft"> </td><td class="mdescRight">Get the name of a style from the style table. <a href="#ad1dca451c9afa2da8075fbaa31fac68a">More...</a><br/></td></tr> <tr class="separator:ad1dca451c9afa2da8075fbaa31fac68a"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a731c9a3ac493f00e911f1879a45db4a2"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRStyleMgr.html#a731c9a3ac493f00e911f1879a45db4a2">GetStyleByName</a> (const char *pszStyleName)</td></tr> <tr class="memdesc:a731c9a3ac493f00e911f1879a45db4a2"><td class="mdescLeft"> </td><td class="mdescRight">find a style in the current style table. <a href="#a731c9a3ac493f00e911f1879a45db4a2">More...</a><br/></td></tr> <tr class="separator:a731c9a3ac493f00e911f1879a45db4a2"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a7f6c3dcb19e0803ebc3aae61467e00f0"><td class="memItemLeft" align="right" valign="top">GBool </td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRStyleMgr.html#a7f6c3dcb19e0803ebc3aae61467e00f0">AddStyle</a> (const char *pszStyleName, const char *pszStyleString=NULL)</td></tr> <tr class="memdesc:a7f6c3dcb19e0803ebc3aae61467e00f0"><td class="mdescLeft"> </td><td class="mdescRight">Add a style to the current style table. <a href="#a7f6c3dcb19e0803ebc3aae61467e00f0">More...</a><br/></td></tr> <tr class="separator:a7f6c3dcb19e0803ebc3aae61467e00f0"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:acd7910d9bcfa26dcd53fe7ecb7591901"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRStyleMgr.html#acd7910d9bcfa26dcd53fe7ecb7591901">GetStyleString</a> (<a class="el" href="classOGRFeature.html">OGRFeature</a> *=NULL)</td></tr> <tr class="memdesc:acd7910d9bcfa26dcd53fe7ecb7591901"><td class="mdescLeft"> </td><td class="mdescRight">Get the style string from the style manager. <a href="#acd7910d9bcfa26dcd53fe7ecb7591901">More...</a><br/></td></tr> <tr class="separator:acd7910d9bcfa26dcd53fe7ecb7591901"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a3b893dd11e0f009fca53bf42d16abf47"><td class="memItemLeft" align="right" valign="top">GBool </td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRStyleMgr.html#a3b893dd11e0f009fca53bf42d16abf47">AddPart</a> (<a class="el" href="classOGRStyleTool.html">OGRStyleTool</a> *)</td></tr> <tr class="memdesc:a3b893dd11e0f009fca53bf42d16abf47"><td class="mdescLeft"> </td><td class="mdescRight">Add a part (style tool) to the current style. <a href="#a3b893dd11e0f009fca53bf42d16abf47">More...</a><br/></td></tr> <tr class="separator:a3b893dd11e0f009fca53bf42d16abf47"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a7d83035d1f5dfd4a529360fadaae41a4"><td class="memItemLeft" align="right" valign="top">GBool </td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRStyleMgr.html#a7d83035d1f5dfd4a529360fadaae41a4">AddPart</a> (const char *)</td></tr> <tr class="memdesc:a7d83035d1f5dfd4a529360fadaae41a4"><td class="mdescLeft"> </td><td class="mdescRight">Add a part (style string) to the current style. <a href="#a7d83035d1f5dfd4a529360fadaae41a4">More...</a><br/></td></tr> <tr class="separator:a7d83035d1f5dfd4a529360fadaae41a4"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a111f5e714f48ebd937473e1eea28867c"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRStyleMgr.html#a111f5e714f48ebd937473e1eea28867c">GetPartCount</a> (const char *pszStyleString=NULL)</td></tr> <tr class="memdesc:a111f5e714f48ebd937473e1eea28867c"><td class="mdescLeft"> </td><td class="mdescRight">Get the number of parts in a style. <a href="#a111f5e714f48ebd937473e1eea28867c">More...</a><br/></td></tr> <tr class="separator:a111f5e714f48ebd937473e1eea28867c"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a06b9ff4d26e1d7a19dc4f79e52160416"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classOGRStyleTool.html">OGRStyleTool</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classOGRStyleMgr.html#a06b9ff4d26e1d7a19dc4f79e52160416">GetPart</a> (int hPartId, const char *pszStyleString=NULL)</td></tr> <tr class="memdesc:a06b9ff4d26e1d7a19dc4f79e52160416"><td class="mdescLeft"> </td><td class="mdescRight">Fetch a part (style tool) from the current style. <a href="#a06b9ff4d26e1d7a19dc4f79e52160416">More...</a><br/></td></tr> <tr class="separator:a06b9ff4d26e1d7a19dc4f79e52160416"><td class="memSeparator" colspan="2"> </td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> <div class="textblock"><p>This class represents a style manager </p> </div><h2 class="groupheader">Constructor & Destructor Documentation</h2> <a class="anchor" id="abdd3e0eab4c6733e92ddaaf7c69639e5"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">OGRStyleMgr::OGRStyleMgr </td> <td>(</td> <td class="paramtype"><a class="el" href="classOGRStyleTable.html">OGRStyleTable</a> * </td> <td class="paramname"><em>poDataSetStyleTable</em> = <code>NULL</code></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Constructor. </p> <p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#aba4d31b48c3c9ea6c1edbe4f0aa65866" title="OGRStyleMgr factory. ">OGR_SM_Create()</a></p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">poDataSetStyleTable</td><td>(currently unused, reserved for future use), pointer to <a class="el" href="classOGRStyleTable.html">OGRStyleTable</a>. Pass NULL for now. </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="a534a68c59c66901a6fc01d72130337ae"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">OGRStyleMgr::~OGRStyleMgr </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Destructor. </p> <p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#a474fca7d9327da916305ec1276a57443" title="Destroy Style Manager. ">OGR_SM_Destroy()</a> </p> </div> </div> <h2 class="groupheader">Member Function Documentation</h2> <a class="anchor" id="a3b893dd11e0f009fca53bf42d16abf47"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">GBool OGRStyleMgr::AddPart </td> <td>(</td> <td class="paramtype"><a class="el" href="classOGRStyleTool.html">OGRStyleTool</a> * </td> <td class="paramname"><em>poStyleTool</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Add a part (style tool) to the current style. </p> <p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#af358ec087124f355fca02bf33a1e0027" title="Add a part (style tool) to the current style. ">OGR_SM_AddPart()</a>.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">poStyleTool</td><td>the style tool defining the part to add.</td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>TRUE on success, FALSE on errors. </dd></dl> <p>References <a class="el" href="cpl__conv_8h.html#a464d6861faf9f6272317d160a3ad9a81">CPLStrdup()</a>.</p> </div> </div> <a class="anchor" id="a7d83035d1f5dfd4a529360fadaae41a4"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">GBool OGRStyleMgr::AddPart </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"><em>pszPart</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Add a part (style string) to the current style. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">pszPart</td><td>the style string defining the part to add.</td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>TRUE on success, FALSE on errors. </dd></dl> <p>References <a class="el" href="cpl__conv_8h.html#a464d6861faf9f6272317d160a3ad9a81">CPLStrdup()</a>.</p> </div> </div> <a class="anchor" id="a7f6c3dcb19e0803ebc3aae61467e00f0"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">GBool OGRStyleMgr::AddStyle </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"><em>pszStyleName</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const char * </td> <td class="paramname"><em>pszStyleString</em> = <code>NULL</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Add a style to the current style table. </p> <p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#a358c1558e61951b2e1e338ead8401ad8" title="Add a style to the current style table. ">OGR_SM_AddStyle()</a>.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">pszStyleName</td><td>the name of the style to add. </td></tr> <tr><td class="paramname">pszStyleString</td><td>the style string to use, or NULL to use the style stored in the manager.</td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>TRUE on success, FALSE on errors. </dd></dl> <p>References <a class="el" href="classOGRStyleTable.html#aff722d3fc7c167259dd79986a2574993">OGRStyleTable::AddStyle()</a>.</p> </div> </div> <a class="anchor" id="a06b9ff4d26e1d7a19dc4f79e52160416"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classOGRStyleTool.html">OGRStyleTool</a> * OGRStyleMgr::GetPart </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"><em>nPartId</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const char * </td> <td class="paramname"><em>pszStyleString</em> = <code>NULL</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Fetch a part (style tool) from the current style. </p> <p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#a61d4e04abb6e3c59ed570c62dffc4164" title="Fetch a part (style tool) from the current style. ">OGR_SM_GetPart()</a>.</p> <p>This method instanciates a new object that should be freed with <a class="el" href="ogr__api_8h.html#a5d1ecf398ee062f3f5a297f70244497a" title="Destroy Style Tool. ">OGR_ST_Destroy()</a>.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">nPartId</td><td>the part number (0-based index). </td></tr> <tr><td class="paramname">pszStyleString</td><td>(optional) the style string on which to operate. If NULL then the current style string stored in the style manager is used.</td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd><a class="el" href="classOGRStyleTool.html">OGRStyleTool</a> of the requested part (style tools) or NULL on error. </dd></dl> <p>References <a class="el" href="cpl__string_8h.html#a5a39b9c5896a273cc6f06c1d5be93238">CSLDestroy()</a>, and <a class="el" href="cpl__string_8h.html#a36f1e4efb0da65e3d900d3a0ce8cbaab">CSLTokenizeString2()</a>.</p> </div> </div> <a class="anchor" id="a111f5e714f48ebd937473e1eea28867c"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int OGRStyleMgr::GetPartCount </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"><em>pszStyleString</em> = <code>NULL</code></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Get the number of parts in a style. </p> <p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#ad272704a535c0fa8cfd7b097eb4968dc" title="Get the number of parts in a style. ">OGR_SM_GetPartCount()</a>.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">pszStyleString</td><td>(optional) the style string on which to operate. If NULL then the current style string stored in the style manager is used.</td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>the number of parts (style tools) in the style. </dd></dl> </div> </div> <a class="anchor" id="a731c9a3ac493f00e911f1879a45db4a2"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const char * OGRStyleMgr::GetStyleByName </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"><em>pszStyleName</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>find a style in the current style table. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">pszStyleName</td><td>the name of the style to add.</td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>the style string matching the name or NULL if not found or error. </dd></dl> <p>References <a class="el" href="classOGRStyleTable.html#a83347c8a447e454b825784c8f7ce1661">OGRStyleTable::Find()</a>.</p> <p>Referenced by <a class="el" href="classOGRStyleMgr.html#a0d9d942d7cd5335b82dd4a764cb9ef73">InitStyleString()</a>.</p> </div> </div> <a class="anchor" id="ad1dca451c9afa2da8075fbaa31fac68a"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const char * OGRStyleMgr::GetStyleName </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"><em>pszStyleString</em> = <code>NULL</code></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Get the name of a style from the style table. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">pszStyleString</td><td>the style to search for, or NULL to use the style currently stored in the manager.</td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>The name if found, or NULL on error. </dd></dl> <p>References <a class="el" href="classOGRStyleTable.html#afc78310da48449b9f6a79d20d73e5944">OGRStyleTable::GetStyleName()</a>.</p> <p>Referenced by <a class="el" href="classOGRStyleMgr.html#a22060a3fce80f8b7cb30702f388af335">SetFeatureStyleString()</a>.</p> </div> </div> <a class="anchor" id="acd7910d9bcfa26dcd53fe7ecb7591901"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const char * OGRStyleMgr::GetStyleString </td> <td>(</td> <td class="paramtype"><a class="el" href="classOGRFeature.html">OGRFeature</a> * </td> <td class="paramname"><em>poFeature</em> = <code>NULL</code></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Get the style string from the style manager. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">poFeature</td><td>feature object from which to read the style or NULL to get the style string stored in the manager.</td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>the style string stored in the feature or the style string stored in the style manager if poFeature is NULL</dd></dl> <p>NOTE: this method will call <a class="el" href="classOGRStyleMgr.html#adadbb0a44c3ca3bd11801ee64568d2a6" title="Initialize style manager from the style string of a feature. ">OGRStyleMgr::InitFromFeature()</a> if poFeature is not NULL and replace the style string stored in the style manager </p> <p>References <a class="el" href="classOGRStyleMgr.html#adadbb0a44c3ca3bd11801ee64568d2a6">InitFromFeature()</a>.</p> </div> </div> <a class="anchor" id="adadbb0a44c3ca3bd11801ee64568d2a6"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const char * OGRStyleMgr::InitFromFeature </td> <td>(</td> <td class="paramtype"><a class="el" href="classOGRFeature.html">OGRFeature</a> * </td> <td class="paramname"><em>poFeature</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Initialize style manager from the style string of a feature. </p> <p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#afca737ee6586ce8078b52108707b0b6a" title="Initialize style manager from the style string of a feature. ">OGR_SM_InitFromFeature()</a>.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">poFeature</td><td>feature object from which to read the style.</td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>a reference to the style string read from the feature, or NULL in case of error.. </dd></dl> <p>References <a class="el" href="classOGRFeature.html#a54c179e53eb6eddb657dd392a87cccab">OGRFeature::GetStyleString()</a>, and <a class="el" href="classOGRStyleMgr.html#a0d9d942d7cd5335b82dd4a764cb9ef73">InitStyleString()</a>.</p> <p>Referenced by <a class="el" href="classOGRStyleMgr.html#acd7910d9bcfa26dcd53fe7ecb7591901">GetStyleString()</a>.</p> </div> </div> <a class="anchor" id="a0d9d942d7cd5335b82dd4a764cb9ef73"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">GBool OGRStyleMgr::InitStyleString </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"><em>pszStyleString</em> = <code>NULL</code></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Initialize style manager from the style string. </p> <p>This method is the same as the C function <a class="el" href="ogr__api_8h.html#ade49bffec1e796ddf4419f5cbe34fda8" title="Initialize style manager from the style string. ">OGR_SM_InitStyleString()</a>.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">pszStyleString</td><td>the style string to use (can be NULL).</td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>TRUE on success, FALSE on errors. </dd></dl> <p>References <a class="el" href="cpl__conv_8h.html#a464d6861faf9f6272317d160a3ad9a81">CPLStrdup()</a>, and <a class="el" href="classOGRStyleMgr.html#a731c9a3ac493f00e911f1879a45db4a2">GetStyleByName()</a>.</p> <p>Referenced by <a class="el" href="classOGRStyleMgr.html#adadbb0a44c3ca3bd11801ee64568d2a6">InitFromFeature()</a>.</p> </div> </div> <a class="anchor" id="a22060a3fce80f8b7cb30702f388af335"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">GBool OGRStyleMgr::SetFeatureStyleString </td> <td>(</td> <td class="paramtype"><a class="el" href="classOGRFeature.html">OGRFeature</a> * </td> <td class="paramname"><em>poFeature</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const char * </td> <td class="paramname"><em>pszStyleString</em> = <code>NULL</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">GBool </td> <td class="paramname"><em>bNoMatching</em> = <code>FALSE</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Set a style in a feature. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">poFeature</td><td>the feature object to store the style in </td></tr> <tr><td class="paramname">pszStyleString</td><td>the style to store </td></tr> <tr><td class="paramname">bNoMatching</td><td>TRUE to lookup the style in the style table and add the name to the feature</td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>TRUE on success, FALSE on error. </dd></dl> <p>References <a class="el" href="classOGRStyleMgr.html#ad1dca451c9afa2da8075fbaa31fac68a">GetStyleName()</a>, and <a class="el" href="classOGRFeature.html#a5d2c15d00845820e6382d48227ed7ff7">OGRFeature::SetStyleString()</a>.</p> </div> </div> <hr/>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="ogr__featurestyle_8h_source.html">ogr_featurestyle.h</a></li> <li>ogrfeaturestyle.cpp</li> </ul> </div><!-- contents --> <hr> Generated for GDAL by <a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.8.5. </body> </html>