xmp_toolkit_ruby 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (183) hide show
  1. checksums.yaml +7 -0
  2. data/.idea/.gitignore +8 -0
  3. data/.rspec +3 -0
  4. data/.rubocop.yml +88 -0
  5. data/.ruby-gemset +1 -0
  6. data/.ruby-version +1 -0
  7. data/AGENTS.md +72 -0
  8. data/CHANGELOG.md +45 -0
  9. data/LICENSE.txt +21 -0
  10. data/README.md +287 -0
  11. data/Rakefile +25 -0
  12. data/cliff.toml +138 -0
  13. data/docker/Dockerfile +87 -0
  14. data/docker/ProductConfig.cmake.patch +11 -0
  15. data/docker/ToolchainGCC.cmake.patch +11 -0
  16. data/exe/xmp_toolkit_ruby +8 -0
  17. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/LICENSE +31 -0
  18. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/build/XMP_BuildInfo.h +17 -0
  19. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/TXMPFiles.hpp +853 -0
  20. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/TXMPIterator.hpp +234 -0
  21. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/TXMPMeta.hpp +1753 -0
  22. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/TXMPUtils.hpp +967 -0
  23. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/XMP.hpp +98 -0
  24. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/XMP.incl_cpp +69 -0
  25. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/XMPCommon/Interfaces/BaseInterfaces/IConfigurable.h +225 -0
  26. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/XMPCommon/Interfaces/BaseInterfaces/ISharedObject.h +71 -0
  27. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/XMPCommon/Interfaces/BaseInterfaces/IThreadSafe.h +76 -0
  28. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/XMPCommon/Interfaces/BaseInterfaces/IVersionable.h +71 -0
  29. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/XMPCommon/Interfaces/IConfigurationManager.h +167 -0
  30. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/XMPCommon/Interfaces/IError.h +377 -0
  31. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/XMPCommon/Interfaces/IErrorNotifier.h +52 -0
  32. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/XMPCommon/Interfaces/IMemoryAllocator.h +65 -0
  33. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/XMPCommon/Interfaces/IObjectFactory.h +90 -0
  34. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/XMPCommon/Interfaces/IUTF8String.h +504 -0
  35. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/XMPCommon/Utilities/TWrapperFunctions.h +252 -0
  36. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/XMPCommon/Utilities/TWrapperFunctions2.h +564 -0
  37. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/XMPCommon/XMPCommonDefines.h +194 -0
  38. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/XMPCommon/XMPCommonErrorCodes.h +114 -0
  39. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/XMPCommon/XMPCommonFwdDeclarations.h +158 -0
  40. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/XMPCommon/XMPCommonLatestInterfaceVersions.h +51 -0
  41. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/XMPCommon/source/IConfigurable.cpp +204 -0
  42. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/XMPCommon/source/IConfigurationManager.cpp +92 -0
  43. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/XMPCommon/source/IError.cpp +207 -0
  44. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/XMPCommon/source/IErrorNotifier.cpp +26 -0
  45. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/XMPCommon/source/IUTF8String.cpp +299 -0
  46. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/XMPCore/Interfaces/IArrayNode.h +303 -0
  47. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/XMPCore/Interfaces/IClientDOMParser.h +88 -0
  48. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/XMPCore/Interfaces/IClientDOMSerializer.h +94 -0
  49. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/XMPCore/Interfaces/ICompositeNode.h +331 -0
  50. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/XMPCore/Interfaces/ICoreConfigurationManager.h +107 -0
  51. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/XMPCore/Interfaces/ICoreObjectFactory.h +279 -0
  52. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/XMPCore/Interfaces/IDOMImplementationRegistry.h +150 -0
  53. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/XMPCore/Interfaces/IDOMParser.h +181 -0
  54. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/XMPCore/Interfaces/IDOMSerializer.h +120 -0
  55. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/XMPCore/Interfaces/IMetadata.h +145 -0
  56. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/XMPCore/Interfaces/IMetadataConverterUtils.h +116 -0
  57. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/XMPCore/Interfaces/INameSpacePrefixMap.h +236 -0
  58. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/XMPCore/Interfaces/INode.h +582 -0
  59. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/XMPCore/Interfaces/INodeIterator.h +193 -0
  60. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/XMPCore/Interfaces/IPath.h +212 -0
  61. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/XMPCore/Interfaces/IPathSegment.h +225 -0
  62. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/XMPCore/Interfaces/ISimpleNode.h +150 -0
  63. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/XMPCore/Interfaces/IStructureNode.h +306 -0
  64. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/XMPCore/XMPCoreDefines.h +94 -0
  65. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/XMPCore/XMPCoreErrorCodes.h +116 -0
  66. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/XMPCore/XMPCoreFwdDeclarations.h +325 -0
  67. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/XMPCore/XMPCoreLatestInterfaceVersions.h +97 -0
  68. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/XMPCore/source/IArrayNode.cpp +163 -0
  69. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/XMPCore/source/IClientDOMParser.cpp +76 -0
  70. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/XMPCore/source/IClientDOMSerializer.cpp +73 -0
  71. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/XMPCore/source/ICompositeNode.cpp +121 -0
  72. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/XMPCore/source/ICoreConfigurationManager.cpp +88 -0
  73. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/XMPCore/source/ICoreObjectFactory.cpp +83 -0
  74. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/XMPCore/source/IDOMImplementationRegistry.cpp +122 -0
  75. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/XMPCore/source/IDOMParser.cpp +116 -0
  76. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/XMPCore/source/IDOMSerializer.cpp +109 -0
  77. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/XMPCore/source/IMetadata.cpp +113 -0
  78. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/XMPCore/source/IMetadataConverterUtils.cpp +92 -0
  79. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/XMPCore/source/INameSpacePrefixMap.cpp +187 -0
  80. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/XMPCore/source/INode.cpp +377 -0
  81. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/XMPCore/source/INodeIterator.cpp +105 -0
  82. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/XMPCore/source/IPath.cpp +157 -0
  83. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/XMPCore/source/IPathSegment.cpp +146 -0
  84. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/XMPCore/source/ISimpleNode.cpp +111 -0
  85. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/XMPCore/source/IStructureNode.cpp +104 -0
  86. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/XMP_Const.h +1590 -0
  87. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/XMP_Environment.h +223 -0
  88. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/XMP_IO.hpp +169 -0
  89. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/XMP_Version.h +52 -0
  90. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/client-glue/TXMPFiles.incl_cpp +484 -0
  91. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/client-glue/TXMPIterator.incl_cpp +223 -0
  92. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/client-glue/TXMPMeta.incl_cpp +917 -0
  93. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/client-glue/TXMPUtils.incl_cpp +445 -0
  94. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/client-glue/WXMPFiles.hpp +281 -0
  95. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/client-glue/WXMPIterator.hpp +74 -0
  96. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/client-glue/WXMPMeta.hpp +635 -0
  97. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/client-glue/WXMPUtils.hpp +314 -0
  98. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/include/client-glue/WXMP_Common.hpp +132 -0
  99. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/libraries/i80386linux_x64/debug/libXMPCore.so +0 -0
  100. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/libraries/i80386linux_x64/debug/libXMPCoreStatic.a +0 -0
  101. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/libraries/i80386linux_x64/debug/libXMPFiles.so +0 -0
  102. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/libraries/i80386linux_x64/debug/libXMPFilesStatic.a +0 -0
  103. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/libraries/macintosh/universal/Debug/libXMPCoreStatic.a +0 -0
  104. data/ext/xmp_toolkit_ruby/XMP-Toolkit-SDK/public/libraries/macintosh/universal/Debug/libXMPFilesStatic.a +0 -0
  105. data/ext/xmp_toolkit_ruby/extconf.rb +101 -0
  106. data/ext/xmp_toolkit_ruby/xmp_toolkit.cpp +321 -0
  107. data/ext/xmp_toolkit_ruby/xmp_toolkit.hpp +69 -0
  108. data/ext/xmp_toolkit_ruby/xmp_toolkit_ruby.cpp +44 -0
  109. data/lib/xmp_toolkit_ruby/cli.rb +95 -0
  110. data/lib/xmp_toolkit_ruby/namespaces.rb +77 -0
  111. data/lib/xmp_toolkit_ruby/plugins/LICENSE +31 -0
  112. data/lib/xmp_toolkit_ruby/plugins/PDF_Handler/i80386linux/i80386linux/PDF_Handler.resources/MODULE_IDENTIFIER.txt +1 -0
  113. data/lib/xmp_toolkit_ruby/plugins/PDF_Handler/i80386linux/i80386linux/PDF_Handler.resources/XMPPLUGINUIDS.txt +31 -0
  114. data/lib/xmp_toolkit_ruby/plugins/PDF_Handler/i80386linux/i80386linux/PDF_Handler.xpi +0 -0
  115. data/lib/xmp_toolkit_ruby/plugins/PDF_Handler/i80386linux/i80386linux/libMiniPDFL.so +0 -0
  116. data/lib/xmp_toolkit_ruby/plugins/PDF_Handler/i80386linux/i80386linux_x64/PDF_Handler.resources/MODULE_IDENTIFIER.txt +1 -0
  117. data/lib/xmp_toolkit_ruby/plugins/PDF_Handler/i80386linux/i80386linux_x64/PDF_Handler.resources/XMPPLUGINUIDS.txt +31 -0
  118. data/lib/xmp_toolkit_ruby/plugins/PDF_Handler/i80386linux/i80386linux_x64/PDF_Handler.xpi +0 -0
  119. data/lib/xmp_toolkit_ruby/plugins/PDF_Handler/i80386linux/i80386linux_x64/libMiniPDFL.so +0 -0
  120. data/lib/xmp_toolkit_ruby/plugins/PDF_Handler/macintosh/universal/PDF_Handler.xpi/PDF_Handler +0 -0
  121. data/lib/xmp_toolkit_ruby/plugins/PDF_Handler/macintosh/universal/PDF_Handler.xpi/Resources/Info.plist +52 -0
  122. data/lib/xmp_toolkit_ruby/plugins/PDF_Handler/macintosh/universal/PDF_Handler.xpi/Resources/MODULE_IDENTIFIER.txt +1 -0
  123. data/lib/xmp_toolkit_ruby/plugins/PDF_Handler/macintosh/universal/PDF_Handler.xpi/Resources/MiniPDFL.framework/MiniPDFL +0 -0
  124. data/lib/xmp_toolkit_ruby/plugins/PDF_Handler/macintosh/universal/PDF_Handler.xpi/Resources/MiniPDFL.framework/Resources/English.lproj/InfoPlist.strings +0 -0
  125. data/lib/xmp_toolkit_ruby/plugins/PDF_Handler/macintosh/universal/PDF_Handler.xpi/Resources/MiniPDFL.framework/Resources/Info.plist +35 -0
  126. data/lib/xmp_toolkit_ruby/plugins/PDF_Handler/macintosh/universal/PDF_Handler.xpi/Resources/MiniPDFL.framework/Versions/A/MiniPDFL +0 -0
  127. data/lib/xmp_toolkit_ruby/plugins/PDF_Handler/macintosh/universal/PDF_Handler.xpi/Resources/MiniPDFL.framework/Versions/A/Resources/English.lproj/InfoPlist.strings +0 -0
  128. data/lib/xmp_toolkit_ruby/plugins/PDF_Handler/macintosh/universal/PDF_Handler.xpi/Resources/MiniPDFL.framework/Versions/A/Resources/Info.plist +35 -0
  129. data/lib/xmp_toolkit_ruby/plugins/PDF_Handler/macintosh/universal/PDF_Handler.xpi/Resources/MiniPDFL.framework/Versions/A/_CodeSignature/CodeResources +146 -0
  130. data/lib/xmp_toolkit_ruby/plugins/PDF_Handler/macintosh/universal/PDF_Handler.xpi/Resources/MiniPDFL.framework/Versions/Current/MiniPDFL +0 -0
  131. data/lib/xmp_toolkit_ruby/plugins/PDF_Handler/macintosh/universal/PDF_Handler.xpi/Resources/MiniPDFL.framework/Versions/Current/Resources/English.lproj/InfoPlist.strings +0 -0
  132. data/lib/xmp_toolkit_ruby/plugins/PDF_Handler/macintosh/universal/PDF_Handler.xpi/Resources/MiniPDFL.framework/Versions/Current/Resources/Info.plist +35 -0
  133. data/lib/xmp_toolkit_ruby/plugins/PDF_Handler/macintosh/universal/PDF_Handler.xpi/Resources/MiniPDFL.framework/Versions/Current/_CodeSignature/CodeResources +146 -0
  134. data/lib/xmp_toolkit_ruby/plugins/PDF_Handler/macintosh/universal/PDF_Handler.xpi/Resources/XMPPLUGINUIDS.txt +31 -0
  135. data/lib/xmp_toolkit_ruby/plugins/PDF_Handler/macintosh/universal/PDF_Handler.xpi/Versions/A/PDF_Handler +0 -0
  136. data/lib/xmp_toolkit_ruby/plugins/PDF_Handler/macintosh/universal/PDF_Handler.xpi/Versions/A/Resources/Info.plist +52 -0
  137. data/lib/xmp_toolkit_ruby/plugins/PDF_Handler/macintosh/universal/PDF_Handler.xpi/Versions/A/Resources/MODULE_IDENTIFIER.txt +1 -0
  138. data/lib/xmp_toolkit_ruby/plugins/PDF_Handler/macintosh/universal/PDF_Handler.xpi/Versions/A/Resources/MiniPDFL.framework/MiniPDFL +0 -0
  139. data/lib/xmp_toolkit_ruby/plugins/PDF_Handler/macintosh/universal/PDF_Handler.xpi/Versions/A/Resources/MiniPDFL.framework/Resources/English.lproj/InfoPlist.strings +0 -0
  140. data/lib/xmp_toolkit_ruby/plugins/PDF_Handler/macintosh/universal/PDF_Handler.xpi/Versions/A/Resources/MiniPDFL.framework/Resources/Info.plist +35 -0
  141. data/lib/xmp_toolkit_ruby/plugins/PDF_Handler/macintosh/universal/PDF_Handler.xpi/Versions/A/Resources/MiniPDFL.framework/Versions/A/MiniPDFL +0 -0
  142. data/lib/xmp_toolkit_ruby/plugins/PDF_Handler/macintosh/universal/PDF_Handler.xpi/Versions/A/Resources/MiniPDFL.framework/Versions/A/Resources/English.lproj/InfoPlist.strings +0 -0
  143. data/lib/xmp_toolkit_ruby/plugins/PDF_Handler/macintosh/universal/PDF_Handler.xpi/Versions/A/Resources/MiniPDFL.framework/Versions/A/Resources/Info.plist +35 -0
  144. data/lib/xmp_toolkit_ruby/plugins/PDF_Handler/macintosh/universal/PDF_Handler.xpi/Versions/A/Resources/MiniPDFL.framework/Versions/A/_CodeSignature/CodeResources +146 -0
  145. data/lib/xmp_toolkit_ruby/plugins/PDF_Handler/macintosh/universal/PDF_Handler.xpi/Versions/A/Resources/MiniPDFL.framework/Versions/Current/MiniPDFL +0 -0
  146. data/lib/xmp_toolkit_ruby/plugins/PDF_Handler/macintosh/universal/PDF_Handler.xpi/Versions/A/Resources/MiniPDFL.framework/Versions/Current/Resources/English.lproj/InfoPlist.strings +0 -0
  147. data/lib/xmp_toolkit_ruby/plugins/PDF_Handler/macintosh/universal/PDF_Handler.xpi/Versions/A/Resources/MiniPDFL.framework/Versions/Current/Resources/Info.plist +35 -0
  148. data/lib/xmp_toolkit_ruby/plugins/PDF_Handler/macintosh/universal/PDF_Handler.xpi/Versions/A/Resources/MiniPDFL.framework/Versions/Current/_CodeSignature/CodeResources +146 -0
  149. data/lib/xmp_toolkit_ruby/plugins/PDF_Handler/macintosh/universal/PDF_Handler.xpi/Versions/A/Resources/XMPPLUGINUIDS.txt +31 -0
  150. data/lib/xmp_toolkit_ruby/plugins/PDF_Handler/macintosh/universal/PDF_Handler.xpi/Versions/A/_CodeSignature/CodeResources +216 -0
  151. data/lib/xmp_toolkit_ruby/plugins/PDF_Handler/macintosh/universal/PDF_Handler.xpi/Versions/Current/PDF_Handler +0 -0
  152. data/lib/xmp_toolkit_ruby/plugins/PDF_Handler/macintosh/universal/PDF_Handler.xpi/Versions/Current/Resources/Info.plist +52 -0
  153. data/lib/xmp_toolkit_ruby/plugins/PDF_Handler/macintosh/universal/PDF_Handler.xpi/Versions/Current/Resources/MODULE_IDENTIFIER.txt +1 -0
  154. data/lib/xmp_toolkit_ruby/plugins/PDF_Handler/macintosh/universal/PDF_Handler.xpi/Versions/Current/Resources/MiniPDFL.framework/MiniPDFL +0 -0
  155. data/lib/xmp_toolkit_ruby/plugins/PDF_Handler/macintosh/universal/PDF_Handler.xpi/Versions/Current/Resources/MiniPDFL.framework/Resources/English.lproj/InfoPlist.strings +0 -0
  156. data/lib/xmp_toolkit_ruby/plugins/PDF_Handler/macintosh/universal/PDF_Handler.xpi/Versions/Current/Resources/MiniPDFL.framework/Resources/Info.plist +35 -0
  157. data/lib/xmp_toolkit_ruby/plugins/PDF_Handler/macintosh/universal/PDF_Handler.xpi/Versions/Current/Resources/MiniPDFL.framework/Versions/A/MiniPDFL +0 -0
  158. data/lib/xmp_toolkit_ruby/plugins/PDF_Handler/macintosh/universal/PDF_Handler.xpi/Versions/Current/Resources/MiniPDFL.framework/Versions/A/Resources/English.lproj/InfoPlist.strings +0 -0
  159. data/lib/xmp_toolkit_ruby/plugins/PDF_Handler/macintosh/universal/PDF_Handler.xpi/Versions/Current/Resources/MiniPDFL.framework/Versions/A/Resources/Info.plist +35 -0
  160. data/lib/xmp_toolkit_ruby/plugins/PDF_Handler/macintosh/universal/PDF_Handler.xpi/Versions/Current/Resources/MiniPDFL.framework/Versions/A/_CodeSignature/CodeResources +146 -0
  161. data/lib/xmp_toolkit_ruby/plugins/PDF_Handler/macintosh/universal/PDF_Handler.xpi/Versions/Current/Resources/MiniPDFL.framework/Versions/Current/MiniPDFL +0 -0
  162. data/lib/xmp_toolkit_ruby/plugins/PDF_Handler/macintosh/universal/PDF_Handler.xpi/Versions/Current/Resources/MiniPDFL.framework/Versions/Current/Resources/English.lproj/InfoPlist.strings +0 -0
  163. data/lib/xmp_toolkit_ruby/plugins/PDF_Handler/macintosh/universal/PDF_Handler.xpi/Versions/Current/Resources/MiniPDFL.framework/Versions/Current/Resources/Info.plist +35 -0
  164. data/lib/xmp_toolkit_ruby/plugins/PDF_Handler/macintosh/universal/PDF_Handler.xpi/Versions/Current/Resources/MiniPDFL.framework/Versions/Current/_CodeSignature/CodeResources +146 -0
  165. data/lib/xmp_toolkit_ruby/plugins/PDF_Handler/macintosh/universal/PDF_Handler.xpi/Versions/Current/Resources/XMPPLUGINUIDS.txt +31 -0
  166. data/lib/xmp_toolkit_ruby/plugins/PDF_Handler/macintosh/universal/PDF_Handler.xpi/Versions/Current/_CodeSignature/CodeResources +216 -0
  167. data/lib/xmp_toolkit_ruby/plugins/PDF_Handler/resource/linux/PDF_Handler.exp +11 -0
  168. data/lib/xmp_toolkit_ruby/plugins/PDF_Handler/resource/mac/PDF_Handler.exp +2 -0
  169. data/lib/xmp_toolkit_ruby/plugins/PDF_Handler/resource/mac/PDF_Handler.plist +28 -0
  170. data/lib/xmp_toolkit_ruby/plugins/PDF_Handler/resource/mac/PDF_HandlerPList.h +12 -0
  171. data/lib/xmp_toolkit_ruby/plugins/PDF_Handler/resource/win/CopyPDFL.bat +14 -0
  172. data/lib/xmp_toolkit_ruby/plugins/PDF_Handler/resource/win/PDF_Handler-32.rc +8 -0
  173. data/lib/xmp_toolkit_ruby/plugins/PDF_Handler/resource/win/PDF_Handler-64.rc +8 -0
  174. data/lib/xmp_toolkit_ruby/plugins/PDF_Handler/resource/win/PDF_Handler.def +9 -0
  175. data/lib/xmp_toolkit_ruby/plugins/PDF_Handler/windows/windows_x64/MiniPDFL.dll +0 -0
  176. data/lib/xmp_toolkit_ruby/plugins/PDF_Handler/windows/windows_x64/PDF_Handler.xpi +0 -0
  177. data/lib/xmp_toolkit_ruby/version.rb +5 -0
  178. data/lib/xmp_toolkit_ruby/xmp_file_format.rb +87 -0
  179. data/lib/xmp_toolkit_ruby/xmp_file_handler_flags.rb +49 -0
  180. data/lib/xmp_toolkit_ruby.rb +237 -0
  181. data/sig/xmp_toolkit_ruby.rbs +4 -0
  182. data/tasks/changelog.rake +29 -0
  183. metadata +357 -0
