<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>OpenVRML: openvrml::node_metatype_id Class Reference</title> <meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <link rel="icon" href="../vrml-16"> <link rel="start" href="http://openvrml.org/index" title="OpenVRML Home"> <link rel="prev" href="http://openvrml.org/discussion" title="Discussion"> <link rel="contents" href="index" title="Documentation Main Page"> <link rel="index" href="functions" title="OpenVRML Compound Members"> <link rel="appendix" href="conformance" title="Conformance Test Results"> <style type="text/css"> @import url("tabs.css"); @import url("http://openvrml.org/openvrml.css"); table { width: 100%; } h2 { border-bottom-style: solid; border-bottom-width: 1px; } /* * Doxygen as of 1.5.4-20071217 uses the class "navpath" instead of "nav". * For now, we'll do both. */ div.nav, div.navpath { background-color: transparent; text-align: left; margin-top: 1em; margin-bottom: 1em; border-color: black; border-left: none; border-right: none; padding-top: 0.5em; padding-bottom: 0.5em; } div.nav :link, div.nav :visited, div.navpath :link, div.navpath :visited { border-width: 1px; border-style: solid; border-color: silver; padding: 2px; } div.nav :link:hover, div.nav :visited:hover, div.navpath :link:hover, div.navpath :visited:hover { border-style: outset; border-color: gray; } div.nav :active, div.navpath :active { border-style: inset; border-color: gray; } .body td { background-color: transparent; } .el { text-decoration: inherit; font-weight: inherit } .elRef { font-weight: inherit } .code:link, .code:visited { text-decoration: inherit; font-weight: inherit; color: inherit; } .codeRef:link { font-weight: normal; color: inherit; } :visited { color: silver; } :link:hover { color: inherit; text-decoration: inherit; background-color: transparent; } h1 { line-height: 1.2em; } td.memItemLeft, td.memItemRight, td.memTemplParams, td.memTemplItemLeft, td.memTemplItemRight, .memtemplate, .memname td { font-family: Consolas, "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Lucida Console", LucidaTypewriter, monospace; } td.memItemLeft, td.memItemRight, td.mdescLeft, td.mdescRight { background-color: rgb(95%, 95%, 95%); border-color: rgb(65%, 65%, 65%); border-width: 1px; font-size: smaller; } .memItemLeft { margin-top: 0.5em; border-top-style: solid; } .mdescLeft { border-bottom-style: solid; } .memItemRight { border-top-style: solid; margin-top: 0.5em; } .mdescRight { border-bottom-style: solid; } .mdescRight { font-style: italic; } .mdTable { background-color: rgb(95%, 95%, 95%); } .memproto td code { font-family: inherit; font-style: italic; } td.pass { background-color: rgb(50%, 100%, 50%); } td.fail { background-color: rgb(100%, 50%, 50%); } td.invalid { background-color: rgb(75%, 75%, 75%); } .memitem { padding: 0; } .memitem table { width: auto; } .memproto, .memdoc { border-width: 1px; border-color: rgb(65%, 65%, 65%); } .memproto { background-color: rgb(90%, 90%, 90%); font-weight: inherit; font-size: smaller; border-top-style: solid; border-left-style: solid; border-right-style: solid; -webkit-border-top-left-radius: 0.6em; -webkit-border-top-right-radius: 0.6em; -moz-border-radius-topleft: 0.6em; -moz-border-radius-topright: 0.6em; } .memdoc { background-color: rgb(95%, 95%, 95%); padding: 2px 5px; border-style: solid; -webkit-border-bottom-left-radius: 0.6em; -webkit-border-bottom-right-radius: 0.6em; -moz-border-radius-bottomleft: 0.6em; -moz-border-radius-bottomright: 0.6em; } .memname { font-weight: inherit; } div.tabs { background-image: url("tab_b-openvrml.png"); } div.tabs span { background-image: url("tab_l-openvrml.png"); } div.tabs a { background-image: url("tab_r-openvrml.png"); border-bottom: 1px solid #a5a5a5; } div.tabs a:link, div.tabs a:visited, div.tabs a:active, div.tabs a:hover { color: black; } table { border-collapse: collapse; border-spacing: 0; } .note { border: 1px solid rgb(65%, 65%, 65%); background-color: rgb(95%, 95%, 95%); margin-left: 10%; margin-right: 10%; } </style> </head> <body> <table class="sitenav"> <tr> <th><a href="http://openvrml.org/index" title="Home">Home</a></th> <th><a href="http://openvrml.org/download" title="Download">Download</a></th> <th><a href="http://openvrml.org/screenshots/index" title="Screen shots">Screen shots</a></th> <th><a href="http://openvrml.org/discussion" title="Mailing lists and IRC">Discussion</a></th> <th>Documentation</th> </tr> </table> <div class="body"> <!-- Generated by Doxygen 1.5.8 --> <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="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> <li><a href="examples.html"><span>Examples</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="namespaceopenvrml.html">openvrml</a>::<a class="el" href="classopenvrml_1_1node__metatype__id.html">node_metatype_id</a> </div> </div> <div class="contents"> <h1>openvrml::node_metatype_id Class Reference</h1><!-- doxytag: class="openvrml::node_metatype_id" -->Identifier for <code><a class="el" href="classopenvrml_1_1node__metatype.html" title="A class object for node instances.">node_metatype</a>s</code>. <a href="#_details">More...</a> <p> <code>#include <openvrml/node.h></code> <p> <p> <a href="classopenvrml_1_1node__metatype__id-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="classopenvrml_1_1node__metatype__id.html#14ef87c4bf90ab41a51d5bb56d6618a9">node_metatype_id</a> (const char *id) throw ( std::invalid_argument , std::bad_alloc )</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Construct from a <code>const char *</code>. <a href="#14ef87c4bf90ab41a51d5bb56d6618a9"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classopenvrml_1_1node__metatype__id.html#29ad92c80bba4cbb3d47ee39ad0161ad">node_metatype_id</a> (const std::string &id) throw ( std::invalid_argument , std::bad_alloc )</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Construct from a <code>std::string</code>. <a href="#29ad92c80bba4cbb3d47ee39ad0161ad"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classopenvrml_1_1node__metatype__id.html#b86747ac0dae78ca28370f477f055b53">operator std::string</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Convert to a <code>std::string</code>. <a href="#b86747ac0dae78ca28370f477f055b53"></a><br></td></tr> <tr><td colspan="2"><br><h2>Private Attributes</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classopenvrml_1_1node__metatype__id.html#18ec248b274b9a2773d7c886dc882f69">id_</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">The identifier string. <a href="#18ec248b274b9a2773d7c886dc882f69"></a><br></td></tr> <tr><td colspan="2"><br><h2>Friends</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classopenvrml_1_1node__metatype__id.html#a77449cbcd53b7fcbd86a9e4be43b697">operator==</a> (const <a class="el" href="classopenvrml_1_1node__metatype__id.html">node_metatype_id</a> &lhs, const <a class="el" href="classopenvrml_1_1node__metatype__id.html">node_metatype_id</a> &rhs) throw ()</td></tr> <tr><td colspan="2"><br><h2>Related Functions</h2></td></tr> <tr><td colspan="2">(Note that these are not member functions.) <br><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classopenvrml_1_1node__metatype__id.html#4df3a1bf3d365638b09de2c1b54908f5">operator!=</a> (const <a class="el" href="classopenvrml_1_1node__metatype__id.html">node_metatype_id</a> &lhs, const <a class="el" href="classopenvrml_1_1node__metatype__id.html">node_metatype_id</a> &rhs) throw()</td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> Identifier for <code><a class="el" href="classopenvrml_1_1node__metatype.html" title="A class object for node instances.">node_metatype</a>s</code>. <p> <code><a class="el" href="classopenvrml_1_1node__metatype.html" title="A class object for node instances.">node_metatype</a></code> identifiers take the following form:<p> <pre> absolute-uri ['#' proto-id ['#' proto-id [...]]] </pre><p> A <code><a class="el" href="classopenvrml_1_1node__metatype.html" title="A class object for node instances.">node_metatype</a></code> identifier is basically like an absolute URI; except the fragment identifier syntax has been extended to support referring to nested <code>PROTOs</code>.<p> For example, supposing the following VRML world resides at <code>http://example.com/example.wrl</code>:<p> <pre> #VRML V2.0 utf8</pre><p> <pre> PROTO Outer [] { PROTO Inner [] { Group {} } Group {} } </pre><p> The <code><a class="el" href="classopenvrml_1_1node__metatype__id.html" title="Identifier for node_metatypes.">node_metatype_id</a></code> string for <code>Outer</code> would be <code>http://example.com/example.wrl#Outer</code>; and for <code>Inner</code>, <code>http://example.com/example.wrl#Outer#Inner</code>. <hr><h2>Constructor & Destructor Documentation</h2> <a class="anchor" name="14ef87c4bf90ab41a51d5bb56d6618a9"></a><!-- doxytag: member="openvrml::node_metatype_id::node_metatype_id" ref="14ef87c4bf90ab41a51d5bb56d6618a9" args="(const char *id)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">openvrml::node_metatype_id::node_metatype_id </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"> <em>id</em> </td> <td> ) </td> <td> throw ( std::invalid_argument , std::bad_alloc )</td> </tr> </table> </div> <div class="memdoc"> <p> Construct from a <code>const char *</code>. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>id</em> </td><td>the identifier.</td></tr> </table> </dl> <dl compact><dt><b>Exceptions:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>std::invalid_argument</em> </td><td>if <code>id</code> is not a valid <code><a class="el" href="classopenvrml_1_1node__metatype.html" title="A class object for node instances.">node_metatype</a></code> identifier. </td></tr> <tr><td valign="top"></td><td valign="top"><em>std::bad_alloc</em> </td><td>if memory allocation fails.</td></tr> </table> </dl> <dl compact><dt><b><a class="el" href="todo.html#_todo000008">Todo:</a></b></dt><dd>Need to make sure the fragment part is valid. </dd></dl> </div> </div><p> <a class="anchor" name="29ad92c80bba4cbb3d47ee39ad0161ad"></a><!-- doxytag: member="openvrml::node_metatype_id::node_metatype_id" ref="29ad92c80bba4cbb3d47ee39ad0161ad" args="(const std::string &id)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">openvrml::node_metatype_id::node_metatype_id </td> <td>(</td> <td class="paramtype">const std::string & </td> <td class="paramname"> <em>id</em> </td> <td> ) </td> <td> throw ( std::invalid_argument , std::bad_alloc )</td> </tr> </table> </div> <div class="memdoc"> <p> Construct from a <code>std::string</code>. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>id</em> </td><td>the identifier.</td></tr> </table> </dl> <dl compact><dt><b>Exceptions:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>std::invalid_argument</em> </td><td>if <code>id</code> is not a valid <code><a class="el" href="classopenvrml_1_1node__metatype.html" title="A class object for node instances.">node_metatype</a></code> identifier. </td></tr> <tr><td valign="top"></td><td valign="top"><em>std::bad_alloc</em> </td><td>if memory allocation fails.</td></tr> </table> </dl> <dl compact><dt><b><a class="el" href="todo.html#_todo000009">Todo:</a></b></dt><dd>Need to make sure the fragment part is valid. </dd></dl> </div> </div><p> <hr><h2>Member Function Documentation</h2> <a class="anchor" name="b86747ac0dae78ca28370f477f055b53"></a><!-- doxytag: member="openvrml::node_metatype_id::operator std::string" ref="b86747ac0dae78ca28370f477f055b53" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">openvrml::node_metatype_id::operator std::string </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p> Convert to a <code>std::string</code>. <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd>the <code><a class="el" href="classopenvrml_1_1node__metatype.html" title="A class object for node instances.">node_metatype</a></code> identifier as a <code>std::string</code>. </dd></dl> </div> </div><p> <hr><h2>Friends And Related Function Documentation</h2> <a class="anchor" name="a77449cbcd53b7fcbd86a9e4be43b697"></a><!-- doxytag: member="openvrml::node_metatype_id::operator==" ref="a77449cbcd53b7fcbd86a9e4be43b697" args="(const node_metatype_id &lhs, const node_metatype_id &rhs)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool operator== </td> <td>(</td> <td class="paramtype">const <a class="el" href="classopenvrml_1_1node__metatype__id.html">node_metatype_id</a> & </td> <td class="paramname"> <em>lhs</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="classopenvrml_1_1node__metatype__id.html">node_metatype_id</a> & </td> <td class="paramname"> <em>rhs</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td> throw ()<code> [friend]</code></td> </tr> </table> </div> <div class="memdoc"> <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>lhs</em> </td><td></td></tr> <tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>rhs</em> </td><td></td></tr> </table> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if <code>lhs</code> and <code>rhs</code> are equal, <code>false</code> otherwise. </dd></dl> </div> </div><p> <a class="anchor" name="4df3a1bf3d365638b09de2c1b54908f5"></a><!-- doxytag: member="openvrml::node_metatype_id::operator!=" ref="4df3a1bf3d365638b09de2c1b54908f5" args="(const node_metatype_id &lhs, const node_metatype_id &rhs)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool operator!= </td> <td>(</td> <td class="paramtype">const <a class="el" href="classopenvrml_1_1node__metatype__id.html">node_metatype_id</a> & </td> <td class="paramname"> <em>lhs</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="classopenvrml_1_1node__metatype__id.html">node_metatype_id</a> & </td> <td class="paramname"> <em>rhs</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td> throw()<code> [related]</code></td> </tr> </table> </div> <div class="memdoc"> <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>lhs</em> </td><td></td></tr> <tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>rhs</em> </td><td></td></tr> </table> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if <code>lhs</code> and <code>rhs</code> are not equal, <code>false</code> otherwise. </dd></dl> </div> </div><p> <hr><h2>Member Data Documentation</h2> <a class="anchor" name="18ec248b274b9a2773d7c886dc882f69"></a><!-- doxytag: member="openvrml::node_metatype_id::id_" ref="18ec248b274b9a2773d7c886dc882f69" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">std::string <a class="el" href="classopenvrml_1_1node__metatype__id.html#18ec248b274b9a2773d7c886dc882f69">openvrml::node_metatype_id::id_</a><code> [private]</code> </td> </tr> </table> </div> <div class="memdoc"> <p> The identifier string. <p> <p><b>For internal use only.</b></p> <p> </p> </div> </div><p> </div> </div> <address class="footer"><span class="images"><a href="http://web3d.org/x3d/"><img src="x3d-white-on-black.png" width="43" height="32" border="0" alt="X3D"></a><a href="http://opengl.org"><img src="OGL_sm_wht.png" width="68" height="32" border="0" alt="OpenGL"></a><a href="http://sourceforge.net/projects/openvrml"><img src="http://sourceforge.net/sflogo.php?group_id=7151&type=11" width="120" height="30" border="0" alt="SourceForge.net"></a></span><a href="https://sourceforge.net/apps/trac/openvrml/newticket">Report error</a><br>Generated Thu Aug 13 02:49:20 2009 by Doxygen 1.5.8</address> <script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script> <script type="text/javascript">_uacct = "UA-446379-2"; urchinTracker();</script> <!-- Piwik --> <script type="text/javascript"> var pkBaseURL = (("https:" == document.location.protocol) ? "https://sourceforge.net/apps/piwik/openvrml/" : "http://sourceforge.net/apps/piwik/openvrml/"); document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E")); </script><script type="text/javascript"> piwik_action_name = ''; piwik_idsite = 1; piwik_url = pkBaseURL + "piwik.php"; piwik_log(piwik_action_name, piwik_idsite, piwik_url); </script> <object><noscript><p><img src="http://sourceforge.net/apps/piwik/openvrml/piwik.php?idsite=1" alt="piwik"/></p></noscript></object> <!-- End Piwik Tag --> </body> </html>