⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 classpobject.html

📁 pwlib开发文档
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>PObject class Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.2.18 --><center><a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; </center><hr><h1>PObject Class Reference</h1><code>#include &lt;<a class="el" href="object_8h-source.html">object.h</a>&gt;</code><p><p>Inheritance diagram for PObject:<p><center><img src="classPObject.png" usemap="#PObject_map" border="0" alt=""></center><map name="PObject_map"><area href="classPAdaptiveDelay.html" alt="PAdaptiveDelay" shape="rect" coords="165,56,320,80"><area href="classPArgList.html" alt="PArgList" shape="rect" coords="165,112,320,136"><area href="classPASN__Object.html" alt="PASN_Object" shape="rect" coords="165,168,320,192"><area href="classPASNObject.html" alt="PASNObject" shape="rect" coords="165,224,320,248"><area href="classPBase64.html" alt="PBase64" shape="rect" coords="165,280,320,304"><area href="classPChannel.html" alt="PChannel" shape="rect" coords="165,336,320,360"><area href="classPColourConverter.html" alt="PColourConverter" shape="rect" coords="165,392,320,416"><area href="classPConfig.html" alt="PConfig" shape="rect" coords="165,448,320,472"><area href="classPContainer.html" alt="PContainer" shape="rect" coords="165,504,320,528"><area href="classPCriticalSection.html" alt="PCriticalSection" shape="rect" coords="165,560,320,584"><area href="classPCypher.html" alt="PCypher" shape="rect" coords="165,616,320,640"><area href="classPDTMFDecoder.html" alt="PDTMFDecoder" shape="rect" coords="165,672,320,696"><area href="classPDynaLink.html" alt="PDynaLink" shape="rect" coords="165,728,320,752"><area href="classPFileInfo.html" alt="PFileInfo" shape="rect" coords="165,784,320,808"><area href="classPHTTPAuthority.html" alt="PHTTPAuthority" shape="rect" coords="165,840,320,864"><area href="classPHTTPConnectionInfo.html" alt="PHTTPConnectionInfo" shape="rect" coords="165,896,320,920"><area href="classPHTTPField.html" alt="PHTTPField" shape="rect" coords="165,952,320,976"><area href="classPHTTPRequest.html" alt="PHTTPRequest" shape="rect" coords="165,1008,320,1032"><area href="classPHTTPResource.html" alt="PHTTPResource" shape="rect" coords="165,1064,320,1088"><area href="classPIpAccessControlEntry.html" alt="PIpAccessControlEntry" shape="rect" coords="165,1120,320,1144"><area href="classPIPSocket_1_1Address.html" alt="PIPSocket::Address" shape="rect" coords="165,1176,320,1200"><area href="classPIPSocket_1_1InterfaceEntry.html" alt="PIPSocket::InterfaceEntry" shape="rect" coords="165,1232,320,1256"><area href="classPIPSocket_1_1RouteEntry.html" alt="PIPSocket::RouteEntry" shape="rect" coords="165,1288,320,1312"><area href="classPMail.html" alt="PMail" shape="rect" coords="165,1344,320,1368"><area href="classPMessageDigest.html" alt="PMessageDigest" shape="rect" coords="165,1400,320,1424"><area href="classPMultipartFormInfo.html" alt="PMultipartFormInfo" shape="rect" coords="165,1456,320,1480"><area href="classPNotifierList.html" alt="PNotifierList" shape="rect" coords="165,1512,320,1536"><area href="classPOrdinalKey.html" alt="POrdinalKey" shape="rect" coords="165,1568,320,1592"><area href="classPPluginManager.html" alt="PPluginManager" shape="rect" coords="165,1624,320,1648"><area href="classPPluginModuleManager.html" alt="PPluginModuleManager" shape="rect" coords="165,1680,320,1704"><area href="classPPluginService.html" alt="PPluginService" shape="rect" coords="165,1736,320,1760"><area href="classPProcessStartup.html" alt="PProcessStartup" shape="rect" coords="165,1792,320,1816"><area href="classPQoS.html" alt="PQoS" shape="rect" coords="165,1848,320,1872"><area href="classPReadWriteMutex.html" alt="PReadWriteMutex" shape="rect" coords="165,1904,320,1928"><area href="classPReadWriteMutex_1_1Nest.html" alt="PReadWriteMutex::Nest" shape="rect" coords="165,1960,320,1984"><area href="classPRegularExpression.html" alt="PRegularExpression" shape="rect" coords="165,2016,320,2040"><area href="classPRemoteConnection.html" alt="PRemoteConnection" shape="rect" coords="165,2072,320,2096"><area href="classPSafeCollection.html" alt="PSafeCollection" shape="rect" coords="165,2128,320,2152"><area href="classPSafeObject.html" alt="PSafeObject" shape="rect" coords="165,2184,320,2208"><area href="classPSafePtrBase.html" alt="PSafePtrBase" shape="rect" coords="165,2240,320,2264"><area href="classPSemaphore.html" alt="PSemaphore" shape="rect" coords="165,2296,320,2320"><area href="classPServiceMacro.html" alt="PServiceMacro" shape="rect" coords="165,2352,320,2376"><area href="classPSmartObject.html" alt="PSmartObject" shape="rect" coords="165,2408,320,2432"><area href="classPSmartPointer.html" alt="PSmartPointer" shape="rect" coords="165,2464,320,2488"><area href="classPSNMPVarBindingList.html" alt="PSNMPVarBindingList" shape="rect" coords="165,2520,320,2544"><area href="classPSSLCertificate.html" alt="PSSLCertificate" shape="rect" coords="165,2576,320,2600"><area href="classPSSLDiffieHellman.html" alt="PSSLDiffieHellman" shape="rect" coords="165,2632,320,2656"><area href="classPSSLPrivateKey.html" alt="PSSLPrivateKey" shape="rect" coords="165,2688,320,2712"><area href="classPSTUNClient.html" alt="PSTUNClient" shape="rect" coords="165,2744,320,2768"><area href="classPSystemLog.html" alt="PSystemLog" shape="rect" coords="165,2800,320,2824"><area href="classPTextToSpeech.html" alt="PTextToSpeech" shape="rect" coords="165,2856,320,2880"><area href="classPThread.html" alt="PThread" shape="rect" coords="165,2912,320,2936"><area href="classPTime.html" alt="PTime" shape="rect" coords="165,2968,320,2992"><area href="classPTimeInterval.html" alt="PTimeInterval" shape="rect" coords="165,3024,320,3048"><area href="classPURL.html" alt="PURL" shape="rect" coords="165,3080,320,3104"><area href="classPURLScheme.html" alt="PURLScheme" shape="rect" coords="165,3136,320,3160"><area href="classPVideoDevice.html" alt="PVideoDevice" shape="rect" coords="165,3192,320,3216"><area href="classPVXMLGrammar.html" alt="PVXMLGrammar" shape="rect" coords="165,3248,320,3272"><area href="classPVXMLPlayable.html" alt="PVXMLPlayable" shape="rect" coords="165,3304,320,3328"><area href="classPVXMLRecordable.html" alt="PVXMLRecordable" shape="rect" coords="165,3360,320,3384"><area href="classPVXMLTransferOptions.html" alt="PVXMLTransferOptions" shape="rect" coords="165,3416,320,3440"><area href="classPXMLBase.html" alt="PXMLBase" shape="rect" coords="165,3472,320,3496"><area href="classPXMLObject.html" alt="PXMLObject" shape="rect" coords="165,3528,320,3552"><area href="classPXMLParser.html" alt="PXMLParser" shape="rect" coords="165,3584,320,3608"><area href="classPXMLRPC.html" alt="PXMLRPC" shape="rect" coords="165,3640,320,3664"><area href="classPXMLRPCServerParms.html" alt="PXMLRPCServerParms" shape="rect" coords="165,3696,320,3720"><area href="classPXMLRPCStructBase.html" alt="PXMLRPCStructBase" shape="rect" coords="165,3752,320,3776"><area href="classPXMLRPCVariableBase.html" alt="PXMLRPCVariableBase" shape="rect" coords="165,3808,320,3832"></map><a href="classPObject-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0><tr><td></td></tr><tr><td colspan=2><br><h2>Comparison functions</h2></td></tr><tr><td nowrap align=right valign=top>enum &nbsp;</td><td valign=bottom><a class="el" href="classPObject.html#z199_0">Comparison</a> { <a class="el" href="classPObject.html#z199_0s0">LessThan</a> =  -1, <a class="el" href="classPObject.html#z199_0s1">EqualTo</a> =  0, <a class="el" href="classPObject.html#z199_0s2">GreaterThan</a> =  1 }</td></tr><tr><td nowrap align=right valign=top>virtual <a class="el" href="classPObject.html#z199_0">Comparison</a>&nbsp;</td><td valign=bottom><a class="el" href="classPObject.html#z199_1">Compare</a> (const PObject &amp;obj) const</td></tr><tr><td nowrap align=right valign=top>virtual <a class="el" href="classPObject.html#z199_0">Comparison</a>&nbsp;</td><td valign=bottom><a class="el" href="classPObject.html#z199_2">CompareObjectMemoryDirect</a> (const PObject &amp;obj) const</td></tr><tr><td nowrap align=right valign=top>bool&nbsp;</td><td valign=bottom><a class="el" href="classPObject.html#z199_3">operator==</a> (const PObject &amp;obj) const</td></tr><tr><td nowrap align=right valign=top>bool&nbsp;</td><td valign=bottom><a class="el" href="classPObject.html#z199_4">operator!=</a> (const PObject &amp;obj) const</td></tr><tr><td nowrap align=right valign=top>bool&nbsp;</td><td valign=bottom><a class="el" href="classPObject.html#z199_5">operator&lt;</a> (const PObject &amp;obj) const</td></tr><tr><td nowrap align=right valign=top>bool&nbsp;</td><td valign=bottom><a class="el" href="classPObject.html#z199_6">operator&gt;</a> (const PObject &amp;obj) const</td></tr><tr><td nowrap align=right valign=top>bool&nbsp;</td><td valign=bottom><a class="el" href="classPObject.html#z199_7">operator&lt;=</a> (const PObject &amp;obj) const</td></tr><tr><td nowrap align=right valign=top>bool&nbsp;</td><td valign=bottom><a class="el" href="classPObject.html#z199_8">operator&gt;=</a> (const PObject &amp;obj) const</td></tr><tr><td colspan=2><br><h2>Run Time Type functions</h2></td></tr><tr><td nowrap align=right valign=top>virtual const char *&nbsp;</td><td valign=bottom><a class="el" href="classPObject.html#z197_0">GetClass</a> (unsigned=0) const</td></tr><tr><td nowrap align=right valign=top>BOOL&nbsp;</td><td valign=bottom><a class="el" href="classPObject.html#z197_1">IsClass</a> (const char *cls) const</td></tr><tr><td nowrap align=right valign=top>virtual BOOL&nbsp;</td><td valign=bottom><a class="el" href="classPObject.html#z197_2">InternalIsDescendant</a> (const char *clsName) const</td></tr><tr><td nowrap align=right valign=top>const char *&nbsp;</td><td valign=bottom><a class="el" href="classPObject.html#z197_3">Class</a> ()</td></tr><tr><td colspan=2><br><h2>I/O functions</h2></td></tr><tr><td nowrap align=right valign=top>virtual void&nbsp;</td><td valign=bottom><a class="el" href="classPObject.html#z201_0">PrintOn</a> (ostream &amp;strm) const</td></tr><tr><td nowrap align=right valign=top>virtual void&nbsp;</td><td valign=bottom><a class="el" href="classPObject.html#z201_1">ReadFrom</a> (istream &amp;strm)</td></tr><tr><td nowrap align=right valign=top>ostream &amp;&nbsp;</td><td valign=bottom><a class="el" href="classPObject.html#z201_2">operator&lt;&lt;</a> (ostream &amp;strm, const PObject &amp;obj)</td></tr><tr><td nowrap align=right valign=top>istream &amp;&nbsp;</td><td valign=bottom><a class="el" href="classPObject.html#z201_3">operator&gt;&gt;</a> (istream &amp;strm, PObject &amp;obj)</td></tr><tr><td colspan=2><br><h2>Public Types</h2></td></tr><tr><td colspan=2><br><h2>Public Methods</h2></td></tr><tr><td nowrap align=right valign=top>virtual&nbsp;</td><td valign=bottom><a class="el" href="classPObject.html#a0">~PObject</a> ()</td></tr><tr><td colspan="2"><div class="groupHeader">Miscellaneous functions</div></td></tr><tr><td nowrap align=right valign=top>virtual PObject *&nbsp;</td><td valign=bottom><a class="el" href="classPObject.html#z203_0">Clone</a> () const</td></tr><tr><td nowrap align=right valign=top>virtual PINDEX&nbsp;</td><td valign=bottom><a class="el" href="classPObject.html#z203_1">HashFunction</a> () const</td></tr><tr><td colspan=2><br><h2>Protected Methods</h2></td></tr><tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classPObject.html#b0">PObject</a> ()</td></tr></table><hr><a name="_details"></a><h2>Detailed Description</h2>Ultimate parent class for all objects in the class library. This provides functionality provided to all classes, eg run-time types, default comparison operations, simple stream I/O and serialisation support. <p><hr><h2>Member Enumeration Documentation</h2><a name="z199_0" doxytag="PObject::Comparison"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> enum PObject::Comparison      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Result of the comparison operation performed by the <a class="el" href="classPObject.html#z199_1">Compare()</a># function. <dl compact><dt><b>Enumeration values: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em><a name="z199_0s0" doxytag="LessThan"></a><em>LessThan</em></em>&nbsp;</td><td></td></tr><tr><td valign=top><em><a name="z199_0s1" doxytag="EqualTo"></a><em>EqualTo</em></em>&nbsp;</td><td></td></tr><tr><td valign=top><em><a name="z199_0s2" doxytag="GreaterThan"></a><em>GreaterThan</em></em>&nbsp;</td><td></td></tr></table></dl>    </td>  </tr></table><hr><h2>Constructor &amp; Destructor Documentation</h2><a name="b0" doxytag="PObject::PObject"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> PObject::PObject </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap><code> [inline, protected]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Constructor for PObject, make protected so cannot ever create one on its own.     </td>  </tr></table><a name="a0" doxytag="PObject::~PObject"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> virtual PObject::~PObject </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap><code> [inline, virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>    </td>  </tr></table><hr><h2>Member Function Documentation</h2><a name="z197_3" doxytag="PObject::Class"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> const char* PObject::Class </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap><code> [inline, static]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Get the name of the class as a C string. This is a static function which returns the type of a specific class.<p>When comparing class names, always use the strcmp()# function rather than comparing pointers. The pointers are not necessarily the same over compilation units depending on the compiler, platform etc.<p><dl compact><dt><b>Returns: </b></dt><dd>pointer to C string literal. </dl>    </td>  </tr></table><a name="z203_0" doxytag="PObject::Clone"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> virtual PObject* PObject::Clone </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap><code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Create a copy of the class on the heap. The exact semantics of the descendent class determine what is required to make a duplicate of the instance. Not all classes can even {\bf do} a clone operation.<p>The main user of the clone function is the PDictionary# class as it requires copies of the dictionary keys.<p>The default behaviour is for this function to assert.<p><dl compact><dt><b>Returns: </b></dt><dd> pointer to new copy of the class instance. </dl><p>Reimplemented in <a class="el" href="classPOrdinalKey.html#z83_0">POrdinalKey</a>, <a class="el" href="classPTime.html#z295_0">PTime</a>, <a class="el" href="classPTCPSocket.html#z425_0">PTCPSocket</a>, <a class="el" href="classPTimeInterval.html#z447_0">PTimeInterval</a>, <a class="el" href="classPASN__Null.html#a2">PASN_Null</a>, <a class="el" href="classPASN__Boolean.html#a7">PASN_Boolean</a>, <a class="el" href="classPASN__Integer.html#a7">PASN_Integer</a>, <a class="el" href="classPASN__Enumeration.html#a9">PASN_Enumeration</a>, <a class="el" href="classPASN__Real.html#a7">PASN_Real</a>, <a class="el" href="classPASN__ObjectId.html#a20">PASN_ObjectId</a>, <a class="el" href="classPASN__BitString.html#a14">PASN_BitString</a>, <a class="el" href="classPASN__OctetString.html#a21">PASN_OctetString</a>, <a class="el" href="classPASN__BMPString.html#a20">PASN_BMPString</a>, <a class="el" href="classPASN__Sequence.html#a10">PASN_Sequence</a>, <a class="el" href="classPASN__Set.html#a1">PASN_Set</a>, <a class="el" href="classPHTTPSimpleAuth.html#a1">PHTTPSimpleAuth</a>, <a class="el" href="classPHTTPMultiSimpAuth.html#a2">PHTTPMultiSimpAuth</a>, <a class="el" href="classPASNObject.html#a11">PASNObject</a>, <a class="el" href="classPASNInteger.html#a5">PASNInteger</a>, <a class="el" href="classPASNString.html#a7">PASNString</a>, <a class="el" href="classPASNIPAddress.html#a8">PASNIPAddress</a>, <a class="el" href="classPASNTimeTicks.html#a3">PASNTimeTicks</a>, <a class="el" href="classPASNCounter.html#a3">PASNCounter</a>, <a class="el" href="classPASNGauge.html#a4">PASNGauge</a>, <a class="el" href="classPASNObjectID.html#a7">PASNObjectID</a>, <a class="el" href="classPASNNull.html#a5">PASNNull</a>, <a class="el" href="classPSocks4Socket.html#a2">PSocks4Socket</a>, <a class="el" href="classPSocks5Socket.html#a2">PSocks5Socket</a>, and <a class="el" href="classPSocksUDPSocket.html#a2">PSocksUDPSocket</a>.    </td>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -