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

📄 classpasninteger.html

📁 pwlib开发文档
💻 HTML
字号:
<!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>PASNInteger 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>PASNInteger Class Reference</h1><code>#include &lt;<a class="el" href="pasn_8h-source.html">pasn.h</a>&gt;</code><p><p>Inheritance diagram for PASNInteger:<p><center><img src="classPASNInteger.png" usemap="#PASNInteger_map" border="0" alt=""></center><map name="PASNInteger_map"><area href="classPASNObject.html" alt="PASNObject" shape="rect" coords="0,56,85,80"><area href="classPObject.html" alt="PObject" shape="rect" coords="0,0,85,24"></map><a href="classPASNInteger-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 Methods</h2></td></tr><tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classPASNInteger.html#a0">PASNInteger</a> (<a class="el" href="pasn_8h.html#a0">PASNInt</a> val)</td></tr><tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classPASNInteger.html#a1">PASNInteger</a> (const <a class="el" href="classPBYTEArray.html">PBYTEArray</a> &amp;buffer, PINDEX &amp;ptr)</td></tr><tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classPASNInteger.html#a2">PrintOn</a> (ostream &amp;strm) const</td></tr><tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classPASNInteger.html#a3">Encode</a> (<a class="el" href="classPBYTEArray.html">PBYTEArray</a> &amp;buffer)</td></tr><tr><td nowrap align=right valign=top>WORD&nbsp;</td><td valign=bottom><a class="el" href="classPASNInteger.html#a4">GetEncodedLength</a> ()</td></tr><tr><td nowrap align=right valign=top><a class="el" href="classPObject.html">PObject</a> *&nbsp;</td><td valign=bottom><a class="el" href="classPASNInteger.html#a5">Clone</a> () const</td></tr><tr><td nowrap align=right valign=top><a class="el" href="pasn_8h.html#a0">PASNInt</a>&nbsp;</td><td valign=bottom><a class="el" href="classPASNInteger.html#a6">GetInteger</a> () const</td></tr><tr><td nowrap align=right valign=top><a class="el" href="classPString.html">PString</a>&nbsp;</td><td valign=bottom><a class="el" href="classPASNInteger.html#a7">GetString</a> () const</td></tr><tr><td nowrap align=right valign=top><a class="el" href="classPASNObject.html#s16">ASNType</a>&nbsp;</td><td valign=bottom><a class="el" href="classPASNInteger.html#a8">GetType</a> () const</td></tr><tr><td nowrap align=right valign=top><a class="el" href="classPString.html">PString</a>&nbsp;</td><td valign=bottom><a class="el" href="classPASNInteger.html#a9">GetTypeAsString</a> () const</td></tr></table><hr><a name="_details"></a><h2>Detailed Description</h2>A descendant of <a class="el" href="classPASNObject.html">PASNObject</a> which is a simple ASN integer type. <p><hr><h2>Constructor &amp; Destructor Documentation</h2><a name="a0" doxytag="PASNInteger::PASNInteger"></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"> PASNInteger::PASNInteger </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="pasn_8h.html#a0">PASNInt</a>&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>val</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>    </td>  </tr></table><a name="a1" doxytag="PASNInteger::PASNInteger"></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"> PASNInteger::PASNInteger </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="el" href="classPBYTEArray.html">PBYTEArray</a> &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>buffer</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>PINDEX &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>ptr</em></td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></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="a5" doxytag="PASNInteger::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"> <a class="el" href="classPObject.html">PObject</a>* PASNInteger::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>Virtual function used to duplicate objects <p>Reimplemented from <a class="el" href="classPASNObject.html#a11">PASNObject</a>.    </td>  </tr></table><a name="a3" doxytag="PASNInteger::Encode"></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"> void PASNInteger::Encode </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="classPBYTEArray.html">PBYTEArray</a> &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>buffer</em>          </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>Virtual function used to encode the object into ASN format <p>Reimplemented from <a class="el" href="classPASNObject.html#a9">PASNObject</a>.    </td>  </tr></table><a name="a4" doxytag="PASNInteger::GetEncodedLength"></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"> WORD PASNInteger::GetEncodedLength </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>Virtual function used to get the length of object when encoded into ASN format <p>Reimplemented from <a class="el" href="classPASNObject.html#a10">PASNObject</a>.    </td>  </tr></table><a name="a6" doxytag="PASNInteger::GetInteger"></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"> <a class="el" href="pasn_8h.html#a0">PASNInt</a> PASNInteger::GetInteger </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>Return the value of the ASN object as a PASNInt.<p>This function will assert if the object is not a descendant of &lt;A&gt;PASNInteger. <p>Reimplemented from <a class="el" href="classPASNObject.html#a3">PASNObject</a>.    </td>  </tr></table><a name="a7" doxytag="PASNInteger::GetString"></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"> <a class="el" href="classPString.html">PString</a> PASNInteger::GetString </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>Return the value of the object as a <a class="el" href="classPString.html">PString</a>. This function can be use for all ASN object types <p>Reimplemented from <a class="el" href="classPASNObject.html#a5">PASNObject</a>.    </td>  </tr></table><a name="a8" doxytag="PASNInteger::GetType"></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"> <a class="el" href="classPASNObject.html#s16">ASNType</a> PASNInteger::GetType </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>Return a value of type &lt;A&gt;enum ASNType which indicates the type of the object <p>Reimplemented from <a class="el" href="classPASNObject.html#a0">PASNObject</a>.    </td>  </tr></table><a name="a9" doxytag="PASNInteger::GetTypeAsString"></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"> <a class="el" href="classPString.html">PString</a> PASNInteger::GetTypeAsString </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>Return a string giving the type of the object <p>Reimplemented from <a class="el" href="classPASNObject.html#a2">PASNObject</a>.    </td>  </tr></table><a name="a2" doxytag="PASNInteger::PrintOn"></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"> void PASNInteger::PrintOn </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">ostream &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>strm</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap> const<code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Virtual functions used by the &lt;A&gt;<a class="el" href="classPObject.html#z201_2">PObject::operator&lt;&lt;</a> function to print the value of the object. <p>Reimplemented from <a class="el" href="classPASNObject.html#a8">PASNObject</a>.    </td>  </tr></table><hr>The documentation for this class was generated from the following file:<ul><li><a class="el" href="pasn_8h-source.html">pasn.h</a></ul><hr><address style="align: right;"><small>Generated on Wed Sep 29 22:44:14 2004 for PWLib by<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.18 </small></address></body></html>

⌨️ 快捷键说明

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