📄 classpipaccesscontrolentry.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>PIpAccessControlEntry 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> <a class="qindex" href="namespaces.html">Namespace List</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> </center><hr><h1>PIpAccessControlEntry Class Reference</h1><code>#include <<a class="el" href="ipacl_8h-source.html">ipacl.h</a>></code><p><p>Inheritance diagram for PIpAccessControlEntry:<p><center><img src="classPIpAccessControlEntry.png" usemap="#PIpAccessControlEntry_map" border="0" alt=""></center><map name="PIpAccessControlEntry_map"><area href="classPObject.html" alt="PObject" shape="rect" coords="0,0,143,24"></map><a href="classPIpAccessControlEntry-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> </td><td valign=bottom><a class="el" href="classPIpAccessControlEntry.html#a0">PIpAccessControlEntry</a> (<a class="el" href="classPIPSocket_1_1Address.html">PIPSocket::Address</a> addr, <a class="el" href="classPIPSocket_1_1Address.html">PIPSocket::Address</a> msk, BOOL allow)</td></tr><tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="classPIpAccessControlEntry.html#a1">PIpAccessControlEntry</a> (const <a class="el" href="classPString.html">PString</a> &description)</td></tr><tr><td nowrap align=right valign=top>PIpAccessControlEntry & </td><td valign=bottom><a class="el" href="classPIpAccessControlEntry.html#a2">operator=</a> (const <a class="el" href="classPString.html">PString</a> &pstr)</td></tr><tr><td nowrap align=right valign=top>PIpAccessControlEntry & </td><td valign=bottom><a class="el" href="classPIpAccessControlEntry.html#a3">operator=</a> (const char *cstr)</td></tr><tr><td nowrap align=right valign=top>virtual <a class="el" href="classPObject.html#z199_0">Comparison</a> </td><td valign=bottom><a class="el" href="classPIpAccessControlEntry.html#a4">Compare</a> (const <a class="el" href="classPObject.html">PObject</a> &obj) const</td></tr><tr><td nowrap align=right valign=top>virtual void </td><td valign=bottom><a class="el" href="classPIpAccessControlEntry.html#a5">PrintOn</a> (ostream &strm) const</td></tr><tr><td nowrap align=right valign=top>virtual void </td><td valign=bottom><a class="el" href="classPIpAccessControlEntry.html#a6">ReadFrom</a> (istream &strm)</td></tr><tr><td nowrap align=right valign=top><a class="el" href="classPString.html">PString</a> </td><td valign=bottom><a class="el" href="classPIpAccessControlEntry.html#a7">AsString</a> () const</td></tr><tr><td nowrap align=right valign=top>BOOL </td><td valign=bottom><a class="el" href="classPIpAccessControlEntry.html#a8">IsValid</a> ()</td></tr><tr><td nowrap align=right valign=top>BOOL </td><td valign=bottom><a class="el" href="classPIpAccessControlEntry.html#a9">Parse</a> (const <a class="el" href="classPString.html">PString</a> &description)</td></tr><tr><td nowrap align=right valign=top>BOOL </td><td valign=bottom><a class="el" href="classPIpAccessControlEntry.html#a10">Match</a> (<a class="el" href="classPIPSocket_1_1Address.html">PIPSocket::Address</a> &<a class="el" href="classPIpAccessControlEntry.html#n1">address</a>)</td></tr><tr><td nowrap align=right valign=top>const <a class="el" href="classPString.html">PString</a> & </td><td valign=bottom><a class="el" href="classPIpAccessControlEntry.html#a11">GetDomain</a> () const</td></tr><tr><td nowrap align=right valign=top>const <a class="el" href="classPIPSocket_1_1Address.html">PIPSocket::Address</a> & </td><td valign=bottom><a class="el" href="classPIpAccessControlEntry.html#a12">GetAddress</a> () const</td></tr><tr><td nowrap align=right valign=top>const <a class="el" href="classPIPSocket_1_1Address.html">PIPSocket::Address</a> & </td><td valign=bottom><a class="el" href="classPIpAccessControlEntry.html#a13">GetMask</a> () const</td></tr><tr><td nowrap align=right valign=top>BOOL </td><td valign=bottom><a class="el" href="classPIpAccessControlEntry.html#a14">IsAllowed</a> () const</td></tr><tr><td nowrap align=right valign=top>BOOL </td><td valign=bottom><a class="el" href="classPIpAccessControlEntry.html#a15">IsHidden</a> () const</td></tr><tr><td colspan=2><br><h2>Protected Attributes</h2></td></tr><tr><td nowrap align=right valign=top><a class="el" href="classPString.html">PString</a> </td><td valign=bottom><a class="el" href="classPIpAccessControlEntry.html#n0">domain</a></td></tr><tr><td nowrap align=right valign=top><a class="el" href="classPIPSocket_1_1Address.html">PIPSocket::Address</a> </td><td valign=bottom><a class="el" href="classPIpAccessControlEntry.html#n1">address</a></td></tr><tr><td nowrap align=right valign=top><a class="el" href="classPIPSocket_1_1Address.html">PIPSocket::Address</a> </td><td valign=bottom><a class="el" href="classPIpAccessControlEntry.html#n2">mask</a></td></tr><tr><td nowrap align=right valign=top>BOOL </td><td valign=bottom><a class="el" href="classPIpAccessControlEntry.html#n3">allowed</a></td></tr><tr><td nowrap align=right valign=top>BOOL </td><td valign=bottom><a class="el" href="classPIpAccessControlEntry.html#n4">hidden</a></td></tr></table><hr><a name="_details"></a><h2>Detailed Description</h2>This class is a single IP access control specification. <p><hr><h2>Constructor & Destructor Documentation</h2><a name="a0" doxytag="PIpAccessControlEntry::PIpAccessControlEntry"></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"> PIpAccessControlEntry::PIpAccessControlEntry </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="classPIPSocket_1_1Address.html">PIPSocket::Address</a> </td> <td class="mdname" nowrap> <em>addr</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="classPIPSocket_1_1Address.html">PIPSocket::Address</a> </td> <td class="mdname" nowrap> <em>msk</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>BOOL </td> <td class="mdname" nowrap> <em>allow</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Create a new IP access control specification. See the <a class="el" href="classPIpAccessControlEntry.html#a9">Parse()</a> function for more details on the format of the <code>description</code> parameter. </td> </tr></table><a name="a1" doxytag="PIpAccessControlEntry::PIpAccessControlEntry"></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"> PIpAccessControlEntry::PIpAccessControlEntry </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const <a class="el" href="classPString.html">PString</a> & </td> <td class="mdname1" valign="top" nowrap> <em>description</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p> </td> </tr></table><hr><h2>Member Function Documentation</h2><a name="a7" doxytag="PIpAccessControlEntry::AsString"></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> PIpAccessControlEntry::AsString </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Convert the specification to a string, that can be processed by the <a class="el" href="classPIpAccessControlEntry.html#a9">Parse()</a> function.<p><dl compact><dt><b>Returns: </b></dt><dd> <a class="el" href="classPString.html">PString</a> representation of the entry. </dl> </td> </tr></table><a name="a4" doxytag="PIpAccessControlEntry::Compare"></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 <a class="el" href="classPObject.html#z199_0">Comparison</a> PIpAccessControlEntry::Compare </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const <a class="el" href="classPObject.html">PObject</a> & </td> <td class="mdname1" valign="top" nowrap> <em>obj</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const<code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Compare the two objects and return their relative rank.<p><dl compact><dt><b>Returns: </b></dt><dd> <code>LessThan</code>, <code>EqualTo</code> or <code>GreaterThan</code> according to the relative rank of the objects. </dl><p>Reimplemented from <a class="el" href="classPObject.html#z199_1">PObject</a>. </td> </tr></table><a name="a12" doxytag="PIpAccessControlEntry::GetAddress"></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 <a class="el" href="classPIPSocket_1_1Address.html">PIPSocket::Address</a>& PIpAccessControlEntry::GetAddress </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const<code> [inline]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Get the address part of entry. </td> </tr></table><a name="a11" doxytag="PIpAccessControlEntry::GetDomain"></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 <a class="el" href="classPString.html">PString</a>& PIpAccessControlEntry::GetDomain </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const<code> [inline]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Get the domain part of entry. </td> </tr></table><a name="a13" doxytag="PIpAccessControlEntry::GetMask"></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 <a class="el" href="classPIPSocket_1_1Address.html">PIPSocket::Address</a>& PIpAccessControlEntry::GetMask </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const<code> [inline]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Get the mask part of entry. </td> </tr></table><a name="a14" doxytag="PIpAccessControlEntry::IsAllowed"></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"> BOOL PIpAccessControlEntry::IsAllowed </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const<code> [inline]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Get the allowed flag of entry. </td> </tr></table><a name="a15" doxytag="PIpAccessControlEntry::IsHidden"></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"> BOOL PIpAccessControlEntry::IsHidden </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const<code> [inline]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Get the hidden flag of entry. </td> </tr></table><a name="a8" doxytag="PIpAccessControlEntry::IsValid"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -