XQuilla/docs/dom3-api/PlatformUtils_8hpp_source.html

336 lines
32 KiB
HTML
Raw Normal View History

2020-02-17 21:19:57 +00:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>XQilla DOM3 API Documentation</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<a style="float:right;" href="http://sourceforge.net/projects/xqilla"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=152021&amp;type=2" border="0" alt="SourceForge.net Logo" /></a>
<!-- Generated by Doxygen 1.6.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><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="files.html"><span>File&nbsp;List</span></a></li>
<li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
</ul>
</div>
<h1>PlatformUtils.hpp</h1><a href="PlatformUtils_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment"> * Licensed to the Apache Software Foundation (ASF) under one or more</span>
<a name="l00003"></a>00003 <span class="comment"> * contributor license agreements. See the NOTICE file distributed with</span>
<a name="l00004"></a>00004 <span class="comment"> * this work for additional information regarding copyright ownership.</span>
<a name="l00005"></a>00005 <span class="comment"> * The ASF licenses this file to You under the Apache License, Version 2.0</span>
<a name="l00006"></a>00006 <span class="comment"> * (the &quot;License&quot;); you may not use this file except in compliance with</span>
<a name="l00007"></a>00007 <span class="comment"> * the License. You may obtain a copy of the License at</span>
<a name="l00008"></a>00008 <span class="comment"> *</span>
<a name="l00009"></a>00009 <span class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</span>
<a name="l00010"></a>00010 <span class="comment"> *</span>
<a name="l00011"></a>00011 <span class="comment"> * Unless required by applicable law or agreed to in writing, software</span>
<a name="l00012"></a>00012 <span class="comment"> * distributed under the License is distributed on an &quot;AS IS&quot; BASIS,</span>
<a name="l00013"></a>00013 <span class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span>
<a name="l00014"></a>00014 <span class="comment"> * See the License for the specific language governing permissions and</span>
<a name="l00015"></a>00015 <span class="comment"> * limitations under the License.</span>
<a name="l00016"></a>00016 <span class="comment"> */</span>
<a name="l00017"></a>00017
<a name="l00018"></a>00018 <span class="comment">/*</span>
<a name="l00019"></a>00019 <span class="comment"> * $Id: PlatformUtils.hpp 695427 2008-09-15 11:05:36Z borisk $</span>
<a name="l00020"></a>00020 <span class="comment"> */</span>
<a name="l00021"></a>00021
<a name="l00022"></a>00022 <span class="preprocessor">#if !defined(XERCESC_INCLUDE_GUARD_PLATFORMUTILS_HPP)</span>
<a name="l00023"></a><a class="code" href="PlatformUtils_8hpp.html#a5c06cf8ae584da071b74e1d4287f2d3b">00023</a> <span class="preprocessor"></span><span class="preprocessor">#define XERCESC_INCLUDE_GUARD_PLATFORMUTILS_HPP</span>
<a name="l00024"></a>00024 <span class="preprocessor"></span>
<a name="l00025"></a>00025 <span class="preprocessor">#include &lt;xercesc/util/XercesDefs.hpp&gt;</span>
<a name="l00026"></a>00026 <span class="preprocessor">#include &lt;xercesc/util/XMLException.hpp&gt;</span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;xercesc/util/PanicHandler.hpp&gt;</span>
<a name="l00028"></a>00028
<a name="l00029"></a>00029 <span class="preprocessor">#include &lt;xercesc/util/XMLFileMgr.hpp&gt;</span>
<a name="l00030"></a>00030 <span class="preprocessor">#include &lt;xercesc/util/XMLMutexMgr.hpp&gt;</span>
<a name="l00031"></a>00031
<a name="l00032"></a>00032 XERCES_CPP_NAMESPACE_BEGIN
<a name="l00033"></a>00033
<a name="l00034"></a>00034 <span class="keyword">class </span>XMLMsgLoader;
<a name="l00035"></a>00035 <span class="keyword">class </span>XMLNetAccessor;
<a name="l00036"></a>00036 <span class="keyword">class </span>XMLTransService;
<a name="l00037"></a>00037 <span class="keyword">class </span>MemoryManager;
<a name="l00038"></a>00038 <span class="keyword">class </span>XMLMutex;
<a name="l00039"></a>00039
<a name="l00040"></a>00040 <span class="comment">//</span>
<a name="l00041"></a>00041 <span class="comment">// For internal use only</span>
<a name="l00042"></a>00042 <span class="comment">//</span>
<a name="l00043"></a>00043 <span class="comment">// This class provides a simple abstract API via which lazily evaluated</span>
<a name="l00044"></a>00044 <span class="comment">// data can be cleaned up.</span>
<a name="l00045"></a>00045 <span class="comment">//</span>
<a name="l00046"></a><a class="code" href="classxercesc_1_1XMLDeleter.html">00046</a> <span class="keyword">class </span>XMLUTIL_EXPORT <a class="code" href="classxercesc_1_1XMLDeleter.html">XMLDeleter</a>
<a name="l00047"></a>00047 {
<a name="l00048"></a>00048 <span class="keyword">public</span> :
<a name="l00049"></a>00049 <span class="keyword">virtual</span> ~<a class="code" href="classxercesc_1_1XMLDeleter.html">XMLDeleter</a>();
<a name="l00050"></a>00050
<a name="l00051"></a>00051 <span class="keyword">protected</span> :
<a name="l00052"></a>00052 <a class="code" href="classxercesc_1_1XMLDeleter.html">XMLDeleter</a>();
<a name="l00053"></a>00053
<a name="l00054"></a>00054 <span class="keyword">private</span> :
<a name="l00055"></a>00055 <a class="code" href="classxercesc_1_1XMLDeleter.html">XMLDeleter</a>(<span class="keyword">const</span> <a class="code" href="classxercesc_1_1XMLDeleter.html">XMLDeleter</a>&amp;);
<a name="l00056"></a>00056 <a class="code" href="classxercesc_1_1XMLDeleter.html">XMLDeleter</a>&amp; operator=(<span class="keyword">const</span> <a class="code" href="classxercesc_1_1XMLDeleter.html">XMLDeleter</a>&amp;);
<a name="l00057"></a>00057 };
<a name="l00058"></a>00058
<a name="l00059"></a>00059
<a name="l00068"></a><a class="code" href="classxercesc_1_1XMLPlatformUtils.html">00068</a> <span class="keyword">class </span>XMLUTIL_EXPORT <a class="code" href="classxercesc_1_1XMLPlatformUtils.html" title="Utilities that must be implemented in a platform-specific way.">XMLPlatformUtils</a>
<a name="l00069"></a>00069 {
<a name="l00070"></a>00070 <span class="keyword">public</span> :
<a name="l00071"></a>00071
<a name="l00074"></a>00074
<a name="l00087"></a><a class="code" href="classxercesc_1_1XMLPlatformUtils.html#a6e4eda2fc24324bb88266ef99c79f66c">00087</a> <span class="keyword">static</span> XMLNetAccessor* fgNetAccessor;
<a name="l00088"></a>00088
<a name="l00099"></a><a class="code" href="classxercesc_1_1XMLPlatformUtils.html#a189b268974c4e937e22a1f6fc4ee7ab3">00099</a> <span class="keyword">static</span> XMLTransService* fgTransService;
<a name="l00100"></a>00100 <span class="preprocessor">#ifdef OS390</span>
<a name="l00101"></a>00101 <span class="preprocessor"></span> <span class="keyword">static</span> XMLTransService* fgTransService2;
<a name="l00102"></a>00102 <span class="preprocessor">#endif</span>
<a name="l00103"></a>00103 <span class="preprocessor"></span>
<a name="l00108"></a><a class="code" href="classxercesc_1_1XMLPlatformUtils.html#a26ff562f840d78b925e1ff4755b513e9">00108</a> <span class="keyword">static</span> PanicHandler* fgUserPanicHandler;
<a name="l00109"></a>00109
<a name="l00114"></a><a class="code" href="classxercesc_1_1XMLPlatformUtils.html#adcd97086ea0267e69bad7a7401ed93a5">00114</a> <span class="keyword">static</span> PanicHandler* fgDefaultPanicHandler;
<a name="l00115"></a>00115
<a name="l00121"></a><a class="code" href="classxercesc_1_1XMLPlatformUtils.html#a2521473ea52894e9313573d330a264b4">00121</a> <span class="keyword">static</span> <a class="code" href="classxercesc_1_1MemoryManager.html" title="Configurable memory manager.">MemoryManager</a>* fgMemoryManager;
<a name="l00122"></a>00122
<a name="l00123"></a><a class="code" href="classxercesc_1_1XMLPlatformUtils.html#a57dbb6a237fbfbb4c3807a58cc07a50e">00123</a> <span class="keyword">static</span> XMLFileMgr* fgFileMgr;
<a name="l00124"></a><a class="code" href="classxercesc_1_1XMLPlatformUtils.html#a0b0f7c69af1a83bd042f83a0ac6e21f1">00124</a> <span class="keyword">static</span> XMLMutexMgr* fgMutexMgr;
<a name="l00125"></a>00125
<a name="l00132"></a><a class="code" href="classxercesc_1_1XMLPlatformUtils.html#a290cdb4f617a825e9217c5613ee97881">00132</a> <span class="keyword">static</span> XMLMutex* fgAtomicMutex;
<a name="l00133"></a>00133
<a name="l00134"></a><a class="code" href="classxercesc_1_1XMLPlatformUtils.html#a6c017906c604f8c6a349e1ccca17620c">00134</a> <span class="keyword">static</span> <span class="keywordtype">bool</span> fgXMLChBigEndian;
<a name="l00135"></a>00135
<a name="l00137"></a>00137
<a name="l00138"></a>00138
<a name="l00141"></a>00141
<a name="l00173"></a>00173 <span class="keyword">static</span> <span class="keywordtype">void</span> Initialize(<span class="keyword">const</span> <span class="keywordtype">char</span>* <span class="keyword">const</span> locale = XMLUni::fgXercescDefaultLocale
<a name="l00174"></a>00174 , <span class="keyword">const</span> <span class="keywordtype">char</span>* <span class="keyword">const</span> nlsHome = 0
<a name="l00175"></a>00175 , PanicHandler* <span class="keyword">const</span> panicHandler = 0
<a name="l00176"></a>00176 , <a class="code" href="classxercesc_1_1MemoryManager.html" title="Configurable memory manager.">MemoryManager</a>* <span class="keyword">const</span> memoryManager = 0);
<a name="l00177"></a>00177
<a name="l00227"></a>00227 <span class="keyword">static</span> <span class="keywordtype">void</span> Initialize(XMLSize_t initialDOMHeapAllocSize
<a name="l00228"></a>00228 , XMLSize_t maxDOMHeapAllocSize
<a name="l00229"></a>00229 , XMLSize_t maxDOMSubAllocationSize
<a name="l00230"></a>00230 , <span class="keyword">const</span> <span class="keywordtype">char</span>* <span class="keyword">const</span> locale = XMLUni::fgXercescDefaultLocale
<a name="l00231"></a>00231 , <span class="keyword">const</span> <span class="keywordtype">char</span>* <span class="keyword">const</span> nlsHome = 0
<a name="l00232"></a>00232 , PanicHandler* <span class="keyword">const</span> panicHandler = 0
<a name="l00233"></a>00233 , <a class="code" href="classxercesc_1_1MemoryManager.html" title="Configurable memory manager.">MemoryManager</a>* <span class="keyword">const</span> memoryManager = 0);
<a name="l00234"></a>00234
<a name="l00241"></a>00241 <span class="keyword">static</span> <span class="keywordtype">void</span> Terminate();
<a name="l00242"></a>00242
<a name="l00259"></a>00259 <span class="keyword">static</span> <span class="keywordtype">void</span> panic
<a name="l00260"></a>00260 (
<a name="l00261"></a>00261 <span class="keyword">const</span> PanicHandler::PanicReasons reason
<a name="l00262"></a>00262 );
<a name="l00263"></a>00263
<a name="l00265"></a>00265
<a name="l00268"></a>00268
<a name="l00273"></a>00273 <span class="keyword">static</span> XMLFileMgr* makeFileMgr(<a class="code" href="classxercesc_1_1MemoryManager.html" title="Configurable memory manager.">MemoryManager</a>* <span class="keyword">const</span> manager);
<a name="l00274"></a>00274
<a name="l00288"></a>00288 <span class="keyword">static</span> XMLFilePos curFilePos(FileHandle theFile
<a name="l00289"></a>00289 , <a class="code" href="classxercesc_1_1MemoryManager.html" title="Configurable memory manager.">MemoryManager</a>* <span class="keyword">const</span> manager = XMLPlatformUtils::fgMemoryManager);
<a name="l00290"></a>00290
<a name="l00301"></a>00301 <span class="keyword">static</span> <span class="keywordtype">void</span> closeFile(FileHandle theFile
<a name="l00302"></a>00302 , <a class="code" href="classxercesc_1_1MemoryManager.html" title="Configurable memory manager.">MemoryManager</a>* <span class="keyword">const</span> manager = XMLPlatformUtils::fgMemoryManager);
<a name="l00303"></a>00303
<a name="l00314"></a>00314 <span class="keyword">static</span> XMLFilePos fileSize(FileHandle theFile
<a name="l00315"></a>00315 , <a class="code" href="classxercesc_1_1MemoryManager.html" title="Configurable memory manager.">MemoryManager</a>* <span class="keyword">const</span> manager = XMLPlatformUtils::fgMemoryManager);
<a name="l00316"></a>00316
<a name="l00327"></a>00327 <span class="keyword">static</span> FileHandle openFile(<span class="keyword">const</span> <span class="keywordtype">char</span>* <span class="keyword">const</span> fileName
<a name="l00328"></a>00328 , <a class="code" href="classxercesc_1_1MemoryManager.html" title="Configurable memory manager.">MemoryManager</a>* <span class="keyword">const</span> manager = XMLPlatformUtils::fgMemoryManager);
<a name="l00329"></a>00329
<a name="l00340"></a>00340 <span class="keyword">static</span> FileHandle openFile(<span class="keyword">const</span> XMLCh* <span class="keyword">const</span> fileName
<a name="l00341"></a>00341 , <a class="code" href="classxercesc_1_1MemoryManager.html" title="Configurable memory manager.">MemoryManager</a>* <span class="keyword">const</span> manager = XMLPlatformUtils::fgMemoryManager);
<a name="l00342"></a>00342
<a name="l00353"></a>00353 <span class="keyword">static</span> FileHandle openFileToWrite(<span class="keyword">const</span> <span class="keywordtype">char</span>* <span class="keyword">const</span> fileName
<a name="l00354"></a>00354 , <a class="code" href="classxercesc_1_1MemoryManager.html" title="Configurable memory manager.">MemoryManager</a>* <span class="keyword">const</span> manager = XMLPlatformUtils::fgMemoryManager);
<a name="l00355"></a>00355
<a name="l00366"></a>00366 <span class="keyword">static</span> FileHandle openFileToWrite(<span class="keyword">const</span> XMLCh* <span class="keyword">const</span> fileName
<a name="l00367"></a>00367 , <a class="code" href="classxercesc_1_1MemoryManager.html" title="Configurable memory manager.">MemoryManager</a>* <span class="keyword">const</span> manager = XMLPlatformUtils::fgMemoryManager);
<a name="l00368"></a>00368
<a name="l00379"></a>00379 <span class="keyword">static</span> FileHandle openStdInHandle(<a class="code" href="classxercesc_1_1MemoryManager.html" title="Configurable memory manager.">MemoryManager</a>* <span class="keyword">const</span> manager = XMLPlatformUtils::fgMemoryManager);
<a name="l00380"></a>00380
<a name="l00397"></a>00397 <span class="keyword">static</span> XMLSize_t readFileBuffer
<a name="l00398"></a>00398 (
<a name="l00399"></a>00399 FileHandle theFile
<a name="l00400"></a>00400 , <span class="keyword">const</span> XMLSize_t toRead
<a name="l00401"></a>00401 , XMLByte* <span class="keyword">const</span> toFill
<a name="l00402"></a>00402 , <a class="code" href="classxercesc_1_1MemoryManager.html" title="Configurable memory manager.">MemoryManager</a>* <span class="keyword">const</span> manager = XMLPlatformUtils::fgMemoryManager
<a name="l00403"></a>00403 );
<a name="l00404"></a>00404
<a name="l00419"></a>00419 <span class="keyword">static</span> <span class="keywordtype">void</span> writeBufferToFile
<a name="l00420"></a>00420 (
<a name="l00421"></a>00421 FileHandle <span class="keyword">const</span> theFile
<a name="l00422"></a>00422 , XMLSize_t toWrite
<a name="l00423"></a>00423 , <span class="keyword">const</span> XMLByte* <span class="keyword">const</span> toFlush
<a name="l00424"></a>00424 , <a class="code" href="classxercesc_1_1MemoryManager.html" title="Configurable memory manager.">MemoryManager</a>* <span class="keyword">const</span> manager = XMLPlatformUtils::fgMemoryManager
<a name="l00425"></a>00425 );
<a name="l00426"></a>00426
<a name="l00436"></a>00436 <span class="keyword">static</span> <span class="keywordtype">void</span> resetFile(FileHandle theFile
<a name="l00437"></a>00437 , <a class="code" href="classxercesc_1_1MemoryManager.html" title="Configurable memory manager.">MemoryManager</a>* <span class="keyword">const</span> manager = XMLPlatformUtils::fgMemoryManager);
<a name="l00438"></a>00438
<a name="l00440"></a>00440
<a name="l00441"></a>00441
<a name="l00465"></a>00465 <span class="keyword">static</span> XMLCh* getFullPath
<a name="l00466"></a>00466 (
<a name="l00467"></a>00467 <span class="keyword">const</span> XMLCh* <span class="keyword">const</span> srcPath
<a name="l00468"></a>00468 , <a class="code" href="classxercesc_1_1MemoryManager.html" title="Configurable memory manager.">MemoryManager</a>* <span class="keyword">const</span> manager = XMLPlatformUtils::fgMemoryManager
<a name="l00469"></a>00469 );
<a name="l00470"></a>00470
<a name="l00484"></a>00484 <span class="keyword">static</span> XMLCh* getCurrentDirectory
<a name="l00485"></a>00485 (
<a name="l00486"></a>00486 <a class="code" href="classxercesc_1_1MemoryManager.html" title="Configurable memory manager.">MemoryManager</a>* <span class="keyword">const</span> manager = XMLPlatformUtils::fgMemoryManager
<a name="l00487"></a>00487 );
<a name="l00488"></a>00488
<a name="l00498"></a>00498 <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">bool</span> isAnySlash(XMLCh c);
<a name="l00499"></a>00499
<a name="l00509"></a>00509 <span class="keyword">static</span> <span class="keywordtype">void</span> removeDotSlash(XMLCh* <span class="keyword">const</span> srcPath
<a name="l00510"></a>00510 , <a class="code" href="classxercesc_1_1MemoryManager.html" title="Configurable memory manager.">MemoryManager</a>* <span class="keyword">const</span> manager = XMLPlatformUtils::fgMemoryManager);
<a name="l00511"></a>00511
<a name="l00522"></a>00522 <span class="keyword">static</span> <span class="keywordtype">void</span> removeDotDotSlash(XMLCh* <span class="keyword">const</span> srcPath
<a name="l00523"></a>00523 , <a class="code" href="classxercesc_1_1MemoryManager.html" title="Configurable memory manager.">MemoryManager</a>* <span class="keyword">const</span> manager = XMLPlatformUtils::fgMemoryManager);
<a name="l00524"></a>00524
<a name="l00538"></a>00538 <span class="keyword">static</span> <span class="keywordtype">bool</span> isRelative(<span class="keyword">const</span> XMLCh* <span class="keyword">const</span> toCheck
<a name="l00539"></a>00539 , <a class="code" href="classxercesc_1_1MemoryManager.html" title="Configurable memory manager.">MemoryManager</a>* <span class="keyword">const</span> manager = XMLPlatformUtils::fgMemoryManager
<a name="l00540"></a>00540 );
<a name="l00541"></a>00541
<a name="l00561"></a>00561 <span class="keyword">static</span> XMLCh* weavePaths
<a name="l00562"></a>00562 (
<a name="l00563"></a>00563 <span class="keyword">const</span> XMLCh* <span class="keyword">const</span> basePath
<a name="l00564"></a>00564 , <span class="keyword">const</span> XMLCh* <span class="keyword">const</span> relativePath
<a name="l00565"></a>00565 , <a class="code" href="classxercesc_1_1MemoryManager.html" title="Configurable memory manager.">MemoryManager</a>* <span class="keyword">const</span> manager = XMLPlatformUtils::fgMemoryManager
<a name="l00566"></a>00566 );
<a name="l00568"></a>00568
<a name="l00571"></a>00571
<a name="l00581"></a>00581 <span class="keyword">static</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> getCurrentMillis();
<a name="l00583"></a>00583
<a name="l00586"></a>00586
<a name="l00594"></a>00594 <span class="keyword">static</span> XMLMutexMgr* makeMutexMgr(<a class="code" href="classxercesc_1_1MemoryManager.html" title="Configurable memory manager.">MemoryManager</a>* <span class="keyword">const</span> manager);
<a name="l00595"></a>00595
<a name="l00604"></a>00604 <span class="keyword">static</span> <span class="keywordtype">void</span> closeMutex(<span class="keywordtype">void</span>* <span class="keyword">const</span> mtxHandle, <a class="code" href="classxercesc_1_1MemoryManager.html" title="Configurable memory manager.">MemoryManager</a>* <span class="keyword">const</span> manager = XMLPlatformUtils::fgMemoryManager);
<a name="l00605"></a>00605
<a name="l00613"></a>00613 <span class="keyword">static</span> <span class="keywordtype">void</span> lockMutex(<span class="keywordtype">void</span>* <span class="keyword">const</span> mtxHandle);
<a name="l00614"></a>00614
<a name="l00624"></a>00624 <span class="keyword">static</span> <span class="keywordtype">void</span>* makeMutex(<a class="code" href="classxercesc_1_1MemoryManager.html" title="Configurable memory manager.">MemoryManager</a>* <span class="keyword">const</span> manager = XMLPlatformUtils::fgMemoryManager);
<a name="l00625"></a>00625
<a name="l00638"></a>00638 <span class="keyword">static</span> <span class="keywordtype">void</span> unlockMutex(<span class="keywordtype">void</span>* <span class="keyword">const</span> mtxHandle);
<a name="l00639"></a>00639
<a name="l00641"></a>00641
<a name="l00642"></a>00642
<a name="l00645"></a>00645
<a name="l00653"></a>00653 <span class="keyword">static</span> XMLMsgLoader* loadMsgSet(<span class="keyword">const</span> XMLCh* <span class="keyword">const</span> msgDomain);
<a name="l00654"></a>00654
<a name="l00656"></a>00656
<a name="l00657"></a>00657
<a name="l00671"></a>00671 <span class="keyword">static</span> <span class="keywordtype">void</span> recognizeNEL(<span class="keywordtype">bool</span> state
<a name="l00672"></a>00672 , <a class="code" href="classxercesc_1_1MemoryManager.html" title="Configurable memory manager.">MemoryManager</a>* <span class="keyword">const</span> manager = XMLPlatformUtils::fgMemoryManager);
<a name="l00673"></a>00673
<a name="l00677"></a>00677 <span class="keyword">static</span> <span class="keywordtype">bool</span> isNELRecognized();
<a name="l00679"></a>00679
<a name="l00691"></a>00691 <span class="keyword">static</span> <span class="keywordtype">void</span> strictIANAEncoding(<span class="keyword">const</span> <span class="keywordtype">bool</span> state);
<a name="l00692"></a>00692
<a name="l00697"></a>00697 <span class="keyword">static</span> <span class="keywordtype">bool</span> isStrictIANAEncoding();
<a name="l00699"></a>00699
<a name="l00707"></a>00707 <span class="keyword">static</span> <span class="keyword">inline</span> XMLSize_t alignPointerForNewBlockAllocation(XMLSize_t ptrSize);
<a name="l00708"></a>00708
<a name="l00709"></a>00709 <span class="keyword">private</span> :
<a name="l00710"></a>00710 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00711"></a>00711 <span class="comment">// Unimplemented constructors and operators</span>
<a name="l00712"></a>00712 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00713"></a>00713 <a class="code" href="classxercesc_1_1XMLPlatformUtils.html" title="Utilities that must be implemented in a platform-specific way.">XMLPlatformUtils</a>();
<a name="l00714"></a>00714
<a name="l00717"></a>00717
<a name="l00723"></a>00723 <span class="keyword">static</span> XMLMsgLoader* loadAMsgSet(<span class="keyword">const</span> XMLCh* <span class="keyword">const</span> msgDomain);
<a name="l00724"></a>00724
<a name="l00734"></a>00734 <span class="keyword">static</span> XMLNetAccessor* makeNetAccessor();
<a name="l00735"></a>00735
<a name="l00746"></a>00746 <span class="keyword">static</span> XMLTransService* makeTransService();
<a name="l00747"></a>00747
<a name="l00755"></a>00755 <span class="keyword">static</span> <span class="keywordtype">int</span> searchSlashDotDotSlash(XMLCh* <span class="keyword">const</span> srcPath);
<a name="l00756"></a>00756
<a name="l00758"></a>00758
<a name="l00761"></a>00761
<a name="l00768"></a>00768 <span class="keyword">static</span> <span class="keywordtype">bool</span> fgMemMgrAdopted;
<a name="l00769"></a>00769
<a name="l00771"></a>00771 };
<a name="l00772"></a>00772
<a name="l00773"></a>00773
<a name="l00774"></a><a class="code" href="namespacexercesc.html#a4c24df359857473495de264843cde19a">00774</a> <a class="code" href="namespacexercesc.html#a4c24df359857473495de264843cde19a">MakeXMLException</a>(XMLPlatformUtilsException, XMLUTIL_EXPORT)
<a name="l00775"></a>00775
<a name="l00776"></a>00776
<a name="l00777"></a>00777 <span class="comment">// ---------------------------------------------------------------------------</span>
<a name="l00778"></a>00778 <span class="comment">// XMLPlatformUtils: alignPointerForNewBlockAllocation</span>
<a name="l00779"></a>00779 <span class="comment">// ---------------------------------------------------------------------------</span>
<a name="l00780"></a>00780 <span class="comment">// Calculate alignment required by platform for a new</span>
<a name="l00781"></a>00781 <span class="comment">// block allocation. We use this in our custom allocators</span>
<a name="l00782"></a>00782 <span class="comment">// to ensure that returned blocks are properly aligned.</span>
<a name="l00783"></a>00783 <span class="comment">// Note that, although this will take a pointer and return the position</span>
<a name="l00784"></a>00784 <span class="comment">// at which it should be placed for correct alignment, in our code</span>
<a name="l00785"></a>00785 <span class="comment">// we normally use XMLSize_t parameters to discover what the alignment</span>
<a name="l00786"></a>00786 <span class="comment">// of header blocks should be. Thus, if this is to be</span>
<a name="l00787"></a>00787 <span class="comment">// used for the former purpose, to make compilers happy</span>
<a name="l00788"></a>00788 <span class="comment">// some casting will be necessary - neilg.</span>
<a name="l00789"></a>00789 <span class="comment">//</span>
<a name="l00790"></a>00790 <span class="comment">// Note: XML_PLATFORM_NEW_BLOCK_ALIGNMENT may be specified on a</span>
<a name="l00791"></a>00791 <span class="comment">// per-architecture basis to dictate the alignment requirements</span>
<a name="l00792"></a>00792 <span class="comment">// of the architecture. In the absense of this specification,</span>
<a name="l00793"></a>00793 <span class="comment">// this routine guesses at the correct alignment value.</span>
<a name="l00794"></a>00794 <span class="comment">//</span>
<a name="l00795"></a>00795 <span class="comment">// A XML_PLATFORM_NEW_BLOCK_ALIGNMENT value of zero is illegal.</span>
<a name="l00796"></a>00796 <span class="comment">// If a platform requires absolutely no alignment, a value</span>
<a name="l00797"></a>00797 <span class="comment">// of 1 should be specified (&quot;align pointers on 1 byte boundaries&quot;).</span>
<a name="l00798"></a>00798 <span class="comment">//</span>
<a name="l00799"></a>00799 inline XMLSize_t
<a name="l00800"></a>00800 <a class="code" href="classxercesc_1_1XMLPlatformUtils.html" title="Utilities that must be implemented in a platform-specific way.">XMLPlatformUtils</a>::alignPointerForNewBlockAllocation(XMLSize_t ptrSize)
<a name="l00801"></a>00801 {
<a name="l00802"></a>00802 <span class="comment">// Macro XML_PLATFORM_NEW_BLOCK_ALIGNMENT may be defined</span>
<a name="l00803"></a>00803 <span class="comment">// as needed to dictate alignment requirements on a</span>
<a name="l00804"></a>00804 <span class="comment">// per-architecture basis. In the absense of that we</span>
<a name="l00805"></a>00805 <span class="comment">// take an educated guess.</span>
<a name="l00806"></a>00806 <span class="preprocessor">#ifdef XML_PLATFORM_NEW_BLOCK_ALIGNMENT</span>
<a name="l00807"></a>00807 <span class="preprocessor"></span> <span class="keyword">static</span> <span class="keyword">const</span> XMLSize_t alignment = XML_PLATFORM_NEW_BLOCK_ALIGNMENT;
<a name="l00808"></a>00808 <span class="preprocessor">#else</span>
<a name="l00809"></a>00809 <span class="preprocessor"></span> <span class="keyword">static</span> <span class="keyword">const</span> XMLSize_t alignment = (<span class="keyword">sizeof</span>(<span class="keywordtype">void</span>*) &gt;= <span class="keyword">sizeof</span>(<span class="keywordtype">double</span>)) ? <span class="keyword">sizeof</span>(<span class="keywordtype">void</span>*) : <span class="keyword">sizeof</span>(double);
<a name="l00810"></a>00810 <span class="preprocessor">#endif</span>
<a name="l00811"></a>00811 <span class="preprocessor"></span>
<a name="l00812"></a>00812 <span class="comment">// Calculate current alignment of pointer</span>
<a name="l00813"></a>00813 XMLSize_t current = ptrSize % alignment;
<a name="l00814"></a>00814
<a name="l00815"></a>00815 <span class="comment">// Adjust pointer alignment as needed</span>
<a name="l00816"></a>00816 <span class="keywordflow">return</span> (current == 0)
<a name="l00817"></a>00817 ? ptrSize
<a name="l00818"></a>00818 : (ptrSize + alignment - current);
<a name="l00819"></a>00819 }
<a name="l00820"></a>00820
<a name="l00821"></a>00821
<a name="l00822"></a>00822
<a name="l00823"></a>00823 <span class="comment">// ---------------------------------------------------------------------------</span>
<a name="l00824"></a>00824 <span class="comment">// XMLDeleter: Public Destructor</span>
<a name="l00825"></a>00825 <span class="comment">// ---------------------------------------------------------------------------</span>
<a name="l00826"></a><a class="code" href="classxercesc_1_1XMLDeleter.html#a945e3f144ab339164855fbeb57094e9c">00826</a> <span class="keyword">inline</span> XMLDeleter::~XMLDeleter()
<a name="l00827"></a>00827 {
<a name="l00828"></a>00828 }
<a name="l00829"></a>00829
<a name="l00830"></a>00830 <span class="comment">// ---------------------------------------------------------------------------</span>
<a name="l00831"></a>00831 <span class="comment">// XMLDeleter: Hidden constructors and operators</span>
<a name="l00832"></a>00832 <span class="comment">// ---------------------------------------------------------------------------</span>
<a name="l00833"></a><a class="code" href="classxercesc_1_1XMLDeleter.html#aa675cce1ed0974a1cffc5a70df20cd45">00833</a> <span class="keyword">inline</span> <a class="code" href="classxercesc_1_1XMLDeleter.html#aa675cce1ed0974a1cffc5a70df20cd45">XMLDeleter::XMLDeleter</a>()
<a name="l00834"></a>00834 {
<a name="l00835"></a>00835 }
<a name="l00836"></a>00836
<a name="l00837"></a>00837 XERCES_CPP_NAMESPACE_END
<a name="l00838"></a>00838
<a name="l00839"></a>00839 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Fri Nov 13 15:00:06 2009 for XQilla DOM Level 3 API by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
</body>
</html>