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

📄 enum_8h-source.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>enum.h Source File</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>enum.h</h1><a href="enum_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/*</span>00002 <span class="comment"> * pdns.h</span>00003 <span class="comment"> *</span>00004 <span class="comment"> * PWLib library for ENUM lookup</span>00005 <span class="comment"> *</span>00006 <span class="comment"> * Portable Windows Library</span>00007 <span class="comment"> *</span>00008 <span class="comment"> * Copyright (C) 2004 Post Increment</span>00009 <span class="comment"> *</span>00010 <span class="comment"> * The contents of this file are subject to the Mozilla Public License</span>00011 <span class="comment"> * Version 1.0 (the "License"); you may not use this file except in</span>00012 <span class="comment"> * compliance with the License. You may obtain a copy of the License at</span>00013 <span class="comment"> * http://www.mozilla.org/MPL/</span>00014 <span class="comment"> *</span>00015 <span class="comment"> * Software distributed under the License is distributed on an "AS IS"</span>00016 <span class="comment"> * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See</span>00017 <span class="comment"> * the License for the specific language governing rights and limitations</span>00018 <span class="comment"> * under the License.</span>00019 <span class="comment"> *</span>00020 <span class="comment"> * The Original Code is Portable Windows Library.</span>00021 <span class="comment"> *</span>00022 <span class="comment"> * The Initial Developer of the Original Code is Post Increment</span>00023 <span class="comment"> *</span>00024 <span class="comment"> * Contributor(s): ______________________________________.</span>00025 <span class="comment"> *</span>00026 <span class="comment"> * $Log: enum.h,v $</span>00027 <span class="comment"> * Revision 1.1  2004/05/31 13:56:37  csoutheren</span>00028 <span class="comment"> * Added implementation of ENUM resolution of E.164 numbers by DNS</span>00029 <span class="comment"> *</span>00030 <span class="comment"> */</span>00031 00032 <span class="preprocessor">#if P_DNS</span>00033 <span class="preprocessor"></span>00034 <span class="preprocessor">#ifndef _PENUM_H</span>00035 <span class="preprocessor"></span><span class="preprocessor">#define _PENUM_H</span>00036 <span class="preprocessor"></span>00037 <span class="preprocessor">#ifdef P_USE_PRAGMA</span>00038 <span class="preprocessor"></span><span class="preprocessor">#pragma interface</span>00039 <span class="preprocessor"></span><span class="preprocessor">#endif</span>00040 <span class="preprocessor"></span>00041 <span class="preprocessor">#include &lt;<a class="code" href="pdns_8h.html">ptclib/pdns.h</a>&gt;</span>00042 00043 <span class="keyword">namespace </span>PDNS {00044 00045 <span class="preprocessor">#ifndef NAPTR_SRV</span>00046 <span class="preprocessor"></span><span class="preprocessor">#define NAPTR_SRV       35</span>00047 <span class="preprocessor"></span><span class="preprocessor">#endif</span>00048 <span class="preprocessor"></span>00050 00051 <span class="keyword">class </span>NAPTRRecord : <span class="keyword">public</span> <a class="code" href="classPObject.html">PObject</a>00052 {00053   <a class="code" href="object_8h.html#a27">PCLASSINFO</a>(NAPTRRecord, <a class="code" href="classPObject.html">PObject</a>);00054   <span class="keyword">public</span>:00055     Comparison Compare(<span class="keyword">const</span> <a class="code" href="classPObject.html">PObject</a> &amp; obj) <span class="keyword">const</span>;00056     <span class="keywordtype">void</span> <a class="code" href="array_8h.html#a9">PrintOn</a>(ostream &amp; strm) <span class="keyword">const</span>;00057 00058     WORD order;00059     WORD preference;00060     <a class="code" href="classPString.html">PString</a> flags;00061     <a class="code" href="classPString.html">PString</a> service;00062     <a class="code" href="classPString.html">PString</a> regex;00063     <a class="code" href="classPString.html">PString</a> replacement;00064 };00065 00066 <a class="code" href="lists_8h.html#a7">PDECLARE_SORTED_LIST</a>(NAPTRRecordList, PDNS::NAPTRRecord)00067   <span class="keyword">public</span>:00068     <span class="keywordtype">void</span> <a class="code" href="array_8h.html#a9">PrintOn</a>(ostream &amp; strm) <span class="keyword">const</span>;00069 00070     NAPTRRecord * GetFirst(<span class="keyword">const</span> <span class="keywordtype">char</span> * service = NULL);00071     NAPTRRecord * GetNext(<span class="keyword">const</span> <span class="keywordtype">char</span> * service = NULL);00072 00073     PDNS::NAPTRRecord * HandleDNSRecord(PDNS_RECORD dnsRecord, PDNS_RECORD results);00074 00075     <span class="keywordtype">void</span> UnlockOrder()00076     { orderLocked = FALSE; }00077 00078   <span class="keyword">protected</span>:00079     PINDEX     currentPos;00080     <span class="keywordtype">int</span>        lastOrder;00081     BOOL       orderLocked;00082 };00083 00084 <span class="keyword">inline</span> BOOL GetRecords(<span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> &amp; domain, NAPTRRecordList &amp; recordList)00085 { <span class="keywordflow">return</span> Lookup&lt;NAPTR_SRV, NAPTRRecordList, NAPTRRecord&gt;(domain, recordList); }00086 00087 BOOL ENUMLookup(<span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> &amp; dn, <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> &amp; service, <span class="keyword">const</span> <a class="code" href="classPStringArray.html">PStringArray</a> &amp; domains, <a class="code" href="classPString.html">PString</a> &amp; URL);00088 BOOL ENUMLookup(<span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> &amp; dn, <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> &amp; service, <a class="code" href="classPString.html">PString</a> &amp; URL);00089 00090 }; <span class="comment">// namespace PDNS</span>00091 00092 <span class="preprocessor">#endif // _PENUM_H</span>00093 <span class="preprocessor"></span><span class="preprocessor">#endif // P_DNS</span>00094 <span class="preprocessor"></span>00095 <span class="comment">// End Of File ///////////////////////////////////////////////////////////////</span></pre></div><hr><address style="align: right;"><small>Generated on Wed Sep 29 22:44:10 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 + -