You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

253 lines
13 KiB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <meta name="generator" content="Doxygen 1.8.9.1"/>
  7. <title>Xerces-C++: DOMUserDataHandler Class Reference</title>
  8. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  9. <script type="text/javascript" src="jquery.js"></script>
  10. <script type="text/javascript" src="dynsections.js"></script>
  11. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  12. </head>
  13. <body>
  14. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  15. <div id="titlearea">
  16. <table cellspacing="0" cellpadding="0">
  17. <tbody>
  18. <tr style="height: 56px;">
  19. <td style="padding-left: 0.5em;">
  20. <div id="projectname">Xerces-C++
  21. &#160;<span id="projectnumber">3.1.2</span>
  22. </div>
  23. </td>
  24. </tr>
  25. </tbody>
  26. </table>
  27. </div>
  28. <!-- end header part -->
  29. <!-- Generated by Doxygen 1.8.9.1 -->
  30. <div id="navrow1" class="tabs">
  31. <ul class="tablist">
  32. <li><a href="index.html"><span>Main&#160;Page</span></a></li>
  33. <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
  34. <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
  35. <li><a href="files.html"><span>Files</span></a></li>
  36. </ul>
  37. </div>
  38. <div id="navrow2" class="tabs2">
  39. <ul class="tablist">
  40. <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
  41. <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
  42. <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
  43. <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
  44. </ul>
  45. </div>
  46. </div><!-- top -->
  47. <div class="header">
  48. <div class="summary">
  49. <a href="classDOMUserDataHandler-members.html">List of all members</a> </div>
  50. <div class="headertitle">
  51. <div class="title">DOMUserDataHandler Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div> </div>
  52. </div><!--header-->
  53. <div class="contents">
  54. <p>When associating an object to a key on a node using <code>setUserData</code> the application can provide a handler that gets called when the node the object is associated to is being cloned or imported.
  55. <a href="classDOMUserDataHandler.html#details">More...</a></p>
  56. <table class="memberdecls">
  57. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
  58. Public Types</h2></td></tr>
  59. <tr><td colspan="2"><div class="groupHeader">Public Constants</div></td></tr>
  60. <tr class="memitem:a3fc45270dfc120a0d28090570e543869"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDOMUserDataHandler.html#a3fc45270dfc120a0d28090570e543869">DOMOperationType</a> { <br />
  61. &#160;&#160;<a class="el" href="classDOMUserDataHandler.html#a3fc45270dfc120a0d28090570e543869ae4124a76c0b45067ad33d94d51f57c8b">NODE_CLONED</a> = 1,
  62. <a class="el" href="classDOMUserDataHandler.html#a3fc45270dfc120a0d28090570e543869adfded424f2d618b5903306add9283629">NODE_IMPORTED</a> = 2,
  63. <a class="el" href="classDOMUserDataHandler.html#a3fc45270dfc120a0d28090570e543869ae65fa5913524dc1ad8383f3707376571">NODE_DELETED</a> = 3,
  64. <a class="el" href="classDOMUserDataHandler.html#a3fc45270dfc120a0d28090570e543869abc9e1802f11627cec5e4304aeef57090">NODE_RENAMED</a> = 4,
  65. <br />
  66. &#160;&#160;<a class="el" href="classDOMUserDataHandler.html#a3fc45270dfc120a0d28090570e543869a9d7fbd01f0a955bca4b39f6d8a765316">NODE_ADOPTED</a> = 5
  67. <br />
  68. }</td></tr>
  69. <tr class="memdesc:a3fc45270dfc120a0d28090570e543869"><td class="mdescLeft">&#160;</td><td class="mdescRight">Operation Type. <a href="classDOMUserDataHandler.html#a3fc45270dfc120a0d28090570e543869">More...</a><br /></td></tr>
  70. <tr class="separator:a3fc45270dfc120a0d28090570e543869"><td class="memSeparator" colspan="2">&#160;</td></tr>
  71. </table><table class="memberdecls">
  72. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
  73. Public Member Functions</h2></td></tr>
  74. <tr><td colspan="2"><div class="groupHeader">Destructor</div></td></tr>
  75. <tr class="memitem:ac56b9c2d438394b714f9c6bf2ee2c4f4"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDOMUserDataHandler.html#ac56b9c2d438394b714f9c6bf2ee2c4f4">~DOMUserDataHandler</a> ()</td></tr>
  76. <tr class="memdesc:ac56b9c2d438394b714f9c6bf2ee2c4f4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <a href="#ac56b9c2d438394b714f9c6bf2ee2c4f4">More...</a><br /></td></tr>
  77. <tr class="separator:ac56b9c2d438394b714f9c6bf2ee2c4f4"><td class="memSeparator" colspan="2">&#160;</td></tr>
  78. <tr><td colspan="2"><div class="groupHeader">Functions introduced in DOM Level 3</div></td></tr>
  79. <tr class="memitem:adb241add04a9e9af108549ab61d121f9"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDOMUserDataHandler.html#adb241add04a9e9af108549ab61d121f9">handle</a> (<a class="el" href="classDOMUserDataHandler.html#a3fc45270dfc120a0d28090570e543869">DOMOperationType</a> operation, const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *const key, void *data, const <a class="el" href="classDOMNode.html">DOMNode</a> *src, <a class="el" href="classDOMNode.html">DOMNode</a> *dst)=0</td></tr>
  80. <tr class="memdesc:adb241add04a9e9af108549ab61d121f9"><td class="mdescLeft">&#160;</td><td class="mdescRight">This method is called whenever the node for which this handler is registered is imported or cloned. <a href="#adb241add04a9e9af108549ab61d121f9">More...</a><br /></td></tr>
  81. <tr class="separator:adb241add04a9e9af108549ab61d121f9"><td class="memSeparator" colspan="2">&#160;</td></tr>
  82. </table><table class="memberdecls">
  83. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
  84. Protected Member Functions</h2></td></tr>
  85. <tr><td colspan="2"><div class="groupHeader">Hidden constructors</div></td></tr>
  86. <tr class="memitem:a49d70baa6c54e9054421a19e93081118"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDOMUserDataHandler.html#a49d70baa6c54e9054421a19e93081118">DOMUserDataHandler</a> ()</td></tr>
  87. <tr class="separator:a49d70baa6c54e9054421a19e93081118"><td class="memSeparator" colspan="2">&#160;</td></tr>
  88. </table>
  89. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  90. <div class="textblock"><p>When associating an object to a key on a node using <code>setUserData</code> the application can provide a handler that gets called when the node the object is associated to is being cloned or imported. </p>
  91. <p>This can be used by the application to implement various behaviors regarding the data it associates to the DOM nodes. This interface defines that handler.</p>
  92. <p>See also the <a href="http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407">Document Object Model (DOM) Level 3 Core Specification</a>. </p><dl class="section since"><dt>Since</dt><dd>DOM Level 3 </dd></dl>
  93. </div><h2 class="groupheader">Member Enumeration Documentation</h2>
  94. <a class="anchor" id="a3fc45270dfc120a0d28090570e543869"></a>
  95. <div class="memitem">
  96. <div class="memproto">
  97. <table class="memname">
  98. <tr>
  99. <td class="memname">enum <a class="el" href="classDOMUserDataHandler.html#a3fc45270dfc120a0d28090570e543869">DOMUserDataHandler::DOMOperationType</a></td>
  100. </tr>
  101. </table>
  102. </div><div class="memdoc">
  103. <p>Operation Type. </p>
  104. <p><code>NODE_CLONED:</code> The node is cloned.</p>
  105. <p><code>NODE_IMPORTED</code> The node is imported.</p>
  106. <p><code>NODE_DELETED</code> The node is deleted.</p>
  107. <p><code>NODE_RENAMED</code> The node is renamed.</p>
  108. <p><code>NODE_ADOPTED</code> The node is adopted.</p>
  109. <dl class="section since"><dt>Since</dt><dd>DOM Level 3 </dd></dl>
  110. <table class="fieldtable">
  111. <tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="a3fc45270dfc120a0d28090570e543869ae4124a76c0b45067ad33d94d51f57c8b"></a>NODE_CLONED&#160;</td><td class="fielddoc">
  112. </td></tr>
  113. <tr><td class="fieldname"><a class="anchor" id="a3fc45270dfc120a0d28090570e543869adfded424f2d618b5903306add9283629"></a>NODE_IMPORTED&#160;</td><td class="fielddoc">
  114. </td></tr>
  115. <tr><td class="fieldname"><a class="anchor" id="a3fc45270dfc120a0d28090570e543869ae65fa5913524dc1ad8383f3707376571"></a>NODE_DELETED&#160;</td><td class="fielddoc">
  116. </td></tr>
  117. <tr><td class="fieldname"><a class="anchor" id="a3fc45270dfc120a0d28090570e543869abc9e1802f11627cec5e4304aeef57090"></a>NODE_RENAMED&#160;</td><td class="fielddoc">
  118. </td></tr>
  119. <tr><td class="fieldname"><a class="anchor" id="a3fc45270dfc120a0d28090570e543869a9d7fbd01f0a955bca4b39f6d8a765316"></a>NODE_ADOPTED&#160;</td><td class="fielddoc">
  120. </td></tr>
  121. </table>
  122. </div>
  123. </div>
  124. <h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
  125. <a class="anchor" id="a49d70baa6c54e9054421a19e93081118"></a>
  126. <div class="memitem">
  127. <div class="memproto">
  128. <table class="mlabels">
  129. <tr>
  130. <td class="mlabels-left">
  131. <table class="memname">
  132. <tr>
  133. <td class="memname">DOMUserDataHandler::DOMUserDataHandler </td>
  134. <td>(</td>
  135. <td class="paramname"></td><td>)</td>
  136. <td></td>
  137. </tr>
  138. </table>
  139. </td>
  140. <td class="mlabels-right">
  141. <span class="mlabels"><span class="mlabel">protected</span></span> </td>
  142. </tr>
  143. </table>
  144. </div><div class="memdoc">
  145. </div>
  146. </div>
  147. <a class="anchor" id="ac56b9c2d438394b714f9c6bf2ee2c4f4"></a>
  148. <div class="memitem">
  149. <div class="memproto">
  150. <table class="mlabels">
  151. <tr>
  152. <td class="mlabels-left">
  153. <table class="memname">
  154. <tr>
  155. <td class="memname">virtual DOMUserDataHandler::~DOMUserDataHandler </td>
  156. <td>(</td>
  157. <td class="paramname"></td><td>)</td>
  158. <td></td>
  159. </tr>
  160. </table>
  161. </td>
  162. <td class="mlabels-right">
  163. <span class="mlabels"><span class="mlabel">virtual</span></span> </td>
  164. </tr>
  165. </table>
  166. </div><div class="memdoc">
  167. <p>Destructor. </p>
  168. </div>
  169. </div>
  170. <h2 class="groupheader">Member Function Documentation</h2>
  171. <a class="anchor" id="adb241add04a9e9af108549ab61d121f9"></a>
  172. <div class="memitem">
  173. <div class="memproto">
  174. <table class="mlabels">
  175. <tr>
  176. <td class="mlabels-left">
  177. <table class="memname">
  178. <tr>
  179. <td class="memname">virtual void DOMUserDataHandler::handle </td>
  180. <td>(</td>
  181. <td class="paramtype"><a class="el" href="classDOMUserDataHandler.html#a3fc45270dfc120a0d28090570e543869">DOMOperationType</a>&#160;</td>
  182. <td class="paramname"><em>operation</em>, </td>
  183. </tr>
  184. <tr>
  185. <td class="paramkey"></td>
  186. <td></td>
  187. <td class="paramtype">const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *const&#160;</td>
  188. <td class="paramname"><em>key</em>, </td>
  189. </tr>
  190. <tr>
  191. <td class="paramkey"></td>
  192. <td></td>
  193. <td class="paramtype">void *&#160;</td>
  194. <td class="paramname"><em>data</em>, </td>
  195. </tr>
  196. <tr>
  197. <td class="paramkey"></td>
  198. <td></td>
  199. <td class="paramtype">const <a class="el" href="classDOMNode.html">DOMNode</a> *&#160;</td>
  200. <td class="paramname"><em>src</em>, </td>
  201. </tr>
  202. <tr>
  203. <td class="paramkey"></td>
  204. <td></td>
  205. <td class="paramtype"><a class="el" href="classDOMNode.html">DOMNode</a> *&#160;</td>
  206. <td class="paramname"><em>dst</em>&#160;</td>
  207. </tr>
  208. <tr>
  209. <td></td>
  210. <td>)</td>
  211. <td></td><td></td>
  212. </tr>
  213. </table>
  214. </td>
  215. <td class="mlabels-right">
  216. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  217. </tr>
  218. </table>
  219. </div><div class="memdoc">
  220. <p>This method is called whenever the node for which this handler is registered is imported or cloned. </p>
  221. <dl class="params"><dt>Parameters</dt><dd>
  222. <table class="params">
  223. <tr><td class="paramname">operation</td><td>Specifies the type of operation that is being performed on the node. </td></tr>
  224. <tr><td class="paramname">key</td><td>Specifies the key for which this handler is being called. </td></tr>
  225. <tr><td class="paramname">data</td><td>Specifies the data for which this handler is being called. </td></tr>
  226. <tr><td class="paramname">src</td><td>Specifies the node being cloned, adopted, imported, or renamed. This is <code>null</code> when the node is being deleted. </td></tr>
  227. <tr><td class="paramname">dst</td><td>Specifies the node newly created if any, or <code>null</code>.</td></tr>
  228. </table>
  229. </dd>
  230. </dl>
  231. <dl class="section since"><dt>Since</dt><dd>DOM Level 3 </dd></dl>
  232. </div>
  233. </div>
  234. <hr/>The documentation for this class was generated from the following file:<ul>
  235. <li><a class="el" href="DOMUserDataHandler_8hpp_source.html">DOMUserDataHandler.hpp</a></li>
  236. </ul>
  237. </div><!-- contents -->
  238. <!-- start footer part -->
  239. <hr class="footer"/><address class="footer"><small>
  240. Generated on Wed Mar 18 2015 10:43:38 for Xerces-C++ by &#160;<a href="http://www.doxygen.org/index.html">
  241. <img class="footer" src="doxygen.png" alt="doxygen"/>
  242. </a> 1.8.9.1
  243. </small></address>
  244. </body>
  245. </html>