@@ -0,0 +1,564 @@
1
+ #ifndef TWrapperFunctions2_h__
2
+ #define TWrapperFunctions2_h__ 1
3
+
4
+ // =================================================================================================
5
+ // Copyright Adobe
6
+ // Copyright 2015 Adobe
7
+ // All Rights Reserved
8
+ //
9
+ // NOTICE: Adobe permits you to use, modify, and distribute this file in accordance with the terms
10
+ // of the Adobe license agreement accompanying it.
11
+ // =================================================================================================
12
+
13
+ //! \cond XMP_INTERNAL_DOCUMENTATION
14
+ namespace AdobeXMPCommon {
15
+ template < typename className >
16
+ void CallSafeFunctionReturningVoid( className * ptr,
17
+ void ( APICALL className::*Func )( pcIError_base & ) )
18
+ {
19
+ pcIError_base error( NULL );
20
+ ( ptr->*Func )( error );
21
+ if ( error ) throw IError::MakeShared( error );
22
+ }
23
+
24
+ template< typename className, typename t1 >
25
+ void CallSafeFunctionReturningVoid( className * ptr,
26
+ void ( APICALL className::*Func )( t1, pcIError_base & ), t1 v1 )
27
+ {
28
+ pcIError_base error( NULL );
29
+ ( ptr->*Func )( v1, error );
30
+ if ( error ) throw IError::MakeShared( error );
31
+ }
32
+
33
+ template< typename className, typename t1, typename t2 >
34
+ void CallSafeFunctionReturningVoid( className * ptr,
35
+ void ( APICALL className::*Func )( t1, t2, pcIError_base & ), t1 v1, t2 v2 )
36
+ {
37
+ pcIError_base error( NULL );
38
+ ( ptr->*Func )( v1, v2, error );
39
+ if ( error ) throw IError::MakeShared( error );
40
+ }
41
+
42
+ template< typename className, typename t1, typename t2, typename t3 >
43
+ void CallSafeFunctionReturningVoid( className * ptr,
44
+ void ( APICALL className::*Func )( t1, t2, t3, pcIError_base & ), t1 v1, t2 v2, t3 v3 )
45
+ {
46
+ pcIError_base error( NULL );
47
+ ( ptr->*Func )( v1, v2, v3, error );
48
+ if ( error ) throw IError::MakeShared( error );
49
+ }
50
+
51
+ template< typename className, typename t1, typename t2, typename t3, typename t4 >
52
+ void CallSafeFunctionReturningVoid( className * ptr,
53
+ void ( APICALL className::*Func )( t1, t2, t3, t4, pcIError_base & ), t1 v1, t2 v2, t3 v3, t4 v4 )
54
+ {
55
+ pcIError_base error( NULL );
56
+ ( ptr->*Func )( v1, v2, v3, v4, error );
57
+ if ( error ) throw IError::MakeShared( error );
58
+ }
59
+
60
+ template< typename className, typename t1, typename t2, typename t3, typename t4, typename t5 >
61
+ void CallSafeFunctionReturningVoid( className * ptr,
62
+ void ( APICALL className::*Func )( t1, t2, t3, t4, t5, pcIError_base & ), t1 v1, t2 v2, t3 v3, t4 v4, t5 v5 )
63
+ {
64
+ pcIError_base error( NULL );
65
+ ( ptr->*Func )( v1, v2, v3, v4, v5, error );
66
+ if ( error ) throw IError::MakeShared( error );
67
+ }
68
+
69
+ template< typename className, typename t1, typename t2, typename t3, typename t4, typename t5, typename t6 >
70
+ void CallSafeFunctionReturningVoid( className * ptr,
71
+ void ( APICALL className::*Func )( t1, t2, t3, t4, t5, t6, pcIError_base & ), t1 v1, t2 v2, t3 v3, t4 v4, t5 v5, t6 v6 )
72
+ {
73
+ pcIError_base error( NULL );
74
+ ( ptr->*Func )( v1, v2, v3, v4, v5, error );
75
+ if ( error ) throw IError::MakeShared( error );
76
+ }
77
+
78
+ template < typename className >
79
+ void CallConstSafeFunctionReturningVoid( const className * const ptr,
80
+ void ( APICALL className::*Func )( pcIError_base & ) const )
81
+ {
82
+ pcIError_base error( NULL );
83
+ ( ptr->*Func )( error );
84
+ if ( error ) throw IError::MakeShared( error );
85
+ }
86
+
87
+ template < typename className, typename t1 >
88
+ void CallConstSafeFunctionReturningVoid( const className * const ptr,
89
+ void ( APICALL className::*Func )( t1, pcIError_base & ) const, t1 v1 )
90
+ {
91
+ pcIError_base error( NULL );
92
+ ( ptr->*Func )( v1, error );
93
+ if ( error ) throw IError::MakeShared( error );
94
+ }
95
+
96
+ template < typename className, typename t1, typename t2 >
97
+ void CallConstSafeFunctionReturningVoid( const className * const ptr,
98
+ void ( APICALL className::*Func )( t1, t2, pcIError_base & ) const, t1 v1, t2 v2 )
99
+ {
100
+ pcIError_base error( NULL );
101
+ ( ptr->*Func )( v1, v2, error );
102
+ if ( error ) throw IError::MakeShared( error );
103
+ }
104
+
105
+ template < typename className, typename t1, typename t2, typename t3 >
106
+ void CallConstSafeFunctionReturningVoid( const className * const ptr,
107
+ void ( APICALL className::*Func )( t1, t2, t3, pcIError_base & ) const, t1 v1, t2 v2, t3 v3 )
108
+ {
109
+ pcIError_base error( NULL );
110
+ ( ptr->*Func )( v1, v2, v3, error );
111
+ if ( error ) throw IError::MakeShared( error );
112
+ }
113
+
114
+ template < typename className, typename t1, typename t2, typename t3, typename t4 >
115
+ void CallConstSafeFunctionReturningVoid( const className * const ptr,
116
+ void ( APICALL className::*Func )( t1, t2, t3, t4, pcIError_base & ) const, t1 v1, t2 v2, t3 v3, t4 v4 )
117
+ {
118
+ pcIError_base error( NULL );
119
+ ( ptr->*Func )( v1, v2, v3, v4, error );
120
+ if ( error ) throw IError::MakeShared( error );
121
+ }
122
+
123
+ template < typename className, typename t1, typename t2, typename t3, typename t4, typename t5 >
124
+ void CallConstSafeFunctionReturningVoid( const className * const ptr,
125
+ void ( APICALL className::*Func )( t1, t2, t3, t4, t5, pcIError_base & ) const, t1 v1, t2 v2, t3 v3, t4 v4, t5 v5 )
126
+ {
127
+ pcIError_base error( NULL );
128
+ ( ptr->*Func )( v1, v2, v3, v4, v5, error );
129
+ if ( error ) throw IError::MakeShared( error );
130
+ }
131
+
132
+
133
+ template < typename className, typename returnType, typename internalReturnType >
134
+ returnType CallSafeFunction( className * ptr,
135
+ internalReturnType ( APICALL className::*Func )( pcIError_base & ) )
136
+ {
137
+ pcIError_base error( NULL );
138
+ internalReturnType returnValue = (ptr->*Func)( error );
139
+ if ( error ) throw IError::MakeShared( error );
140
+ #if XMP_WinBuild
141
+ #pragma warning( push )
142
+ #pragma warning( disable : 4800 )
143
+ #endif
144
+ return static_cast< returnType >( returnValue );
145
+ #if XMP_WinBuild
146
+ #pragma warning( pop )
147
+ #endif
148
+ }
149
+
150
+ template < typename className, typename returnType, typename internalReturnType, typename t1 >
151
+ returnType CallSafeFunction( className * ptr,
152
+ internalReturnType ( APICALL className::*Func )( t1, pcIError_base & ), t1 v1 )
153
+ {
154
+ pcIError_base error( NULL );
155
+ internalReturnType returnValue = (ptr->*Func)( v1, error );
156
+ if ( error ) throw IError::MakeShared( error );
157
+ #if XMP_WinBuild
158
+ #pragma warning( push )
159
+ #pragma warning( disable : 4800 )
160
+ #endif
161
+ return static_cast< returnType >( returnValue );
162
+ #if XMP_WinBuild
163
+ #pragma warning( pop )
164
+ #endif
165
+ }
166
+
167
+ template < typename className, typename returnType, typename internalReturnType, typename t1, typename t2 >
168
+ returnType CallSafeFunction( className * ptr,
169
+ internalReturnType ( APICALL className::*Func )( t1, t2, pcIError_base & ), t1 v1, t2 v2 )
170
+ {
171
+ pcIError_base error( NULL );
172
+ internalReturnType returnValue = (ptr->*Func)( v1, v2, error );
173
+ if ( error ) throw IError::MakeShared( error );
174
+ #if XMP_WinBuild
175
+ #pragma warning( push )
176
+ #pragma warning( disable : 4800 )
177
+ #endif
178
+ return static_cast< returnType >( returnValue );
179
+ #if XMP_WinBuild
180
+ #pragma warning( pop )
181
+ #endif
182
+ }
183
+
184
+ template < typename className, typename returnType, typename internalReturnType, typename t1, typename t2, typename t3 >
185
+ returnType CallSafeFunction( className * ptr,
186
+ internalReturnType( APICALL className::*Func )( t1, t2, t3, pcIError_base & ), t1 v1, t2 v2, t3 v3 )
187
+ {
188
+ pcIError_base error( NULL );
189
+ internalReturnType returnValue = ( ptr->*Func )( v1, v2, v3, error );
190
+ if ( error ) throw IError::MakeShared( error );
191
+ #if XMP_WinBuild
192
+ #pragma warning( push )
193
+ #pragma warning( disable : 4800 )
194
+ #endif
195
+ return static_cast< returnType >( returnValue );
196
+ #if XMP_WinBuild
197
+ #pragma warning( pop )
198
+ #endif
199
+ }
200
+
201
+ template < typename className, typename returnType, typename internalReturnType, typename t1, typename t2, typename t3, typename t4 >
202
+ returnType CallSafeFunction( className * ptr,
203
+ internalReturnType( APICALL className::*Func )( t1, t2, t3, t4, pcIError_base & ), t1 v1, t2 v2, t3 v3, t4 v4 )
204
+ {
205
+ pcIError_base error( NULL );
206
+ internalReturnType returnValue = ( ptr->*Func )( v1, v2, v3, v4, error );
207
+ if ( error ) throw IError::MakeShared( error );
208
+ #if XMP_WinBuild
209
+ #pragma warning( push )
210
+ #pragma warning( disable : 4800 )
211
+ #endif
212
+ return static_cast< returnType >( returnValue );
213
+ #if XMP_WinBuild
214
+ #pragma warning( pop )
215
+ #endif
216
+ }
217
+
218
+ template < typename className, typename returnType, typename internalReturnType, typename t1, typename t2, typename t3, typename t4, typename t5 >
219
+ returnType CallSafeFunction( className * ptr,
220
+ internalReturnType( APICALL className::*Func )( t1, t2, t3, t4, t5, pcIError_base & ), t1 v1, t2 v2, t3 v3, t4 v4, t5 v5 )
221
+ {
222
+ pcIError_base error( NULL );
223
+ internalReturnType returnValue = ( ptr->*Func )( v1, v2, v3, v4, v5, error );
224
+ if ( error ) throw IError::MakeShared( error );
225
+ #if XMP_WinBuild
226
+ #pragma warning( push )
227
+ #pragma warning( disable : 4800 )
228
+ #endif
229
+ return static_cast< returnType >( returnValue );
230
+ #if XMP_WinBuild
231
+ #pragma warning( pop )
232
+ #endif
233
+ }
234
+
235
+ // Fixing AML build on mac
236
+
237
+ template < typename className, typename returnType, typename internalReturnType, typename t1, typename t2, typename t3, typename t4, typename t5, typename t6 >
238
+ returnType CallSafeFunction( className * ptr,
239
+ internalReturnType( APICALL className::*Func )( t1, t2, t3, t4, t5, t6, pcIError_base & ), t1 v1, t2 v2, t3 v3, t4 v4, t5 v5, t6 v6 )
240
+ {
241
+ pcIError_base error( NULL );
242
+ internalReturnType returnValue = ( ptr->*Func )( v1, v2, v3, v4, v5, v6, error );
243
+ if ( error ) throw IError::MakeShared( error );
244
+ #if XMP_WinBuild
245
+ #pragma warning( push )
246
+ #pragma warning( disable : 4800 )
247
+ #endif
248
+ return static_cast< returnType >( returnValue );
249
+ #if XMP_WinBuild
250
+ #pragma warning( pop )
251
+ #endif
252
+ }
253
+
254
+ template < typename className, typename returnType, typename internalReturnType >
255
+ returnType CallConstSafeFunction( const className * const ptr,
256
+ internalReturnType ( APICALL className::*Func )( pcIError_base & ) const )
257
+ {
258
+ pcIError_base error( NULL );
259
+ internalReturnType returnValue = (ptr->*Func)( error );
260
+ if ( error ) throw IError::MakeShared( error );
261
+ #if XMP_WinBuild
262
+ #pragma warning( push )
263
+ #pragma warning( disable : 4800 )
264
+ #endif
265
+ return static_cast< returnType >( returnValue );
266
+ #if XMP_WinBuild
267
+ #pragma warning( pop )
268
+ #endif
269
+ }
270
+
271
+ template < typename className, typename returnType, typename internalReturnType, typename t1 >
272
+ returnType CallConstSafeFunction( const className * const ptr,
273
+ internalReturnType ( APICALL className::*Func )( t1, pcIError_base & ) const, t1 v1 )
274
+ {
275
+ pcIError_base error( NULL );
276
+ internalReturnType returnValue = (ptr->*Func)( v1, error );
277
+ if ( error ) throw IError::MakeShared( error );
278
+ #if XMP_WinBuild
279
+ #pragma warning( push )
280
+ #pragma warning( disable : 4800 )
281
+ #endif
282
+ return static_cast< returnType >( returnValue );
283
+ #if XMP_WinBuild
284
+ #pragma warning( pop )
285
+ #endif
286
+ }
287
+
288
+ template < typename className, typename returnType, typename internalReturnType, typename t1, typename t2 >
289
+ returnType CallConstSafeFunction( const className * const ptr,
290
+ internalReturnType ( APICALL className::*Func )( t1, t2, pcIError_base & ) const, t1 v1, t2 v2 )
291
+ {
292
+ pcIError_base error( NULL );
293
+ internalReturnType returnValue = (ptr->*Func)( v1, v2, error );
294
+ if ( error ) throw IError::MakeShared( error );
295
+ #if XMP_WinBuild
296
+ #pragma warning( push )
297
+ #pragma warning( disable : 4800 )
298
+ #endif
299
+ return static_cast< returnType >( returnValue );
300
+ #if XMP_WinBuild
301
+ #pragma warning( pop )
302
+ #endif
303
+ }
304
+
305
+ template < typename className, typename returnType, typename internalReturnType, typename t1, typename t2, typename t3 >
306
+ returnType CallConstSafeFunction( const className * const ptr,
307
+ internalReturnType ( APICALL className::*Func )( t1, t2, t3, pcIError_base & ) const, t1 v1, t2 v2, t3 v3 )
308
+ {
309
+ pcIError_base error( NULL );
310
+ internalReturnType returnValue = (ptr->*Func)( v1, v2, v3, error );
311
+ if ( error ) throw IError::MakeShared( error );
312
+ #if XMP_WinBuild
313
+ #pragma warning( push )
314
+ #pragma warning( disable : 4800 )
315
+ #endif
316
+ return static_cast< returnType >( returnValue );
317
+ #if XMP_WinBuild
318
+ #pragma warning( pop )
319
+ #endif
320
+ }
321
+
322
+ template < typename className, typename returnType, typename internalReturnType, typename t1, typename t2, typename t3, typename t4 >
323
+ returnType CallConstSafeFunction( const className * const ptr,
324
+ internalReturnType ( APICALL className::*Func )( t1, t2, t3, t4, pcIError_base & ) const, t1 v1, t2 v2, t3 v3, t4 v4 )
325
+ {
326
+ pcIError_base error( NULL );
327
+ internalReturnType returnValue = (ptr->*Func)( v1, v2, v3, v4, error );
328
+ if ( error ) throw IError::MakeShared( error );
329
+ #if XMP_WinBuild
330
+ #pragma warning( push )
331
+ #pragma warning( disable : 4800 )
332
+ #endif
333
+ return static_cast< returnType >( returnValue );
334
+ #if XMP_WinBuild
335
+ #pragma warning( pop )
336
+ #endif
337
+ }
338
+
339
+ template < typename className, typename returnType, typename internalReturnType, typename t1, typename t2, typename t3, typename t4, typename t5 >
340
+ returnType CallConstSafeFunction( const className * const ptr,
341
+ internalReturnType ( APICALL className::*Func )( t1, t2, t3, t4, t5, pcIError_base & ) const, t1 v1, t2 v2, t3 v3, t4 v4, t5 v5 )
342
+ {
343
+ pcIError_base error( NULL );
344
+ internalReturnType returnValue = (ptr->*Func)( v1, v2, v3, v4, v5, error );
345
+ if ( error ) throw IError::MakeShared( error );
346
+ #if XMP_WinBuild
347
+ #pragma warning( push )
348
+ #pragma warning( disable : 4800 )
349
+ #endif
350
+ return static_cast< returnType >( returnValue );
351
+ #if XMP_WinBuild
352
+ #pragma warning( pop )
353
+ #endif
354
+ }
355
+
356
+ //Fixing AML build on mac
357
+
358
+ template < typename className, typename returnType, typename internalReturnType, typename t1, typename t2, typename t3, typename t4, typename t5, typename t6 >
359
+ returnType CallConstSafeFunction( const className * const ptr,
360
+ internalReturnType ( APICALL className::*Func )( t1, t2, t3, t4, t5, t6, pcIError_base & ) const, t1 v1, t2 v2, t3 v3, t4 v4, t5 v5, t6 v6 )
361
+ {
362
+ pcIError_base error( NULL );
363
+ internalReturnType returnValue = (ptr->*Func)( v1, v2, v3, v4, v5, v6, error );
364
+ if ( error ) throw IError::MakeShared( error );
365
+ #if XMP_WinBuild
366
+ #pragma warning( push )
367
+ #pragma warning( disable : 4800 )
368
+ #endif
369
+ return static_cast< returnType >( returnValue );
370
+ #if XMP_WinBuild
371
+ #pragma warning( pop )
372
+ #endif
373
+ }
374
+
375
+ template < typename className, typename returnType, typename internalReturnType, typename t1, typename t2, typename t3, typename t4, typename t5, typename t6, typename t7 >
376
+ returnType CallConstSafeFunction( const className * const ptr,
377
+ internalReturnType ( APICALL className::*Func )( t1, t2, t3, t4, t5, t6, t7, pcIError_base & ) const, t1 v1, t2 v2, t3 v3, t4 v4, t5 v5, t6 v6, t7 v7 )
378
+ {
379
+ pcIError_base error( NULL );
380
+ internalReturnType returnValue = (ptr->*Func)( v1, v2, v3, v4, v5, v6, v7, error );
381
+ if ( error ) throw IError::MakeShared( error );
382
+ #if XMP_WinBuild
383
+ #pragma warning( push )
384
+ #pragma warning( disable : 4800 )
385
+ #endif
386
+ return static_cast< returnType >( returnValue );
387
+ #if XMP_WinBuild
388
+ #pragma warning( pop )
389
+ #endif
390
+ }
391
+
392
+
393
+ template < typename className, typename returnType, typename internalReturnType, typename t1, typename t2, typename t3, typename t4, typename t5, typename t6, typename t7, typename t8, typename t9 >
394
+ returnType CallConstSafeFunction( const className * const ptr,
395
+ internalReturnType ( APICALL className::*Func )( t1, t2, t3, t4, t5, t6, t7, t8, t9, pcIError_base & ) const, t1 v1, t2 v2, t3 v3, t4 v4, t5 v5, t6 v6, t7 v7, t8 v8, t9 v9 )
396
+ {
397
+ pcIError_base error( NULL );
398
+ internalReturnType returnValue = (ptr->*Func)( v1, v2, v3, v4, v5, v6, v7, v8, v9, error );
399
+ if ( error ) throw IError::MakeShared( error );
400
+ #if XMP_WinBuild
401
+ #pragma warning( push )
402
+ #pragma warning( disable : 4800 )
403
+ #endif
404
+ return static_cast< returnType >( returnValue );
405
+ #if XMP_WinBuild
406
+ #pragma warning( pop )
407
+ #endif
408
+ }
409
+
410
+
411
+
412
+ template < typename className, typename internalReturnType, typename sharedPointerType >
413
+ shared_ptr< sharedPointerType > CallSafeFunctionReturningPointer( className * ptr,
414
+ internalReturnType( APICALL className::*Func )( pcIError_base & ) )
415
+ {
416
+ pcIError_base error( NULL );
417
+ internalReturnType returnValue = ( ptr->*Func )( error );
418
+ if ( error ) throw IError::MakeShared( error );
419
+ return sharedPointerType::MakeShared( returnValue );
420
+ }
421
+
422
+ template < typename className, typename internalReturnType, typename sharedPointerType, typename t1 >
423
+ shared_ptr< sharedPointerType > CallSafeFunctionReturningPointer( className * ptr,
424
+ internalReturnType( APICALL className::*Func )( t1, pcIError_base & ), t1 v1 )
425
+ {
426
+ pcIError_base error( NULL );
427
+ internalReturnType returnValue = ( ptr->*Func )( v1, error );
428
+ if ( error ) throw IError::MakeShared( error );
429
+ return sharedPointerType::MakeShared( returnValue );
430
+ }
431
+
432
+ template < typename className, typename internalReturnType, typename sharedPointerType, typename t1, typename t2 >
433
+ shared_ptr< sharedPointerType > CallSafeFunctionReturningPointer( className * ptr,
434
+ internalReturnType( APICALL className::*Func )( t1, t2, pcIError_base & ), t1 v1, t2 v2 )
435
+ {
436
+ pcIError_base error( NULL );
437
+ internalReturnType returnValue = ( ptr->*Func )( v1, v2, error );
438
+ if ( error ) throw IError::MakeShared( error );
439
+ return sharedPointerType::MakeShared( returnValue );
440
+ }
441
+
442
+ template < typename className, typename internalReturnType, typename sharedPointerType, typename t1, typename t2, typename t3 >
443
+ shared_ptr< sharedPointerType > CallSafeFunctionReturningPointer( className * ptr,
444
+ internalReturnType( APICALL className::*Func )( t1, t2, t3, pcIError_base & ), t1 v1, t2 v2, t3 v3 )
445
+ {
446
+ pcIError_base error( NULL );
447
+ internalReturnType returnValue = ( ptr->*Func )( v1, v2, v3, error );
448
+ if ( error ) throw IError::MakeShared( error );
449
+ return sharedPointerType::MakeShared( returnValue );
450
+ }
451
+
452
+ template < typename className, typename internalReturnType, typename sharedPointerType, typename t1, typename t2, typename t3, typename t4 >
453
+ shared_ptr< sharedPointerType > CallSafeFunctionReturningPointer( className * ptr,
454
+ internalReturnType( APICALL className::*Func )( t1, t2, t3, t4, pcIError_base & ), t1 v1, t2 v2, t3 v3, t4 v4 )
455
+ {
456
+ pcIError_base error( NULL );
457
+ internalReturnType returnValue = ( ptr->*Func )( v1, v2, v3, v4, error );
458
+ if ( error ) throw IError::MakeShared( error );
459
+ return sharedPointerType::MakeShared( returnValue );
460
+ }
461
+
462
+ template < typename className, typename internalReturnType, typename sharedPointerType, typename t1, typename t2, typename t3, typename t4, typename t5 >
463
+ shared_ptr< sharedPointerType > CallSafeFunctionReturningPointer( className * ptr,
464
+ internalReturnType( APICALL className::*Func )( t1, t2, t3, t4, t5, pcIError_base & ), t1 v1, t2 v2, t3 v3, t4 v4, t5 v5 )
465
+ {
466
+ pcIError_base error( NULL );
467
+ internalReturnType returnValue = ( ptr->*Func )( v1, v2, v3, v4, v5, error );
468
+ if ( error ) throw IError::MakeShared( error );
469
+ return sharedPointerType::MakeShared( returnValue );
470
+ }
471
+
472
+ template < typename className, typename internalReturnType, typename sharedPointerType, typename t1, typename t2, typename t3, typename t4, typename t5, typename t6 >
473
+ shared_ptr< sharedPointerType > CallSafeFunctionReturningPointer( className * ptr,
474
+ internalReturnType( APICALL className::*Func )( t1, t2, t3, t4, t5, t6, pcIError_base & ), t1 v1, t2 v2, t3 v3, t4 v4, t5 v5, t6 v6 )
475
+ {
476
+ pcIError_base error( NULL );
477
+ internalReturnType returnValue = ( ptr->*Func )( v1, v2, v3, v4, v5, v6, error );
478
+ if ( error ) throw IError::MakeShared( error );
479
+ return sharedPointerType::MakeShared( returnValue );
480
+ }
481
+
482
+ template < typename className, typename internalReturnType, typename sharedPointerType >
483
+ shared_ptr< sharedPointerType > CallConstSafeFunctionReturningPointer( const className * const ptr,
484
+ internalReturnType( APICALL className::*Func )( pcIError_base & ) const )
485
+ {
486
+ pcIError_base error( NULL );
487
+ internalReturnType returnValue = ( ptr->*Func )( error );
488
+ if ( error ) throw IError::MakeShared( error );
489
+ return sharedPointerType::MakeShared( returnValue );
490
+ }
491
+
492
+ template < typename className, typename internalReturnType, typename sharedPointerType, typename t1 >
493
+ shared_ptr< sharedPointerType > CallConstSafeFunctionReturningPointer( const className * const ptr,
494
+ internalReturnType( APICALL className::*Func )( t1, pcIError_base & ) const, t1 v1 )
495
+ {
496
+ pcIError_base error( NULL );
497
+ internalReturnType returnValue = ( ptr->*Func )( v1, error );
498
+ if ( error ) throw IError::MakeShared( error );
499
+ return sharedPointerType::MakeShared( returnValue );
500
+ }
501
+
502
+ template < typename className, typename internalReturnType, typename sharedPointerType, typename t1, typename t2 >
503
+ shared_ptr< sharedPointerType > CallConstSafeFunctionReturningPointer( const className * const ptr,
504
+ internalReturnType( APICALL className::*Func )( t1, t2, pcIError_base & ) const, t1 v1, t2 v2 )
505
+ {
506
+ pcIError_base error( NULL );
507
+ internalReturnType returnValue = ( ptr->*Func )( v1, v2, error );
508
+ if ( error ) throw IError::MakeShared( error );
509
+ return sharedPointerType::MakeShared( returnValue );
510
+ }
511
+
512
+ template < typename className, typename internalReturnType, typename sharedPointerType, typename t1, typename t2, typename t3 >
513
+ shared_ptr< sharedPointerType > CallConstSafeFunctionReturningPointer( const className * const ptr,
514
+ internalReturnType( APICALL className::*Func )( t1, t2, t3, pcIError_base & ) const, t1 v1, t2 v2, t3 v3 )
515
+ {
516
+ pcIError_base error( NULL );
517
+ internalReturnType returnValue = ( ptr->*Func )( v1, v2, v3, error );
518
+ if ( error ) throw IError::MakeShared( error );
519
+ return sharedPointerType::MakeShared( returnValue );
520
+ }
521
+
522
+ template < typename className, typename internalReturnType, typename sharedPointerType, typename t1, typename t2, typename t3, typename t4 >
523
+ shared_ptr< sharedPointerType > CallConstSafeFunctionReturningPointer( const className * const ptr,
524
+ internalReturnType( APICALL className::*Func )( t1, t2, t3, t4, pcIError_base & ) const, t1 v1, t2 v2, t3 v3, t4 v4 )
525
+ {
526
+ pcIError_base error( NULL );
527
+ internalReturnType returnValue = ( ptr->*Func )( v1, v2, v3, v4, error );
528
+ if ( error ) throw IError::MakeShared( error );
529
+ return sharedPointerType::MakeShared( returnValue );
530
+ }
531
+
532
+ template < typename className, typename internalReturnType, typename sharedPointerType, typename t1, typename t2, typename t3, typename t4, typename t5 >
533
+ shared_ptr< sharedPointerType > CallConstSafeFunctionReturningPointer( const className * const ptr,
534
+ internalReturnType( APICALL className::*Func )( t1, t2, t3, t4, t5, pcIError_base & ) const, t1 v1, t2 v2, t3 v3, t4 v4, t5 v5 )
535
+ {
536
+ pcIError_base error( NULL );
537
+ internalReturnType returnValue = ( ptr->*Func )( v1, v2, v3, v4, v5, error );
538
+ if ( error ) throw IError::MakeShared( error );
539
+ return sharedPointerType::MakeShared( returnValue );
540
+ }
541
+
542
+ template < typename className, typename internalReturnType, typename sharedPointerType, typename t1, typename t2, typename t3, typename t4, typename t5, typename t6 >
543
+ shared_ptr< sharedPointerType > CallConstSafeFunctionReturningPointer( const className * const ptr,
544
+ internalReturnType( APICALL className::*Func )( t1, t2, t3, t4, t5, t6, pcIError_base & ) const, t1 v1, t2 v2, t3 v3, t4 v4, t5 v5, t6 v6 )
545
+ {
546
+ pcIError_base error( NULL );
547
+ internalReturnType returnValue = ( ptr->*Func )( v1, v2, v3, v4, v5, v6, error );
548
+ if ( error ) throw IError::MakeShared( error );
549
+ return sharedPointerType::MakeShared( returnValue );
550
+ }
551
+
552
+ template < typename className , typename internalReturnType , typename sharedPointerType , typename t1 , typename t2 , typename t3 , typename t4 , typename t5 , typename t6 , typename t7 , typename t8 >
553
+ shared_ptr< sharedPointerType > CallConstSafeFunctionReturningPointer ( const className * const ptr ,
554
+ internalReturnType ( APICALL className::*Func )(t1 , t2 , t3 , t4 , t5 , t6 , t7, t8 , pcIError_base &) const , t1 v1 , t2 v2 , t3 v3 , t4 v4 , t5 v5 , t6 v6 , t7 v7 , t8 v8 )
555
+ {
556
+ pcIError_base error ( NULL );
557
+ internalReturnType returnValue = (ptr->*Func)(v1 , v2 , v3 , v4 , v5 , v6 , v7 , v8 , error);
558
+ if ( error ) throw IError::MakeShared ( error );
559
+ return sharedPointerType::MakeShared ( returnValue );
560
+ }
561
+ }
562
+ //! \endcond
563
+ #endif // TWrapperFunctions2_h__
564
+