<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>Yate: NamedString Class Reference</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> <link href="tabs.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.5.7.1 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</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> <li><a href="files.html"><span>Files</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="namespaceTelEngine.html">TelEngine</a>::<a class="el" href="classTelEngine_1_1NamedString.html">NamedString</a> </div> </div> <div class="contents"> <h1>NamedString Class Reference</h1><!-- doxytag: class="TelEngine::NamedString" --><!-- doxytag: inherits="TelEngine::String" -->A named string class. <a href="#_details">More...</a> <p> <code>#include <<a class="el" href="yateclass_8h-source.html">yateclass.h</a>></code> <p> <div class="dynheader"> Inheritance diagram for NamedString:</div> <div class="dynsection"> <p><center><img src="classTelEngine_1_1NamedString.png" usemap="#NamedString_map" border="0" alt=""></center> <map name="NamedString_map"> <area href="classTelEngine_1_1String.html" alt="String" shape="rect" coords="59,56,167,80"> <area href="classTelEngine_1_1GenObject.html" alt="GenObject" shape="rect" coords="59,0,167,24"> <area href="classTelEngine_1_1MimeHeaderLine.html" alt="MimeHeaderLine" shape="rect" coords="0,168,108,192"> <area href="classTelEngine_1_1NamedPointer.html" alt="NamedPointer" shape="rect" coords="118,168,226,192"> <area href="classTelEngine_1_1MimeAuthLine.html" alt="MimeAuthLine" shape="rect" coords="0,224,108,248"> </map> </div> <p> <a href="classTelEngine_1_1NamedString-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classTelEngine_1_1NamedString.html#8af9cfe48be3fe5422fb2b25ea0830f7">NamedString</a> (const char *name, const char *value=0)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="classTelEngine_1_1String.html">String</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classTelEngine_1_1NamedString.html#b31e7357671cfe484e3c3ed3cd6258e4">name</a> () const </td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const <a class="el" href="classTelEngine_1_1String.html">String</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classTelEngine_1_1NamedString.html#4a7bd56fb99593ace9379ed699f2719c">toString</a> () const </td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void * </td><td class="memItemRight" valign="bottom"><a class="el" href="classTelEngine_1_1NamedString.html#aa71c3294b1a073c3ad0b64a2ed6325a">getObject</a> (const <a class="el" href="classTelEngine_1_1String.html">String</a> &name) const </td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classTelEngine_1_1NamedString.html">NamedString</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classTelEngine_1_1NamedString.html#712071aa5629d4eafe0b276d9c4c8baa">operator=</a> (const char *value)</td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> A named string class. <p> A string class with a hashed string name <hr><h2>Constructor & Destructor Documentation</h2> <a class="anchor" name="8af9cfe48be3fe5422fb2b25ea0830f7"></a><!-- doxytag: member="TelEngine::NamedString::NamedString" ref="8af9cfe48be3fe5422fb2b25ea0830f7" args="(const char *name, const char *value=0)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classTelEngine_1_1NamedString.html">NamedString</a> </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"> <em>name</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const char * </td> <td class="paramname"> <em>value</em> = <code>0</code></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p> Creates a new named string. <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>name</em> </td><td>Name of this string </td></tr> <tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>Initial value of the string </td></tr> </table> </dl> </div> </div><p> <hr><h2>Member Function Documentation</h2> <a class="anchor" name="aa71c3294b1a073c3ad0b64a2ed6325a"></a><!-- doxytag: member="TelEngine::NamedString::getObject" ref="aa71c3294b1a073c3ad0b64a2ed6325a" args="(const String &name) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual void* getObject </td> <td>(</td> <td class="paramtype">const <a class="el" href="classTelEngine_1_1String.html">String</a> & </td> <td class="paramname"> <em>name</em> </td> <td> ) </td> <td> const<code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Get a pointer to a derived class given that class name <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>name</em> </td><td>Name of the class we are asking for </td></tr> </table> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>Pointer to the requested class or NULL if this object doesn't implement it </dd></dl> <p>Reimplemented from <a class="el" href="classTelEngine_1_1String.html#aa71c3294b1a073c3ad0b64a2ed6325a">String</a>.</p> <p>Reimplemented in <a class="el" href="classTelEngine_1_1NamedPointer.html#aa71c3294b1a073c3ad0b64a2ed6325a">NamedPointer</a>, <a class="el" href="classTelEngine_1_1MimeHeaderLine.html#aa71c3294b1a073c3ad0b64a2ed6325a">MimeHeaderLine</a>, and <a class="el" href="classTelEngine_1_1MimeAuthLine.html#aa71c3294b1a073c3ad0b64a2ed6325a">MimeAuthLine</a>.</p> </div> </div><p> <a class="anchor" name="b31e7357671cfe484e3c3ed3cd6258e4"></a><!-- doxytag: member="TelEngine::NamedString::name" ref="b31e7357671cfe484e3c3ed3cd6258e4" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const <a class="el" href="classTelEngine_1_1String.html">String</a>& name </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Retrive the name of this string. <dl class="return" compact><dt><b>Returns:</b></dt><dd>A hashed string with the name of the string </dd></dl> </div> </div><p> <a class="anchor" name="712071aa5629d4eafe0b276d9c4c8baa"></a><!-- doxytag: member="TelEngine::NamedString::operator=" ref="712071aa5629d4eafe0b276d9c4c8baa" args="(const char *value)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classTelEngine_1_1NamedString.html">NamedString</a>& operator= </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"> <em>value</em> </td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Value assignment operator <p>Reimplemented from <a class="el" href="classTelEngine_1_1String.html#278b39df6141f5551062da2f28d22032">String</a>.</p> <p>Reimplemented in <a class="el" href="classTelEngine_1_1NamedPointer.html#4ac02d48632550e6217ba1bcf00c0e2d">NamedPointer</a>, and <a class="el" href="classTelEngine_1_1MimeHeaderLine.html#5375426b2602847028327c7e7d6133d9">MimeHeaderLine</a>.</p> <p>References <a class="el" href="yateclass_8h-source.html#l01485">String::operator=()</a>.</p> <p>Referenced by <a class="el" href="yatemime_8h-source.html#l00094">MimeHeaderLine::operator=()</a>, and <a class="el" href="yateclass_8h-source.html#l02130">NamedPointer::operator=()</a>.</p> </div> </div><p> <a class="anchor" name="4a7bd56fb99593ace9379ed699f2719c"></a><!-- doxytag: member="TelEngine::NamedString::toString" ref="4a7bd56fb99593ace9379ed699f2719c" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual const <a class="el" href="classTelEngine_1_1String.html">String</a>& toString </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td> const<code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Get a string representation of this object <dl class="return" compact><dt><b>Returns:</b></dt><dd>A reference to the name of this object </dd></dl> <p>Reimplemented from <a class="el" href="classTelEngine_1_1String.html#4a7bd56fb99593ace9379ed699f2719c">String</a>.</p> </div> </div><p> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="yateclass_8h-source.html">yateclass.h</a></ul> </div> <hr size="1"><address style="text-align: right;"><small>Generated on Sun Dec 7 21:36:11 2008 for Yate by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.7.1 </small></address> </body> </html>