Initial import

git-svn-id: http://moon:8086/svn/software/trunk/libsrc/xerces-c-3.0.0@1 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
2014-07-19 07:44:42 +00:00
commit adea0d681b
4108 changed files with 701993 additions and 0 deletions
+325
View File
@@ -0,0 +1,325 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Xerces-C++: PlatformUtils.hpp Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.4 -->
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="classes.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li><a href="pages.html"><span>Related&nbsp;Pages</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 "License"); 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 "AS IS" 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#5c06cf8ae584da071b74e1d4287f2d3b">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;<a class="code" href="XercesDefs_8hpp.html">xercesc/util/XercesDefs.hpp</a>&gt;</span>
<a name="l00026"></a>00026 <span class="preprocessor">#include &lt;<a class="code" href="XMLException_8hpp.html">xercesc/util/XMLException.hpp</a>&gt;</span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;<a class="code" href="PanicHandler_8hpp.html">xercesc/util/PanicHandler.hpp</a>&gt;</span>
<a name="l00028"></a>00028
<a name="l00029"></a>00029 <span class="preprocessor">#include &lt;<a class="code" href="XMLFileMgr_8hpp.html">xercesc/util/XMLFileMgr.hpp</a>&gt;</span>
<a name="l00030"></a>00030 <span class="preprocessor">#include &lt;<a class="code" href="XMLMutexMgr_8hpp.html">xercesc/util/XMLMutexMgr.hpp</a>&gt;</span>
<a name="l00031"></a>00031
<a name="l00032"></a>00032 <a class="code" href="XercesDefs_8hpp.html#43d74fa53d868d978f3e97cbb78b194d">XERCES_CPP_NAMESPACE_BEGIN</a>
<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><a class="code" href="classXMLNetAccessor.html">XMLNetAccessor</a>;
<a name="l00036"></a>00036 <span class="keyword">class </span><a class="code" href="classXMLTransService.html">XMLTransService</a>;
<a name="l00037"></a>00037 <span class="keyword">class </span><a class="code" href="classMemoryManager.html" title="Configurable memory manager.">MemoryManager</a>;
<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="classXMLDeleter.html">00046</a> <span class="keyword">class </span><a class="code" href="XercesDefs_8hpp.html#97a524372e218133a8eb0aca39b4bd21">XMLUTIL_EXPORT</a> <a class="code" href="classXMLDeleter.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="classXMLDeleter.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="classXMLDeleter.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="classXMLDeleter.html">XMLDeleter</a>(<span class="keyword">const</span> <a class="code" href="classXMLDeleter.html">XMLDeleter</a>&amp;);
<a name="l00056"></a>00056 <a class="code" href="classXMLDeleter.html">XMLDeleter</a>&amp; operator=(<span class="keyword">const</span> <a class="code" href="classXMLDeleter.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="classXMLPlatformUtils.html">00068</a> <span class="keyword">class </span><a class="code" href="XercesDefs_8hpp.html#97a524372e218133a8eb0aca39b4bd21">XMLUTIL_EXPORT</a> <a class="code" href="classXMLPlatformUtils.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="classXMLPlatformUtils.html#6bbba118a3327b2e7c1952bf04de2787">00087</a> <span class="keyword">static</span> <a class="code" href="classXMLNetAccessor.html">XMLNetAccessor</a>* fgNetAccessor;
<a name="l00088"></a>00088
<a name="l00099"></a><a class="code" href="classXMLPlatformUtils.html#bb0ad83db922cbf891a70319b2e6702b">00099</a> <span class="keyword">static</span> <a class="code" href="classXMLTransService.html">XMLTransService</a>* 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> <a class="code" href="classXMLTransService.html">XMLTransService</a>* 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="classXMLPlatformUtils.html#ac6484e7073d5fb515ea791ee873b5bd">00108</a> <span class="keyword">static</span> <a class="code" href="classPanicHandler.html" title="Receive notification of panic.">PanicHandler</a>* fgUserPanicHandler;
<a name="l00109"></a>00109
<a name="l00114"></a><a class="code" href="classXMLPlatformUtils.html#db96471b53887380718f80e54934925f">00114</a> <span class="keyword">static</span> <a class="code" href="classPanicHandler.html" title="Receive notification of panic.">PanicHandler</a>* fgDefaultPanicHandler;
<a name="l00115"></a>00115
<a name="l00121"></a><a class="code" href="classXMLPlatformUtils.html#97eff0d9fff3567bea3acd3ca4d95252">00121</a> <span class="keyword">static</span> <a class="code" href="classMemoryManager.html" title="Configurable memory manager.">MemoryManager</a>* fgMemoryManager;
<a name="l00122"></a>00122
<a name="l00123"></a><a class="code" href="classXMLPlatformUtils.html#14ce4194a811184a9e1e17ca2adeee9d">00123</a> <span class="keyword">static</span> <a class="code" href="classXMLFileMgr.html">XMLFileMgr</a>* fgFileMgr;
<a name="l00124"></a><a class="code" href="classXMLPlatformUtils.html#28f0c7e21b0ccf29bb38c90a544ebc8f">00124</a> <span class="keyword">static</span> <a class="code" href="classXMLMutexMgr.html">XMLMutexMgr</a>* fgMutexMgr;
<a name="l00125"></a>00125
<a name="l00132"></a><a class="code" href="classXMLPlatformUtils.html#aa3859ca77bec01d7c5c4da4632ab761">00132</a> <span class="keyword">static</span> XMLMutex* fgAtomicMutex;
<a name="l00133"></a>00133
<a name="l00134"></a><a class="code" href="classXMLPlatformUtils.html#5d963ab2acfd08abcfcaab3a7e5819d2">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 = <a class="code" href="classXMLUni.html#65fb61efef197f1387836a339477ab5e">XMLUni::fgXercescDefaultLocale</a>
<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 , <a class="code" href="classPanicHandler.html" title="Receive notification of panic.">PanicHandler</a>* <span class="keyword">const</span> panicHandler = 0
<a name="l00176"></a>00176 , <a class="code" href="classMemoryManager.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(<a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#c0f7e36996cd03eb43bcee10321f77cd">XMLSize_t</a> initialDOMHeapAllocSize
<a name="l00228"></a>00228 , <a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#c0f7e36996cd03eb43bcee10321f77cd">XMLSize_t</a> maxDOMHeapAllocSize
<a name="l00229"></a>00229 , <a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#c0f7e36996cd03eb43bcee10321f77cd">XMLSize_t</a> maxDOMSubAllocationSize
<a name="l00230"></a>00230 , <span class="keyword">const</span> <span class="keywordtype">char</span>* <span class="keyword">const</span> locale = <a class="code" href="classXMLUni.html#65fb61efef197f1387836a339477ab5e">XMLUni::fgXercescDefaultLocale</a>
<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 , <a class="code" href="classPanicHandler.html" title="Receive notification of panic.">PanicHandler</a>* <span class="keyword">const</span> panicHandler = 0
<a name="l00233"></a>00233 , <a class="code" href="classMemoryManager.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> <a class="code" href="classPanicHandler.html#ace4c4f408d68f168e1c2537e0ba5be2">PanicHandler::PanicReasons</a> 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> <a class="code" href="classXMLFileMgr.html">XMLFileMgr</a>* makeFileMgr(<a class="code" href="classMemoryManager.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> <a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#7647261a546ac47bda863a51d24ad898">XMLFilePos</a> curFilePos(<a class="code" href="XMLFileMgr_8hpp.html#6738b6a1cc86fbf4c231eac94e357446">FileHandle</a> theFile
<a name="l00289"></a>00289 , <a class="code" href="classMemoryManager.html" title="Configurable memory manager.">MemoryManager</a>* <span class="keyword">const</span> manager = <a class="code" href="classXMLPlatformUtils.html#97eff0d9fff3567bea3acd3ca4d95252" title="The configurable memory manager.">XMLPlatformUtils::fgMemoryManager</a>);
<a name="l00290"></a>00290
<a name="l00301"></a>00301 <span class="keyword">static</span> <span class="keywordtype">void</span> closeFile(<a class="code" href="XMLFileMgr_8hpp.html#6738b6a1cc86fbf4c231eac94e357446">FileHandle</a> theFile
<a name="l00302"></a>00302 , <a class="code" href="classMemoryManager.html" title="Configurable memory manager.">MemoryManager</a>* <span class="keyword">const</span> manager = <a class="code" href="classXMLPlatformUtils.html#97eff0d9fff3567bea3acd3ca4d95252" title="The configurable memory manager.">XMLPlatformUtils::fgMemoryManager</a>);
<a name="l00303"></a>00303
<a name="l00314"></a>00314 <span class="keyword">static</span> <a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#7647261a546ac47bda863a51d24ad898">XMLFilePos</a> fileSize(<a class="code" href="XMLFileMgr_8hpp.html#6738b6a1cc86fbf4c231eac94e357446">FileHandle</a> theFile
<a name="l00315"></a>00315 , <a class="code" href="classMemoryManager.html" title="Configurable memory manager.">MemoryManager</a>* <span class="keyword">const</span> manager = <a class="code" href="classXMLPlatformUtils.html#97eff0d9fff3567bea3acd3ca4d95252" title="The configurable memory manager.">XMLPlatformUtils::fgMemoryManager</a>);
<a name="l00316"></a>00316
<a name="l00327"></a>00327 <span class="keyword">static</span> <a class="code" href="XMLFileMgr_8hpp.html#6738b6a1cc86fbf4c231eac94e357446">FileHandle</a> 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="classMemoryManager.html" title="Configurable memory manager.">MemoryManager</a>* <span class="keyword">const</span> manager = <a class="code" href="classXMLPlatformUtils.html#97eff0d9fff3567bea3acd3ca4d95252" title="The configurable memory manager.">XMLPlatformUtils::fgMemoryManager</a>);
<a name="l00329"></a>00329
<a name="l00340"></a>00340 <span class="keyword">static</span> <a class="code" href="XMLFileMgr_8hpp.html#6738b6a1cc86fbf4c231eac94e357446">FileHandle</a> openFile(<span class="keyword">const</span> <a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#8cb107980a360c490ad7661f5d27cc0e">XMLCh</a>* <span class="keyword">const</span> fileName
<a name="l00341"></a>00341 , <a class="code" href="classMemoryManager.html" title="Configurable memory manager.">MemoryManager</a>* <span class="keyword">const</span> manager = <a class="code" href="classXMLPlatformUtils.html#97eff0d9fff3567bea3acd3ca4d95252" title="The configurable memory manager.">XMLPlatformUtils::fgMemoryManager</a>);
<a name="l00342"></a>00342
<a name="l00353"></a>00353 <span class="keyword">static</span> <a class="code" href="XMLFileMgr_8hpp.html#6738b6a1cc86fbf4c231eac94e357446">FileHandle</a> 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="classMemoryManager.html" title="Configurable memory manager.">MemoryManager</a>* <span class="keyword">const</span> manager = <a class="code" href="classXMLPlatformUtils.html#97eff0d9fff3567bea3acd3ca4d95252" title="The configurable memory manager.">XMLPlatformUtils::fgMemoryManager</a>);
<a name="l00355"></a>00355
<a name="l00366"></a>00366 <span class="keyword">static</span> <a class="code" href="XMLFileMgr_8hpp.html#6738b6a1cc86fbf4c231eac94e357446">FileHandle</a> openFileToWrite(<span class="keyword">const</span> <a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#8cb107980a360c490ad7661f5d27cc0e">XMLCh</a>* <span class="keyword">const</span> fileName
<a name="l00367"></a>00367 , <a class="code" href="classMemoryManager.html" title="Configurable memory manager.">MemoryManager</a>* <span class="keyword">const</span> manager = <a class="code" href="classXMLPlatformUtils.html#97eff0d9fff3567bea3acd3ca4d95252" title="The configurable memory manager.">XMLPlatformUtils::fgMemoryManager</a>);
<a name="l00368"></a>00368
<a name="l00379"></a>00379 <span class="keyword">static</span> <a class="code" href="XMLFileMgr_8hpp.html#6738b6a1cc86fbf4c231eac94e357446">FileHandle</a> openStdInHandle(<a class="code" href="classMemoryManager.html" title="Configurable memory manager.">MemoryManager</a>* <span class="keyword">const</span> manager = <a class="code" href="classXMLPlatformUtils.html#97eff0d9fff3567bea3acd3ca4d95252" title="The configurable memory manager.">XMLPlatformUtils::fgMemoryManager</a>);
<a name="l00380"></a>00380
<a name="l00397"></a>00397 <span class="keyword">static</span> <a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#c0f7e36996cd03eb43bcee10321f77cd">XMLSize_t</a> readFileBuffer
<a name="l00398"></a>00398 (
<a name="l00399"></a>00399 <a class="code" href="XMLFileMgr_8hpp.html#6738b6a1cc86fbf4c231eac94e357446">FileHandle</a> theFile
<a name="l00400"></a>00400 , <span class="keyword">const</span> <a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#c0f7e36996cd03eb43bcee10321f77cd">XMLSize_t</a> toRead
<a name="l00401"></a>00401 , <a class="code" href="XercesDefs_8hpp.html#7470c7a32c59355685ebcd878a33f126">XMLByte</a>* <span class="keyword">const</span> toFill
<a name="l00402"></a>00402 , <a class="code" href="classMemoryManager.html" title="Configurable memory manager.">MemoryManager</a>* <span class="keyword">const</span> manager = <a class="code" href="classXMLPlatformUtils.html#97eff0d9fff3567bea3acd3ca4d95252" title="The configurable memory manager.">XMLPlatformUtils::fgMemoryManager</a>
<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 <a class="code" href="XMLFileMgr_8hpp.html#6738b6a1cc86fbf4c231eac94e357446">FileHandle</a> <span class="keyword">const</span> theFile
<a name="l00422"></a>00422 , <a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#c0f7e36996cd03eb43bcee10321f77cd">XMLSize_t</a> toWrite
<a name="l00423"></a>00423 , <span class="keyword">const</span> <a class="code" href="XercesDefs_8hpp.html#7470c7a32c59355685ebcd878a33f126">XMLByte</a>* <span class="keyword">const</span> toFlush
<a name="l00424"></a>00424 , <a class="code" href="classMemoryManager.html" title="Configurable memory manager.">MemoryManager</a>* <span class="keyword">const</span> manager = <a class="code" href="classXMLPlatformUtils.html#97eff0d9fff3567bea3acd3ca4d95252" title="The configurable memory manager.">XMLPlatformUtils::fgMemoryManager</a>
<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(<a class="code" href="XMLFileMgr_8hpp.html#6738b6a1cc86fbf4c231eac94e357446">FileHandle</a> theFile
<a name="l00437"></a>00437 , <a class="code" href="classMemoryManager.html" title="Configurable memory manager.">MemoryManager</a>* <span class="keyword">const</span> manager = <a class="code" href="classXMLPlatformUtils.html#97eff0d9fff3567bea3acd3ca4d95252" title="The configurable memory manager.">XMLPlatformUtils::fgMemoryManager</a>);
<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> <a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#8cb107980a360c490ad7661f5d27cc0e">XMLCh</a>* getFullPath
<a name="l00466"></a>00466 (
<a name="l00467"></a>00467 <span class="keyword">const</span> <a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#8cb107980a360c490ad7661f5d27cc0e">XMLCh</a>* <span class="keyword">const</span> srcPath
<a name="l00468"></a>00468 , <a class="code" href="classMemoryManager.html" title="Configurable memory manager.">MemoryManager</a>* <span class="keyword">const</span> manager = <a class="code" href="classXMLPlatformUtils.html#97eff0d9fff3567bea3acd3ca4d95252" title="The configurable memory manager.">XMLPlatformUtils::fgMemoryManager</a>
<a name="l00469"></a>00469 );
<a name="l00470"></a>00470
<a name="l00484"></a>00484 <span class="keyword">static</span> <a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#8cb107980a360c490ad7661f5d27cc0e">XMLCh</a>* getCurrentDirectory
<a name="l00485"></a>00485 (
<a name="l00486"></a>00486 <a class="code" href="classMemoryManager.html" title="Configurable memory manager.">MemoryManager</a>* <span class="keyword">const</span> manager = <a class="code" href="classXMLPlatformUtils.html#97eff0d9fff3567bea3acd3ca4d95252" title="The configurable memory manager.">XMLPlatformUtils::fgMemoryManager</a>
<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(<a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> c);
<a name="l00499"></a>00499
<a name="l00509"></a>00509 <span class="keyword">static</span> <span class="keywordtype">void</span> removeDotSlash(<a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#8cb107980a360c490ad7661f5d27cc0e">XMLCh</a>* <span class="keyword">const</span> srcPath
<a name="l00510"></a>00510 , <a class="code" href="classMemoryManager.html" title="Configurable memory manager.">MemoryManager</a>* <span class="keyword">const</span> manager = <a class="code" href="classXMLPlatformUtils.html#97eff0d9fff3567bea3acd3ca4d95252" title="The configurable memory manager.">XMLPlatformUtils::fgMemoryManager</a>);
<a name="l00511"></a>00511
<a name="l00522"></a>00522 <span class="keyword">static</span> <span class="keywordtype">void</span> removeDotDotSlash(<a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#8cb107980a360c490ad7661f5d27cc0e">XMLCh</a>* <span class="keyword">const</span> srcPath
<a name="l00523"></a>00523 , <a class="code" href="classMemoryManager.html" title="Configurable memory manager.">MemoryManager</a>* <span class="keyword">const</span> manager = <a class="code" href="classXMLPlatformUtils.html#97eff0d9fff3567bea3acd3ca4d95252" title="The configurable memory manager.">XMLPlatformUtils::fgMemoryManager</a>);
<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> <a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#8cb107980a360c490ad7661f5d27cc0e">XMLCh</a>* <span class="keyword">const</span> toCheck
<a name="l00539"></a>00539 , <a class="code" href="classMemoryManager.html" title="Configurable memory manager.">MemoryManager</a>* <span class="keyword">const</span> manager = <a class="code" href="classXMLPlatformUtils.html#97eff0d9fff3567bea3acd3ca4d95252" title="The configurable memory manager.">XMLPlatformUtils::fgMemoryManager</a>
<a name="l00540"></a>00540 );
<a name="l00541"></a>00541
<a name="l00561"></a>00561 <span class="keyword">static</span> <a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#8cb107980a360c490ad7661f5d27cc0e">XMLCh</a>* weavePaths
<a name="l00562"></a>00562 (
<a name="l00563"></a>00563 <span class="keyword">const</span> <a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#8cb107980a360c490ad7661f5d27cc0e">XMLCh</a>* <span class="keyword">const</span> basePath
<a name="l00564"></a>00564 , <span class="keyword">const</span> <a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#8cb107980a360c490ad7661f5d27cc0e">XMLCh</a>* <span class="keyword">const</span> relativePath
<a name="l00565"></a>00565 , <a class="code" href="classMemoryManager.html" title="Configurable memory manager.">MemoryManager</a>* <span class="keyword">const</span> manager = <a class="code" href="classXMLPlatformUtils.html#97eff0d9fff3567bea3acd3ca4d95252" title="The configurable memory manager.">XMLPlatformUtils::fgMemoryManager</a>
<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> <a class="code" href="classXMLMutexMgr.html">XMLMutexMgr</a>* makeMutexMgr(<a class="code" href="classMemoryManager.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="classMemoryManager.html" title="Configurable memory manager.">MemoryManager</a>* <span class="keyword">const</span> manager = <a class="code" href="classXMLPlatformUtils.html#97eff0d9fff3567bea3acd3ca4d95252" title="The configurable memory manager.">XMLPlatformUtils::fgMemoryManager</a>);
<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="classMemoryManager.html" title="Configurable memory manager.">MemoryManager</a>* <span class="keyword">const</span> manager = <a class="code" href="classXMLPlatformUtils.html#97eff0d9fff3567bea3acd3ca4d95252" title="The configurable memory manager.">XMLPlatformUtils::fgMemoryManager</a>);
<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> <a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#8cb107980a360c490ad7661f5d27cc0e">XMLCh</a>* <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="classMemoryManager.html" title="Configurable memory manager.">MemoryManager</a>* <span class="keyword">const</span> manager = <a class="code" href="classXMLPlatformUtils.html#97eff0d9fff3567bea3acd3ca4d95252" title="The configurable memory manager.">XMLPlatformUtils::fgMemoryManager</a>);
<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> <a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#c0f7e36996cd03eb43bcee10321f77cd">XMLSize_t</a> alignPointerForNewBlockAllocation(<a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#c0f7e36996cd03eb43bcee10321f77cd">XMLSize_t</a> 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="classXMLPlatformUtils.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> <a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#8cb107980a360c490ad7661f5d27cc0e">XMLCh</a>* <span class="keyword">const</span> msgDomain);
<a name="l00724"></a>00724
<a name="l00734"></a>00734 <span class="keyword">static</span> <a class="code" href="classXMLNetAccessor.html">XMLNetAccessor</a>* makeNetAccessor();
<a name="l00735"></a>00735
<a name="l00746"></a>00746 <span class="keyword">static</span> <a class="code" href="classXMLTransService.html">XMLTransService</a>* makeTransService();
<a name="l00747"></a>00747
<a name="l00755"></a>00755 <span class="keyword">static</span> <span class="keywordtype">int</span> searchSlashDotDotSlash(<a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#8cb107980a360c490ad7661f5d27cc0e">XMLCh</a>* <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="PlatformUtils_8hpp.html#01eb3d17e652da6041c6f12038db8d1f">00774</a> <a class="code" href="XMLException_8hpp.html#57c0a8cea5d525b6091454d6a387e050">MakeXMLException</a>(XMLPlatformUtilsException, <a class="code" href="XercesDefs_8hpp.html#97a524372e218133a8eb0aca39b4bd21">XMLUTIL_EXPORT</a>)
<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 ("align pointers on 1 byte boundaries").</span>
<a name="l00798"></a>00798 <span class="comment">//</span>
<a name="l00799"></a>00799 inline <a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#c0f7e36996cd03eb43bcee10321f77cd">XMLSize_t</a>
<a name="l00800"></a>00800 <a class="code" href="classXMLPlatformUtils.html" title="Utilities that must be implemented in a platform-specific way.">XMLPlatformUtils</a>::alignPointerForNewBlockAllocation(<a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#c0f7e36996cd03eb43bcee10321f77cd">XMLSize_t</a> 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> <a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#c0f7e36996cd03eb43bcee10321f77cd">XMLSize_t</a> 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> <a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#c0f7e36996cd03eb43bcee10321f77cd">XMLSize_t</a> 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 <a class="code" href="Xerces__autoconf__config_8borland_8hpp.html#c0f7e36996cd03eb43bcee10321f77cd">XMLSize_t</a> 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="classXMLDeleter.html#23f136b5ae797442100a8dde98c3bc1b">00826</a> <span class="keyword">inline</span> <a class="code" href="classXMLDeleter.html#23f136b5ae797442100a8dde98c3bc1b">XMLDeleter::~XMLDeleter</a>()
<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="classXMLDeleter.html#34c158bd3663228d553e302bece2fb4b">00833</a> <span class="keyword">inline</span> <a class="code" href="classXMLDeleter.html#34c158bd3663228d553e302bece2fb4b">XMLDeleter::XMLDeleter</a>()
<a name="l00834"></a>00834 {
<a name="l00835"></a>00835 }
<a name="l00836"></a>00836
<a name="l00837"></a>00837 <a class="code" href="XercesDefs_8hpp.html#f03d5cb905763ef7a7bd22ab82718285">XERCES_CPP_NAMESPACE_END</a>
<a name="l00838"></a>00838
<a name="l00839"></a>00839 <span class="preprocessor">#endif</span>
</pre></div><hr size="1"><address style="text-align: right;"><small>Generated on Wed Sep 24 16:36:33 2008 for Xerces-C++ by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.4 </small></address>
</body>
</html>