Sophie

Sophie

distrib > Mageia > 6 > armv5tl > media > core-updates > by-pkgid > 21683c2052716543063aae9960d9aef7 > files > 615

xerces-c-doc-3.1.4-2.1.mga6.noarch.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.5"/>
<title>Xerces-C++: MemBufInputSource Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Xerces-C++
   &#160;<span id="projectnumber">3.1.4</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="classMemBufInputSource-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">MemBufInputSource Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>This class is a derivative of the standard <a class="el" href="classInputSource.html" title="A single input source for an XML entity. ">InputSource</a> class.  
 <a href="classMemBufInputSource.html#details">More...</a></p>
<div class="dynheader">
Inheritance diagram for MemBufInputSource:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classMemBufInputSource.png" usemap="#MemBufInputSource_map" alt=""/>
  <map id="MemBufInputSource_map" name="MemBufInputSource_map">
<area href="classInputSource.html" title="A single input source for an XML entity. " alt="InputSource" shape="rect" coords="0,56,126,80"/>
<area href="classXMemory.html" title="This class makes it possible to override the C++ memory management by adding new/delete operators to ..." alt="XMemory" shape="rect" coords="0,0,126,24"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td colspan="2"><div class="groupHeader">Constructors</div></td></tr>
<tr class="memitem:a4ee7c41fa34cafaec11f3cd0776f89f5"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMemBufInputSource.html#a4ee7c41fa34cafaec11f3cd0776f89f5">MemBufInputSource</a> (const <a class="el" href="XercesDefs_8hpp.html#a7470c7a32c59355685ebcd878a33f126">XMLByte</a> *const srcDocBytes, const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#ac0f7e36996cd03eb43bcee10321f77cd">XMLSize_t</a> byteCount, const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *const bufId, const bool adoptBuffer=false, <a class="el" href="classMemoryManager.html">MemoryManager</a> *const manager=<a class="el" href="classXMLPlatformUtils.html#a97eff0d9fff3567bea3acd3ca4d95252">XMLPlatformUtils::fgMemoryManager</a>)</td></tr>
<tr class="memdesc:a4ee7c41fa34cafaec11f3cd0776f89f5"><td class="mdescLeft">&#160;</td><td class="mdescRight">A memory buffer input source is constructed from a buffer of byte data, and the count of bytes in that buffer.  <a href="#a4ee7c41fa34cafaec11f3cd0776f89f5">More...</a><br/></td></tr>
<tr class="separator:a4ee7c41fa34cafaec11f3cd0776f89f5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af8f95589003db627e20c763227fc2b9c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMemBufInputSource.html#af8f95589003db627e20c763227fc2b9c">MemBufInputSource</a> (const <a class="el" href="XercesDefs_8hpp.html#a7470c7a32c59355685ebcd878a33f126">XMLByte</a> *const srcDocBytes, const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#ac0f7e36996cd03eb43bcee10321f77cd">XMLSize_t</a> byteCount, const char *const bufId, const bool adoptBuffer=false, <a class="el" href="classMemoryManager.html">MemoryManager</a> *const manager=<a class="el" href="classXMLPlatformUtils.html#a97eff0d9fff3567bea3acd3ca4d95252">XMLPlatformUtils::fgMemoryManager</a>)</td></tr>
<tr class="memdesc:af8f95589003db627e20c763227fc2b9c"><td class="mdescLeft">&#160;</td><td class="mdescRight">This constructor is identical to the previous one, except that it takes the fake system id in local code page form and transcodes it internally.  <a href="#af8f95589003db627e20c763227fc2b9c">More...</a><br/></td></tr>
<tr class="separator:af8f95589003db627e20c763227fc2b9c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">Destructor</div></td></tr>
<tr class="memitem:affbb36ae429a534de092d4914227ea8a"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMemBufInputSource.html#affbb36ae429a534de092d4914227ea8a">~MemBufInputSource</a> ()</td></tr>
<tr class="memdesc:affbb36ae429a534de092d4914227ea8a"><td class="mdescLeft">&#160;</td><td class="mdescRight">If the buffer was adopted, the copy made during construction is deleted at this point.  <a href="#affbb36ae429a534de092d4914227ea8a">More...</a><br/></td></tr>
<tr class="separator:affbb36ae429a534de092d4914227ea8a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">Virtual methods</div></td></tr>
<tr class="memitem:a379bcdf65aba95c480f2eb5adf41e108"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classBinInputStream.html">BinInputStream</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMemBufInputSource.html#a379bcdf65aba95c480f2eb5adf41e108">makeStream</a> () const </td></tr>
<tr class="memdesc:a379bcdf65aba95c480f2eb5adf41e108"><td class="mdescLeft">&#160;</td><td class="mdescRight">This method will return a binary input stream derivative that will parse from the memory buffer.  <a href="#a379bcdf65aba95c480f2eb5adf41e108">More...</a><br/></td></tr>
<tr class="separator:a379bcdf65aba95c480f2eb5adf41e108"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">Setter methods</div></td></tr>
<tr class="memitem:a02cc5d7442c2cf87620b59fb55b0ab26"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMemBufInputSource.html#a02cc5d7442c2cf87620b59fb55b0ab26">setCopyBufToStream</a> (const bool newState)</td></tr>
<tr class="memdesc:a02cc5d7442c2cf87620b59fb55b0ab26"><td class="mdescLeft">&#160;</td><td class="mdescRight">By default, for safety's sake, each newly created stream from this input source will make its own copy of the buffer to stream from.  <a href="#a02cc5d7442c2cf87620b59fb55b0ab26">More...</a><br/></td></tr>
<tr class="separator:a02cc5d7442c2cf87620b59fb55b0ab26"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9894b7cc0b6560911bedf78040c6c597"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMemBufInputSource.html#a9894b7cc0b6560911bedf78040c6c597">resetMemBufInputSource</a> (const <a class="el" href="XercesDefs_8hpp.html#a7470c7a32c59355685ebcd878a33f126">XMLByte</a> *const srcDocBytes, const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#ac0f7e36996cd03eb43bcee10321f77cd">XMLSize_t</a> byteCount)</td></tr>
<tr class="memdesc:a9894b7cc0b6560911bedf78040c6c597"><td class="mdescLeft">&#160;</td><td class="mdescRight">This methods allows the <a class="el" href="classMemBufInputSource.html" title="This class is a derivative of the standard InputSource class. ">MemBufInputSource</a> to be used for more than one input source, instead of destructing/constructing another <a class="el" href="classMemBufInputSource.html" title="This class is a derivative of the standard InputSource class. ">MemBufInputSource</a>.  <a href="#a9894b7cc0b6560911bedf78040c6c597">More...</a><br/></td></tr>
<tr class="separator:a9894b7cc0b6560911bedf78040c6c597"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classInputSource"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classInputSource')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classInputSource.html">InputSource</a></td></tr>
<tr class="memitem:a09958a0275a39a619a5b64b3e86e76ed inherit pub_methods_classInputSource"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classInputSource.html#a09958a0275a39a619a5b64b3e86e76ed">~InputSource</a> ()</td></tr>
<tr class="memdesc:a09958a0275a39a619a5b64b3e86e76ed inherit pub_methods_classInputSource"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor.  <a href="#a09958a0275a39a619a5b64b3e86e76ed">More...</a><br/></td></tr>
<tr class="separator:a09958a0275a39a619a5b64b3e86e76ed inherit pub_methods_classInputSource"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a70b363bf9af9aa831b40f4cceebd1d75 inherit pub_methods_classInputSource"><td class="memItemLeft" align="right" valign="top">virtual const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classInputSource.html#a70b363bf9af9aa831b40f4cceebd1d75">getEncoding</a> () const </td></tr>
<tr class="memdesc:a70b363bf9af9aa831b40f4cceebd1d75 inherit pub_methods_classInputSource"><td class="mdescLeft">&#160;</td><td class="mdescRight">An input source can be set to force the parser to assume a particular encoding for the data that input source represents, via the <a class="el" href="classInputSource.html#a7604c9a16a6104bfae0a185f8879c74b" title="Set the encoding which will be required for use with the XML text read via a stream opened by this in...">setEncoding()</a> method.  <a href="#a70b363bf9af9aa831b40f4cceebd1d75">More...</a><br/></td></tr>
<tr class="separator:a70b363bf9af9aa831b40f4cceebd1d75 inherit pub_methods_classInputSource"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a394888614a429622bf936b8253542cfb inherit pub_methods_classInputSource"><td class="memItemLeft" align="right" valign="top">virtual const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classInputSource.html#a394888614a429622bf936b8253542cfb">getPublicId</a> () const </td></tr>
<tr class="memdesc:a394888614a429622bf936b8253542cfb inherit pub_methods_classInputSource"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the public identifier for this input source.  <a href="#a394888614a429622bf936b8253542cfb">More...</a><br/></td></tr>
<tr class="separator:a394888614a429622bf936b8253542cfb inherit pub_methods_classInputSource"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0ab7381f8cf189abc2b97fe22dacb31e inherit pub_methods_classInputSource"><td class="memItemLeft" align="right" valign="top">virtual const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classInputSource.html#a0ab7381f8cf189abc2b97fe22dacb31e">getSystemId</a> () const </td></tr>
<tr class="memdesc:a0ab7381f8cf189abc2b97fe22dacb31e inherit pub_methods_classInputSource"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the system identifier for this input source.  <a href="#a0ab7381f8cf189abc2b97fe22dacb31e">More...</a><br/></td></tr>
<tr class="separator:a0ab7381f8cf189abc2b97fe22dacb31e inherit pub_methods_classInputSource"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4b8eee7896615e4e2ddb9acbc72543ed inherit pub_methods_classInputSource"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classInputSource.html#a4b8eee7896615e4e2ddb9acbc72543ed">getIssueFatalErrorIfNotFound</a> () const </td></tr>
<tr class="memdesc:a4b8eee7896615e4e2ddb9acbc72543ed inherit pub_methods_classInputSource"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the flag that indicates if the parser should issue fatal error if this input source is not found.  <a href="#a4b8eee7896615e4e2ddb9acbc72543ed">More...</a><br/></td></tr>
<tr class="separator:a4b8eee7896615e4e2ddb9acbc72543ed inherit pub_methods_classInputSource"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8abf186a8be413a303fc9847268c3446 inherit pub_methods_classInputSource"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classMemoryManager.html">MemoryManager</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classInputSource.html#a8abf186a8be413a303fc9847268c3446">getMemoryManager</a> () const </td></tr>
<tr class="separator:a8abf186a8be413a303fc9847268c3446 inherit pub_methods_classInputSource"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7604c9a16a6104bfae0a185f8879c74b inherit pub_methods_classInputSource"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classInputSource.html#a7604c9a16a6104bfae0a185f8879c74b">setEncoding</a> (const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *const encodingStr)</td></tr>
<tr class="memdesc:a7604c9a16a6104bfae0a185f8879c74b inherit pub_methods_classInputSource"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the encoding which will be required for use with the XML text read via a stream opened by this input source.  <a href="#a7604c9a16a6104bfae0a185f8879c74b">More...</a><br/></td></tr>
<tr class="separator:a7604c9a16a6104bfae0a185f8879c74b inherit pub_methods_classInputSource"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4cb3a625fac37721b2c719183e124792 inherit pub_methods_classInputSource"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classInputSource.html#a4cb3a625fac37721b2c719183e124792">setPublicId</a> (const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *const publicId)</td></tr>
<tr class="memdesc:a4cb3a625fac37721b2c719183e124792 inherit pub_methods_classInputSource"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the public identifier for this input source.  <a href="#a4cb3a625fac37721b2c719183e124792">More...</a><br/></td></tr>
<tr class="separator:a4cb3a625fac37721b2c719183e124792 inherit pub_methods_classInputSource"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a08045f4fc62d1b4ba2da457365073d3e inherit pub_methods_classInputSource"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classInputSource.html#a08045f4fc62d1b4ba2da457365073d3e">setSystemId</a> (const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *const systemId)</td></tr>
<tr class="memdesc:a08045f4fc62d1b4ba2da457365073d3e inherit pub_methods_classInputSource"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the system identifier for this input source.  <a href="#a08045f4fc62d1b4ba2da457365073d3e">More...</a><br/></td></tr>
<tr class="separator:a08045f4fc62d1b4ba2da457365073d3e inherit pub_methods_classInputSource"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7fc1468bd6a6bb15111273c45e81a9b6 inherit pub_methods_classInputSource"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classInputSource.html#a7fc1468bd6a6bb15111273c45e81a9b6">setIssueFatalErrorIfNotFound</a> (const bool flag)</td></tr>
<tr class="memdesc:a7fc1468bd6a6bb15111273c45e81a9b6 inherit pub_methods_classInputSource"><td class="mdescLeft">&#160;</td><td class="mdescRight">Indicates if the parser should issue fatal error if this input source is not found.  <a href="#a7fc1468bd6a6bb15111273c45e81a9b6">More...</a><br/></td></tr>
<tr class="separator:a7fc1468bd6a6bb15111273c45e81a9b6 inherit pub_methods_classInputSource"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classXMemory"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classXMemory')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classXMemory.html">XMemory</a></td></tr>
<tr class="memitem:a717678d9deadc627a41fe0dddede9f7f inherit pub_methods_classXMemory"><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXMemory.html#a717678d9deadc627a41fe0dddede9f7f">operator new</a> (size_t size)</td></tr>
<tr class="memdesc:a717678d9deadc627a41fe0dddede9f7f inherit pub_methods_classXMemory"><td class="mdescLeft">&#160;</td><td class="mdescRight">This method overrides operator new.  <a href="#a717678d9deadc627a41fe0dddede9f7f">More...</a><br/></td></tr>
<tr class="separator:a717678d9deadc627a41fe0dddede9f7f inherit pub_methods_classXMemory"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac3022fcc968c684a31c1e6a9ede83c10 inherit pub_methods_classXMemory"><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXMemory.html#ac3022fcc968c684a31c1e6a9ede83c10">operator new</a> (size_t size, <a class="el" href="classMemoryManager.html">MemoryManager</a> *memMgr)</td></tr>
<tr class="memdesc:ac3022fcc968c684a31c1e6a9ede83c10 inherit pub_methods_classXMemory"><td class="mdescLeft">&#160;</td><td class="mdescRight">This method defines a custom operator new, that will use the provided memory manager to perform the allocation.  <a href="#ac3022fcc968c684a31c1e6a9ede83c10">More...</a><br/></td></tr>
<tr class="separator:ac3022fcc968c684a31c1e6a9ede83c10 inherit pub_methods_classXMemory"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeaad885b799ac2188ffd28f76182339c inherit pub_methods_classXMemory"><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXMemory.html#aeaad885b799ac2188ffd28f76182339c">operator new</a> (size_t size, void *ptr)</td></tr>
<tr class="memdesc:aeaad885b799ac2188ffd28f76182339c inherit pub_methods_classXMemory"><td class="mdescLeft">&#160;</td><td class="mdescRight">This method overrides placement operator new.  <a href="#aeaad885b799ac2188ffd28f76182339c">More...</a><br/></td></tr>
<tr class="separator:aeaad885b799ac2188ffd28f76182339c inherit pub_methods_classXMemory"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9da30f1601ea458908cbf150fc2f8f8b inherit pub_methods_classXMemory"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXMemory.html#a9da30f1601ea458908cbf150fc2f8f8b">operator delete</a> (void *p)</td></tr>
<tr class="memdesc:a9da30f1601ea458908cbf150fc2f8f8b inherit pub_methods_classXMemory"><td class="mdescLeft">&#160;</td><td class="mdescRight">This method overrides operator delete.  <a href="#a9da30f1601ea458908cbf150fc2f8f8b">More...</a><br/></td></tr>
<tr class="separator:a9da30f1601ea458908cbf150fc2f8f8b inherit pub_methods_classXMemory"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a22efbc6459bdbe79f83b7791bba4d1f6 inherit pub_methods_classXMemory"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXMemory.html#a22efbc6459bdbe79f83b7791bba4d1f6">operator delete</a> (void *p, <a class="el" href="classMemoryManager.html">MemoryManager</a> *memMgr)</td></tr>
<tr class="memdesc:a22efbc6459bdbe79f83b7791bba4d1f6 inherit pub_methods_classXMemory"><td class="mdescLeft">&#160;</td><td class="mdescRight">This method provides a matching delete for the custom operator new.  <a href="#a22efbc6459bdbe79f83b7791bba4d1f6">More...</a><br/></td></tr>
<tr class="separator:a22efbc6459bdbe79f83b7791bba4d1f6 inherit pub_methods_classXMemory"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a32ee38b70d412e12f669cfbd86adf623 inherit pub_methods_classXMemory"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXMemory.html#a32ee38b70d412e12f669cfbd86adf623">operator delete</a> (void *p, void *ptr)</td></tr>
<tr class="memdesc:a32ee38b70d412e12f669cfbd86adf623 inherit pub_methods_classXMemory"><td class="mdescLeft">&#160;</td><td class="mdescRight">This method provides a matching delete for the placement new.  <a href="#a32ee38b70d412e12f669cfbd86adf623">More...</a><br/></td></tr>
<tr class="separator:a32ee38b70d412e12f669cfbd86adf623 inherit pub_methods_classXMemory"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pro_methods_classInputSource"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classInputSource')"><img src="closed.png" alt="-"/>&#160;Protected Member Functions inherited from <a class="el" href="classInputSource.html">InputSource</a></td></tr>
<tr class="memitem:a601a7aa7124e2d8e9664eda9aea6b622 inherit pro_methods_classInputSource"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classInputSource.html#a601a7aa7124e2d8e9664eda9aea6b622">InputSource</a> (<a class="el" href="classMemoryManager.html">MemoryManager</a> *const manager=<a class="el" href="classXMLPlatformUtils.html#a97eff0d9fff3567bea3acd3ca4d95252">XMLPlatformUtils::fgMemoryManager</a>)</td></tr>
<tr class="memdesc:a601a7aa7124e2d8e9664eda9aea6b622 inherit pro_methods_classInputSource"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default constructor.  <a href="#a601a7aa7124e2d8e9664eda9aea6b622">More...</a><br/></td></tr>
<tr class="separator:a601a7aa7124e2d8e9664eda9aea6b622 inherit pro_methods_classInputSource"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6ac39778219ca114471e60459a829aee inherit pro_methods_classInputSource"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classInputSource.html#a6ac39778219ca114471e60459a829aee">InputSource</a> (const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *const systemId, <a class="el" href="classMemoryManager.html">MemoryManager</a> *const manager=<a class="el" href="classXMLPlatformUtils.html#a97eff0d9fff3567bea3acd3ca4d95252">XMLPlatformUtils::fgMemoryManager</a>)</td></tr>
<tr class="memdesc:a6ac39778219ca114471e60459a829aee inherit pro_methods_classInputSource"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor with a system identifier as XMLCh type.  <a href="#a6ac39778219ca114471e60459a829aee">More...</a><br/></td></tr>
<tr class="separator:a6ac39778219ca114471e60459a829aee inherit pro_methods_classInputSource"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae001a9f156d185c83c30574992b7e388 inherit pro_methods_classInputSource"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classInputSource.html#ae001a9f156d185c83c30574992b7e388">InputSource</a> (const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *const systemId, const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *const publicId, <a class="el" href="classMemoryManager.html">MemoryManager</a> *const manager=<a class="el" href="classXMLPlatformUtils.html#a97eff0d9fff3567bea3acd3ca4d95252">XMLPlatformUtils::fgMemoryManager</a>)</td></tr>
<tr class="memdesc:ae001a9f156d185c83c30574992b7e388 inherit pro_methods_classInputSource"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor with a system and public identifiers.  <a href="#ae001a9f156d185c83c30574992b7e388">More...</a><br/></td></tr>
<tr class="separator:ae001a9f156d185c83c30574992b7e388 inherit pro_methods_classInputSource"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaba282a5740ad84b756f698465557318 inherit pro_methods_classInputSource"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classInputSource.html#aaba282a5740ad84b756f698465557318">InputSource</a> (const char *const systemId, <a class="el" href="classMemoryManager.html">MemoryManager</a> *const manager=<a class="el" href="classXMLPlatformUtils.html#a97eff0d9fff3567bea3acd3ca4d95252">XMLPlatformUtils::fgMemoryManager</a>)</td></tr>
<tr class="memdesc:aaba282a5740ad84b756f698465557318 inherit pro_methods_classInputSource"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor witha system identifier as string.  <a href="#aaba282a5740ad84b756f698465557318">More...</a><br/></td></tr>
<tr class="separator:aaba282a5740ad84b756f698465557318 inherit pro_methods_classInputSource"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad507e9f25ec6dac7f07d23a8ee0dcc45 inherit pro_methods_classInputSource"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classInputSource.html#ad507e9f25ec6dac7f07d23a8ee0dcc45">InputSource</a> (const char *const systemId, const char *const publicId, <a class="el" href="classMemoryManager.html">MemoryManager</a> *const manager=<a class="el" href="classXMLPlatformUtils.html#a97eff0d9fff3567bea3acd3ca4d95252">XMLPlatformUtils::fgMemoryManager</a>)</td></tr>
<tr class="memdesc:ad507e9f25ec6dac7f07d23a8ee0dcc45 inherit pro_methods_classInputSource"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor witha system and public identifiers.  <a href="#ad507e9f25ec6dac7f07d23a8ee0dcc45">More...</a><br/></td></tr>
<tr class="separator:ad507e9f25ec6dac7f07d23a8ee0dcc45 inherit pro_methods_classInputSource"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_methods_classXMemory"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classXMemory')"><img src="closed.png" alt="-"/>&#160;Protected Member Functions inherited from <a class="el" href="classXMemory.html">XMemory</a></td></tr>
<tr class="memitem:ae5b8adaa10d5d9276b42823f47e06858 inherit pro_methods_classXMemory"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXMemory.html#ae5b8adaa10d5d9276b42823f47e06858">XMemory</a> ()</td></tr>
<tr class="memdesc:ae5b8adaa10d5d9276b42823f47e06858 inherit pro_methods_classXMemory"><td class="mdescLeft">&#160;</td><td class="mdescRight">Protected default constructor.  <a href="#ae5b8adaa10d5d9276b42823f47e06858">More...</a><br/></td></tr>
<tr class="separator:ae5b8adaa10d5d9276b42823f47e06858 inherit pro_methods_classXMemory"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>This class is a derivative of the standard <a class="el" href="classInputSource.html" title="A single input source for an XML entity. ">InputSource</a> class. </p>
<p>It provides for the parser access to data stored in a memory buffer. The type of buffer and its host specific attributes are of little concern here. The only real requirement is that the memory be readable by the current process.</p>
<p>Note that the memory buffer size is expressed in <b>bytes</b>, not in characters. If you pass it text data, you must account for the bytes per character when indicating the buffer size.</p>
<p>As with all <a class="el" href="classInputSource.html" title="A single input source for an XML entity. ">InputSource</a> derivatives. The primary objective of an input source is to create an input stream via which the parser can spool in data from the referenced source. In this case, there are two options available.</p>
<p>The passed buffer can be adopted or merely referenced. If it is adopted, then it must be dynamically allocated and will be destroyed when the input source is destroyed (no reference counting!.) If not adopted, the caller must insure that it remains valid until the input source object is destroyed.</p>
<p>The other option indicates whether each stream created for this input source should get its own copy of the data, or whether it should just stream the data directly from this object's copy of the data. The same rules apply here, in that the buffer must either be copied by the stream or it must remain valid until the stream is destroyed. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a4ee7c41fa34cafaec11f3cd0776f89f5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">MemBufInputSource::MemBufInputSource </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="XercesDefs_8hpp.html#a7470c7a32c59355685ebcd878a33f126">XMLByte</a> *const&#160;</td>
          <td class="paramname"><em>srcDocBytes</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#ac0f7e36996cd03eb43bcee10321f77cd">XMLSize_t</a>&#160;</td>
          <td class="paramname"><em>byteCount</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *const&#160;</td>
          <td class="paramname"><em>bufId</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const bool&#160;</td>
          <td class="paramname"><em>adoptBuffer</em> = <code>false</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classMemoryManager.html">MemoryManager</a> *const&#160;</td>
          <td class="paramname"><em>manager</em> = <code><a class="el" href="classXMLPlatformUtils.html#a97eff0d9fff3567bea3acd3ca4d95252">XMLPlatformUtils::fgMemoryManager</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>A memory buffer input source is constructed from a buffer of byte data, and the count of bytes in that buffer. </p>
<p>The parser will parse from this memory buffer until it has eaten the indicated number of bytes.</p>
<p>Note that the system id provided serves two purposes. Firstly it is going to be displayed in error messages as the source of the error. And secondly, any entities which are referred to from this entity via relative paths/URLs will be relative to this fake system id.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">srcDocBytes</td><td>The actual data buffer to be parsed from. </td></tr>
    <tr><td class="paramname">byteCount</td><td>The count of bytes (not characters, bytes!) in the buffer. </td></tr>
    <tr><td class="paramname">bufId</td><td>A fake system id for the buffer. </td></tr>
    <tr><td class="paramname">adoptBuffer</td><td>Indicates whether this object should adopt the buffer (i.e. become responsible for deletion) or just use it in place. </td></tr>
    <tr><td class="paramname">manager</td><td>Pointer to the memory manager to be used to allocate objects. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="af8f95589003db627e20c763227fc2b9c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">MemBufInputSource::MemBufInputSource </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="XercesDefs_8hpp.html#a7470c7a32c59355685ebcd878a33f126">XMLByte</a> *const&#160;</td>
          <td class="paramname"><em>srcDocBytes</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#ac0f7e36996cd03eb43bcee10321f77cd">XMLSize_t</a>&#160;</td>
          <td class="paramname"><em>byteCount</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *const&#160;</td>
          <td class="paramname"><em>bufId</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const bool&#160;</td>
          <td class="paramname"><em>adoptBuffer</em> = <code>false</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classMemoryManager.html">MemoryManager</a> *const&#160;</td>
          <td class="paramname"><em>manager</em> = <code><a class="el" href="classXMLPlatformUtils.html#a97eff0d9fff3567bea3acd3ca4d95252">XMLPlatformUtils::fgMemoryManager</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This constructor is identical to the previous one, except that it takes the fake system id in local code page form and transcodes it internally. </p>

</div>
</div>
<a class="anchor" id="affbb36ae429a534de092d4914227ea8a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">MemBufInputSource::~MemBufInputSource </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>If the buffer was adopted, the copy made during construction is deleted at this point. </p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a379bcdf65aba95c480f2eb5adf41e108"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classBinInputStream.html">BinInputStream</a>* MemBufInputSource::makeStream </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>This method will return a binary input stream derivative that will parse from the memory buffer. </p>
<p>If <a class="el" href="classMemBufInputSource.html#a02cc5d7442c2cf87620b59fb55b0ab26" title="By default, for safety&#39;s sake, each newly created stream from this input source will make its own cop...">setCopyBufToStream()</a> has been set, then the stream will make its own copy. Otherwise, it will use the buffer as is (in which case it must remain valid until the stream is no longer in use, i.e. the parse completes.)</p>
<dl class="section return"><dt>Returns</dt><dd>A dynamically allocated binary input stream derivative that can parse from the memory buffer. </dd></dl>

<p>Implements <a class="el" href="classInputSource.html#af0722ef511e91e7b290528b3fd13be09">InputSource</a>.</p>

</div>
</div>
<a class="anchor" id="a9894b7cc0b6560911bedf78040c6c597"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void MemBufInputSource::resetMemBufInputSource </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="XercesDefs_8hpp.html#a7470c7a32c59355685ebcd878a33f126">XMLByte</a> *const&#160;</td>
          <td class="paramname"><em>srcDocBytes</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#ac0f7e36996cd03eb43bcee10321f77cd">XMLSize_t</a>&#160;</td>
          <td class="paramname"><em>byteCount</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This methods allows the <a class="el" href="classMemBufInputSource.html" title="This class is a derivative of the standard InputSource class. ">MemBufInputSource</a> to be used for more than one input source, instead of destructing/constructing another <a class="el" href="classMemBufInputSource.html" title="This class is a derivative of the standard InputSource class. ">MemBufInputSource</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">srcDocBytes</td><td>The actual data buffer to be parsed from. </td></tr>
    <tr><td class="paramname">byteCount</td><td>The count of bytes (not characters, bytes!) in the buffer. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a02cc5d7442c2cf87620b59fb55b0ab26"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void MemBufInputSource::setCopyBufToStream </td>
          <td>(</td>
          <td class="paramtype">const bool&#160;</td>
          <td class="paramname"><em>newState</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>By default, for safety's sake, each newly created stream from this input source will make its own copy of the buffer to stream from. </p>
<p>This avoids having to deal with aliasing of the buffer for simple work. But, for higher performance applications or for large buffers, this is obviously not optimal.</p>
<p>In such cases, you can call this method to turn off that default action. Once turned off, the streams will just get a pointer to the buffer and parse directly from that. In this case, you must insure that the buffer remains valid for as long as any parse events are still using it.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">newState</td><td>The new boolean flag state to set. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="MemBufInputSource_8hpp_source.html">MemBufInputSource.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.5
</small></address>
</body>
</html>