@chilkat/react-native 11.6.1
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.
- package/CHANGELOG.md +6 -0
- package/ChilkatRN.podspec +44 -0
- package/LICENSE +254 -0
- package/README.md +67 -0
- package/android/CMakeLists.txt +60 -0
- package/android/build.gradle +148 -0
- package/android/gradle.properties +5 -0
- package/android/src/main/AndroidManifest.xml +2 -0
- package/android/src/main/cpp/cpp-adapter.cpp +12 -0
- package/android/src/main/java/com/margelo/nitro/chilkat/ChilkatRNPackage.java +33 -0
- package/chilkat-checksums.json +9 -0
- package/cpp/HybridAi.cpp +660 -0
- package/cpp/HybridAi.hpp +159 -0
- package/cpp/HybridAsn.cpp +403 -0
- package/cpp/HybridAsn.hpp +105 -0
- package/cpp/HybridAuthAws.cpp +188 -0
- package/cpp/HybridAuthAws.hpp +55 -0
- package/cpp/HybridAuthAzureSAS.cpp +142 -0
- package/cpp/HybridAuthAzureSAS.hpp +47 -0
- package/cpp/HybridAuthAzureStorage.cpp +144 -0
- package/cpp/HybridAuthAzureStorage.hpp +47 -0
- package/cpp/HybridAuthGoogle.cpp +215 -0
- package/cpp/HybridAuthGoogle.hpp +67 -0
- package/cpp/HybridBinData.cpp +439 -0
- package/cpp/HybridBinData.hpp +112 -0
- package/cpp/HybridBz2.cpp +177 -0
- package/cpp/HybridBz2.hpp +58 -0
- package/cpp/HybridCache.cpp +314 -0
- package/cpp/HybridCache.hpp +82 -0
- package/cpp/HybridCert.cpp +840 -0
- package/cpp/HybridCert.hpp +196 -0
- package/cpp/HybridCertChain.cpp +149 -0
- package/cpp/HybridCertChain.hpp +50 -0
- package/cpp/HybridCertStore.cpp +276 -0
- package/cpp/HybridCertStore.hpp +78 -0
- package/cpp/HybridCharset.cpp +333 -0
- package/cpp/HybridCharset.hpp +83 -0
- package/cpp/HybridCkDateTime.cpp +384 -0
- package/cpp/HybridCkDateTime.hpp +105 -0
- package/cpp/HybridCodeSign.cpp +156 -0
- package/cpp/HybridCodeSign.hpp +55 -0
- package/cpp/HybridCompression.cpp +422 -0
- package/cpp/HybridCompression.hpp +100 -0
- package/cpp/HybridCrypt2.cpp +1517 -0
- package/cpp/HybridCrypt2.hpp +320 -0
- package/cpp/HybridCsr.cpp +292 -0
- package/cpp/HybridCsr.hpp +77 -0
- package/cpp/HybridCsv.cpp +382 -0
- package/cpp/HybridCsv.hpp +101 -0
- package/cpp/HybridDh.cpp +137 -0
- package/cpp/HybridDh.hpp +47 -0
- package/cpp/HybridDirTree.cpp +167 -0
- package/cpp/HybridDirTree.hpp +53 -0
- package/cpp/HybridDkim.cpp +249 -0
- package/cpp/HybridDkim.hpp +74 -0
- package/cpp/HybridDns.cpp +193 -0
- package/cpp/HybridDns.hpp +64 -0
- package/cpp/HybridDsa.cpp +453 -0
- package/cpp/HybridDsa.hpp +112 -0
- package/cpp/HybridDtObj.cpp +172 -0
- package/cpp/HybridDtObj.hpp +57 -0
- package/cpp/HybridEcc.cpp +195 -0
- package/cpp/HybridEcc.hpp +55 -0
- package/cpp/HybridEdDSA.cpp +147 -0
- package/cpp/HybridEdDSA.hpp +47 -0
- package/cpp/HybridEmail.cpp +1911 -0
- package/cpp/HybridEmail.hpp +419 -0
- package/cpp/HybridEmailBundle.cpp +204 -0
- package/cpp/HybridEmailBundle.hpp +64 -0
- package/cpp/HybridFileAccess.cpp +631 -0
- package/cpp/HybridFileAccess.hpp +149 -0
- package/cpp/HybridFtp2.cpp +2308 -0
- package/cpp/HybridFtp2.hpp +462 -0
- package/cpp/HybridGlobal.cpp +221 -0
- package/cpp/HybridGlobal.hpp +68 -0
- package/cpp/HybridGzip.cpp +440 -0
- package/cpp/HybridGzip.hpp +105 -0
- package/cpp/HybridHashtable.cpp +211 -0
- package/cpp/HybridHashtable.hpp +64 -0
- package/cpp/HybridHtmlToText.cpp +136 -0
- package/cpp/HybridHtmlToText.hpp +47 -0
- package/cpp/HybridHtmlToXml.cpp +218 -0
- package/cpp/HybridHtmlToXml.hpp +65 -0
- package/cpp/HybridHttp.cpp +2067 -0
- package/cpp/HybridHttp.hpp +416 -0
- package/cpp/HybridHttpCurl.cpp +337 -0
- package/cpp/HybridHttpCurl.hpp +93 -0
- package/cpp/HybridHttpRequest.cpp +455 -0
- package/cpp/HybridHttpRequest.hpp +109 -0
- package/cpp/HybridHttpResponse.cpp +340 -0
- package/cpp/HybridHttpResponse.hpp +86 -0
- package/cpp/HybridImap.cpp +1818 -0
- package/cpp/HybridImap.hpp +363 -0
- package/cpp/HybridJavaKeyStore.cpp +387 -0
- package/cpp/HybridJavaKeyStore.hpp +98 -0
- package/cpp/HybridJs.cpp +154 -0
- package/cpp/HybridJs.hpp +54 -0
- package/cpp/HybridJsonArray.cpp +441 -0
- package/cpp/HybridJsonArray.hpp +120 -0
- package/cpp/HybridJsonObject.cpp +1125 -0
- package/cpp/HybridJsonObject.hpp +260 -0
- package/cpp/HybridJwe.cpp +294 -0
- package/cpp/HybridJwe.hpp +82 -0
- package/cpp/HybridJws.cpp +290 -0
- package/cpp/HybridJws.hpp +82 -0
- package/cpp/HybridJwt.cpp +198 -0
- package/cpp/HybridJwt.hpp +57 -0
- package/cpp/HybridLog.cpp +212 -0
- package/cpp/HybridLog.hpp +63 -0
- package/cpp/HybridMailMan.cpp +1853 -0
- package/cpp/HybridMailMan.hpp +386 -0
- package/cpp/HybridMailboxes.cpp +165 -0
- package/cpp/HybridMailboxes.hpp +54 -0
- package/cpp/HybridMcp.cpp +322 -0
- package/cpp/HybridMcp.hpp +85 -0
- package/cpp/HybridMessageSet.cpp +162 -0
- package/cpp/HybridMessageSet.hpp +54 -0
- package/cpp/HybridMht.cpp +700 -0
- package/cpp/HybridMht.hpp +165 -0
- package/cpp/HybridMime.cpp +1119 -0
- package/cpp/HybridMime.hpp +266 -0
- package/cpp/HybridNtlm.cpp +333 -0
- package/cpp/HybridNtlm.hpp +83 -0
- package/cpp/HybridOAuth1.cpp +307 -0
- package/cpp/HybridOAuth1.hpp +78 -0
- package/cpp/HybridOAuth2.cpp +515 -0
- package/cpp/HybridOAuth2.hpp +127 -0
- package/cpp/HybridPdf.cpp +370 -0
- package/cpp/HybridPdf.hpp +103 -0
- package/cpp/HybridPem.cpp +327 -0
- package/cpp/HybridPem.hpp +88 -0
- package/cpp/HybridPfx.cpp +343 -0
- package/cpp/HybridPfx.hpp +87 -0
- package/cpp/HybridPkcs11.cpp +318 -0
- package/cpp/HybridPkcs11.hpp +88 -0
- package/cpp/HybridPrivateKey.cpp +464 -0
- package/cpp/HybridPrivateKey.hpp +117 -0
- package/cpp/HybridPrng.cpp +192 -0
- package/cpp/HybridPrng.hpp +57 -0
- package/cpp/HybridPublicKey.cpp +238 -0
- package/cpp/HybridPublicKey.hpp +68 -0
- package/cpp/HybridRest.cpp +993 -0
- package/cpp/HybridRest.hpp +214 -0
- package/cpp/HybridRsa.cpp +348 -0
- package/cpp/HybridRsa.hpp +90 -0
- package/cpp/HybridSCard.cpp +328 -0
- package/cpp/HybridSCard.hpp +91 -0
- package/cpp/HybridSFtp.cpp +1889 -0
- package/cpp/HybridSFtp.hpp +366 -0
- package/cpp/HybridSFtpDir.cpp +119 -0
- package/cpp/HybridSFtpDir.hpp +43 -0
- package/cpp/HybridSFtpFile.cpp +203 -0
- package/cpp/HybridSFtpFile.hpp +60 -0
- package/cpp/HybridScMinidriver.cpp +341 -0
- package/cpp/HybridScMinidriver.hpp +88 -0
- package/cpp/HybridScp.cpp +398 -0
- package/cpp/HybridScp.hpp +96 -0
- package/cpp/HybridSecrets.cpp +328 -0
- package/cpp/HybridSecrets.hpp +84 -0
- package/cpp/HybridSecureString.cpp +175 -0
- package/cpp/HybridSecureString.hpp +55 -0
- package/cpp/HybridServerSentEvent.cpp +112 -0
- package/cpp/HybridServerSentEvent.hpp +41 -0
- package/cpp/HybridSocket.cpp +1567 -0
- package/cpp/HybridSocket.hpp +336 -0
- package/cpp/HybridSpider.cpp +543 -0
- package/cpp/HybridSpider.hpp +138 -0
- package/cpp/HybridSsh.cpp +1330 -0
- package/cpp/HybridSsh.hpp +282 -0
- package/cpp/HybridSshKey.cpp +310 -0
- package/cpp/HybridSshKey.hpp +83 -0
- package/cpp/HybridSshTunnel.cpp +687 -0
- package/cpp/HybridSshTunnel.hpp +159 -0
- package/cpp/HybridStream.cpp +496 -0
- package/cpp/HybridStream.hpp +123 -0
- package/cpp/HybridStringArray.cpp +368 -0
- package/cpp/HybridStringArray.hpp +99 -0
- package/cpp/HybridStringBuilder.cpp +739 -0
- package/cpp/HybridStringBuilder.hpp +178 -0
- package/cpp/HybridStringTable.cpp +218 -0
- package/cpp/HybridStringTable.hpp +66 -0
- package/cpp/HybridTar.cpp +547 -0
- package/cpp/HybridTar.hpp +134 -0
- package/cpp/HybridTrustedRoots.cpp +178 -0
- package/cpp/HybridTrustedRoots.hpp +61 -0
- package/cpp/HybridUnixCompress.cpp +191 -0
- package/cpp/HybridUnixCompress.hpp +60 -0
- package/cpp/HybridUpload.cpp +427 -0
- package/cpp/HybridUpload.hpp +114 -0
- package/cpp/HybridUrl.cpp +152 -0
- package/cpp/HybridUrl.hpp +48 -0
- package/cpp/HybridWebSocket.cpp +378 -0
- package/cpp/HybridWebSocket.hpp +103 -0
- package/cpp/HybridXml.cpp +1527 -0
- package/cpp/HybridXml.hpp +340 -0
- package/cpp/HybridXmlCertVault.cpp +215 -0
- package/cpp/HybridXmlCertVault.hpp +63 -0
- package/cpp/HybridXmlDSig.cpp +328 -0
- package/cpp/HybridXmlDSig.hpp +88 -0
- package/cpp/HybridXmlDSigGen.cpp +549 -0
- package/cpp/HybridXmlDSigGen.hpp +126 -0
- package/cpp/HybridXmp.cpp +329 -0
- package/cpp/HybridXmp.hpp +86 -0
- package/cpp/HybridZip.cpp +1000 -0
- package/cpp/HybridZip.hpp +226 -0
- package/cpp/HybridZipCrc.cpp +162 -0
- package/cpp/HybridZipCrc.hpp +57 -0
- package/cpp/HybridZipEntry.cpp +395 -0
- package/cpp/HybridZipEntry.hpp +102 -0
- package/cpp/runtime/AsyncCall.hpp +96 -0
- package/cpp/runtime/Bytes.hpp +49 -0
- package/cpp/runtime/ChilkatError.hpp +66 -0
- package/cpp/runtime/ChilkatObject.hpp +219 -0
- package/cpp/runtime/ProgLang.hpp +9 -0
- package/cpp/runtime/ProgressAdapter.hpp +43 -0
- package/nitro.json +113 -0
- package/nitrogen/generated/.gitattributes +1 -0
- package/nitrogen/generated/android/ChilkatRN+autolinking.cmake +179 -0
- package/nitrogen/generated/android/ChilkatRN+autolinking.gradle +27 -0
- package/nitrogen/generated/android/ChilkatRNOnLoad.cpp +1029 -0
- package/nitrogen/generated/android/ChilkatRNOnLoad.hpp +34 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/chilkat/ChilkatRNOnLoad.kt +35 -0
- package/nitrogen/generated/ios/ChilkatRN+autolinking.rb +62 -0
- package/nitrogen/generated/ios/ChilkatRN-Swift-Cxx-Bridge.cpp +17 -0
- package/nitrogen/generated/ios/ChilkatRN-Swift-Cxx-Bridge.hpp +27 -0
- package/nitrogen/generated/ios/ChilkatRN-Swift-Cxx-Umbrella.hpp +38 -0
- package/nitrogen/generated/ios/ChilkatRNAutolinking.mm +1015 -0
- package/nitrogen/generated/ios/ChilkatRNAutolinking.swift +16 -0
- package/nitrogen/generated/shared/c++/HybridAiSpec.cpp +114 -0
- package/nitrogen/generated/shared/c++/HybridAiSpec.hpp +175 -0
- package/nitrogen/generated/shared/c++/HybridAsnSpec.cpp +70 -0
- package/nitrogen/generated/shared/c++/HybridAsnSpec.hpp +116 -0
- package/nitrogen/generated/shared/c++/HybridAuthAwsSpec.cpp +49 -0
- package/nitrogen/generated/shared/c++/HybridAuthAwsSpec.hpp +89 -0
- package/nitrogen/generated/shared/c++/HybridAuthAzureSASSpec.cpp +38 -0
- package/nitrogen/generated/shared/c++/HybridAuthAzureSASSpec.hpp +78 -0
- package/nitrogen/generated/shared/c++/HybridAuthAzureStorageSpec.cpp +41 -0
- package/nitrogen/generated/shared/c++/HybridAuthAzureStorageSpec.hpp +81 -0
- package/nitrogen/generated/shared/c++/HybridAuthGoogleSpec.cpp +56 -0
- package/nitrogen/generated/shared/c++/HybridAuthGoogleSpec.hpp +108 -0
- package/nitrogen/generated/shared/c++/HybridBinDataSpec.cpp +69 -0
- package/nitrogen/generated/shared/c++/HybridBinDataSpec.hpp +116 -0
- package/nitrogen/generated/shared/c++/HybridBz2Spec.cpp +47 -0
- package/nitrogen/generated/shared/c++/HybridBz2Spec.hpp +93 -0
- package/nitrogen/generated/shared/c++/HybridCacheSpec.cpp +57 -0
- package/nitrogen/generated/shared/c++/HybridCacheSpec.hpp +106 -0
- package/nitrogen/generated/shared/c++/HybridCertChainSpec.cpp +40 -0
- package/nitrogen/generated/shared/c++/HybridCertChainSpec.hpp +89 -0
- package/nitrogen/generated/shared/c++/HybridCertSpec.cpp +138 -0
- package/nitrogen/generated/shared/c++/HybridCertSpec.hpp +205 -0
- package/nitrogen/generated/shared/c++/HybridCertStoreSpec.cpp +55 -0
- package/nitrogen/generated/shared/c++/HybridCertStoreSpec.hpp +104 -0
- package/nitrogen/generated/shared/c++/HybridCharsetSpec.cpp +61 -0
- package/nitrogen/generated/shared/c++/HybridCharsetSpec.hpp +101 -0
- package/nitrogen/generated/shared/c++/HybridCkDateTimeSpec.cpp +66 -0
- package/nitrogen/generated/shared/c++/HybridCkDateTimeSpec.hpp +115 -0
- package/nitrogen/generated/shared/c++/HybridCodeSignSpec.cpp +44 -0
- package/nitrogen/generated/shared/c++/HybridCodeSignSpec.hpp +93 -0
- package/nitrogen/generated/shared/c++/HybridCompressionSpec.cpp +79 -0
- package/nitrogen/generated/shared/c++/HybridCompressionSpec.hpp +134 -0
- package/nitrogen/generated/shared/c++/HybridCrypt2Spec.cpp +215 -0
- package/nitrogen/generated/shared/c++/HybridCrypt2Spec.hpp +283 -0
- package/nitrogen/generated/shared/c++/HybridCsrSpec.cpp +61 -0
- package/nitrogen/generated/shared/c++/HybridCsrSpec.hpp +116 -0
- package/nitrogen/generated/shared/c++/HybridCsvSpec.cpp +72 -0
- package/nitrogen/generated/shared/c++/HybridCsvSpec.hpp +121 -0
- package/nitrogen/generated/shared/c++/HybridDhSpec.cpp +37 -0
- package/nitrogen/generated/shared/c++/HybridDhSpec.hpp +77 -0
- package/nitrogen/generated/shared/c++/HybridDirTreeSpec.cpp +46 -0
- package/nitrogen/generated/shared/c++/HybridDirTreeSpec.hpp +86 -0
- package/nitrogen/generated/shared/c++/HybridDkimSpec.cpp +60 -0
- package/nitrogen/generated/shared/c++/HybridDkimSpec.hpp +109 -0
- package/nitrogen/generated/shared/c++/HybridDnsSpec.cpp +51 -0
- package/nitrogen/generated/shared/c++/HybridDnsSpec.hpp +97 -0
- package/nitrogen/generated/shared/c++/HybridDsaSpec.cpp +73 -0
- package/nitrogen/generated/shared/c++/HybridDsaSpec.hpp +116 -0
- package/nitrogen/generated/shared/c++/HybridDtObjSpec.cpp +50 -0
- package/nitrogen/generated/shared/c++/HybridDtObjSpec.hpp +90 -0
- package/nitrogen/generated/shared/c++/HybridEccSpec.cpp +41 -0
- package/nitrogen/generated/shared/c++/HybridEccSpec.hpp +96 -0
- package/nitrogen/generated/shared/c++/HybridEdDSASpec.cpp +38 -0
- package/nitrogen/generated/shared/c++/HybridEdDSASpec.hpp +90 -0
- package/nitrogen/generated/shared/c++/HybridEmailBundleSpec.cpp +45 -0
- package/nitrogen/generated/shared/c++/HybridEmailBundleSpec.hpp +91 -0
- package/nitrogen/generated/shared/c++/HybridEmailSpec.cpp +259 -0
- package/nitrogen/generated/shared/c++/HybridEmailSpec.hpp +326 -0
- package/nitrogen/generated/shared/c++/HybridFileAccessSpec.cpp +90 -0
- package/nitrogen/generated/shared/c++/HybridFileAccessSpec.hpp +140 -0
- package/nitrogen/generated/shared/c++/HybridFtp2Spec.cpp +367 -0
- package/nitrogen/generated/shared/c++/HybridFtp2Spec.hpp +434 -0
- package/nitrogen/generated/shared/c++/HybridGlobalSpec.cpp +59 -0
- package/nitrogen/generated/shared/c++/HybridGlobalSpec.hpp +99 -0
- package/nitrogen/generated/shared/c++/HybridGzipSpec.cpp +79 -0
- package/nitrogen/generated/shared/c++/HybridGzipSpec.hpp +134 -0
- package/nitrogen/generated/shared/c++/HybridHashtableSpec.cpp +45 -0
- package/nitrogen/generated/shared/c++/HybridHashtableSpec.hpp +91 -0
- package/nitrogen/generated/shared/c++/HybridHtmlToTextSpec.cpp +40 -0
- package/nitrogen/generated/shared/c++/HybridHtmlToTextSpec.hpp +83 -0
- package/nitrogen/generated/shared/c++/HybridHtmlToXmlSpec.cpp +49 -0
- package/nitrogen/generated/shared/c++/HybridHtmlToXmlSpec.hpp +95 -0
- package/nitrogen/generated/shared/c++/HybridHttpCurlSpec.cpp +67 -0
- package/nitrogen/generated/shared/c++/HybridHttpCurlSpec.hpp +125 -0
- package/nitrogen/generated/shared/c++/HybridHttpRequestSpec.cpp +76 -0
- package/nitrogen/generated/shared/c++/HybridHttpRequestSpec.hpp +122 -0
- package/nitrogen/generated/shared/c++/HybridHttpResponseSpec.cpp +64 -0
- package/nitrogen/generated/shared/c++/HybridHttpResponseSpec.hpp +119 -0
- package/nitrogen/generated/shared/c++/HybridHttpSpec.cpp +334 -0
- package/nitrogen/generated/shared/c++/HybridHttpSpec.hpp +407 -0
- package/nitrogen/generated/shared/c++/HybridImapSpec.cpp +275 -0
- package/nitrogen/generated/shared/c++/HybridImapSpec.hpp +360 -0
- package/nitrogen/generated/shared/c++/HybridJavaKeyStoreSpec.cpp +65 -0
- package/nitrogen/generated/shared/c++/HybridJavaKeyStoreSpec.hpp +132 -0
- package/nitrogen/generated/shared/c++/HybridJsSpec.cpp +43 -0
- package/nitrogen/generated/shared/c++/HybridJsSpec.hpp +92 -0
- package/nitrogen/generated/shared/c++/HybridJsonArraySpec.cpp +76 -0
- package/nitrogen/generated/shared/c++/HybridJsonArraySpec.hpp +131 -0
- package/nitrogen/generated/shared/c++/HybridJsonObjectSpec.cpp +154 -0
- package/nitrogen/generated/shared/c++/HybridJsonObjectSpec.hpp +218 -0
- package/nitrogen/generated/shared/c++/HybridJweSpec.cpp +57 -0
- package/nitrogen/generated/shared/c++/HybridJweSpec.hpp +112 -0
- package/nitrogen/generated/shared/c++/HybridJwsSpec.cpp +57 -0
- package/nitrogen/generated/shared/c++/HybridJwsSpec.hpp +115 -0
- package/nitrogen/generated/shared/c++/HybridJwtSpec.cpp +43 -0
- package/nitrogen/generated/shared/c++/HybridJwtSpec.hpp +92 -0
- package/nitrogen/generated/shared/c++/HybridLogSpec.cpp +44 -0
- package/nitrogen/generated/shared/c++/HybridLogSpec.hpp +85 -0
- package/nitrogen/generated/shared/c++/HybridMailManSpec.cpp +311 -0
- package/nitrogen/generated/shared/c++/HybridMailManSpec.hpp +396 -0
- package/nitrogen/generated/shared/c++/HybridMailboxesSpec.cpp +40 -0
- package/nitrogen/generated/shared/c++/HybridMailboxesSpec.hpp +80 -0
- package/nitrogen/generated/shared/c++/HybridMcpSpec.cpp +68 -0
- package/nitrogen/generated/shared/c++/HybridMcpSpec.hpp +117 -0
- package/nitrogen/generated/shared/c++/HybridMessageSetSpec.cpp +41 -0
- package/nitrogen/generated/shared/c++/HybridMessageSetSpec.hpp +84 -0
- package/nitrogen/generated/shared/c++/HybridMhtSpec.cpp +138 -0
- package/nitrogen/generated/shared/c++/HybridMhtSpec.hpp +181 -0
- package/nitrogen/generated/shared/c++/HybridMimeSpec.cpp +169 -0
- package/nitrogen/generated/shared/c++/HybridMimeSpec.hpp +233 -0
- package/nitrogen/generated/shared/c++/HybridNtlmSpec.cpp +69 -0
- package/nitrogen/generated/shared/c++/HybridNtlmSpec.hpp +109 -0
- package/nitrogen/generated/shared/c++/HybridOAuth1Spec.cpp +67 -0
- package/nitrogen/generated/shared/c++/HybridOAuth1Spec.hpp +110 -0
- package/nitrogen/generated/shared/c++/HybridOAuth2Spec.cpp +107 -0
- package/nitrogen/generated/shared/c++/HybridOAuth2Spec.hpp +156 -0
- package/nitrogen/generated/shared/c++/HybridPdfSpec.cpp +73 -0
- package/nitrogen/generated/shared/c++/HybridPdfSpec.hpp +134 -0
- package/nitrogen/generated/shared/c++/HybridPemSpec.cpp +63 -0
- package/nitrogen/generated/shared/c++/HybridPemSpec.hpp +124 -0
- package/nitrogen/generated/shared/c++/HybridPfxSpec.cpp +61 -0
- package/nitrogen/generated/shared/c++/HybridPfxSpec.hpp +122 -0
- package/nitrogen/generated/shared/c++/HybridPkcs11Spec.cpp +60 -0
- package/nitrogen/generated/shared/c++/HybridPkcs11Spec.hpp +115 -0
- package/nitrogen/generated/shared/c++/HybridPrivateKeySpec.cpp +76 -0
- package/nitrogen/generated/shared/c++/HybridPrivateKeySpec.hpp +131 -0
- package/nitrogen/generated/shared/c++/HybridPrngSpec.cpp +42 -0
- package/nitrogen/generated/shared/c++/HybridPrngSpec.hpp +85 -0
- package/nitrogen/generated/shared/c++/HybridPublicKeySpec.cpp +48 -0
- package/nitrogen/generated/shared/c++/HybridPublicKeySpec.hpp +91 -0
- package/nitrogen/generated/shared/c++/HybridRestSpec.cpp +150 -0
- package/nitrogen/generated/shared/c++/HybridRestSpec.hpp +229 -0
- package/nitrogen/generated/shared/c++/HybridRsaSpec.cpp +68 -0
- package/nitrogen/generated/shared/c++/HybridRsaSpec.hpp +120 -0
- package/nitrogen/generated/shared/c++/HybridSCardSpec.cpp +64 -0
- package/nitrogen/generated/shared/c++/HybridSCardSpec.hpp +116 -0
- package/nitrogen/generated/shared/c++/HybridSFtpDirSpec.cpp +35 -0
- package/nitrogen/generated/shared/c++/HybridSFtpDirSpec.hpp +78 -0
- package/nitrogen/generated/shared/c++/HybridSFtpFileSpec.cpp +57 -0
- package/nitrogen/generated/shared/c++/HybridSFtpFileSpec.hpp +98 -0
- package/nitrogen/generated/shared/c++/HybridSFtpSpec.cpp +284 -0
- package/nitrogen/generated/shared/c++/HybridSFtpSpec.hpp +354 -0
- package/nitrogen/generated/shared/c++/HybridScMinidriverSpec.cpp +61 -0
- package/nitrogen/generated/shared/c++/HybridScMinidriverSpec.hpp +119 -0
- package/nitrogen/generated/shared/c++/HybridScpSpec.cpp +78 -0
- package/nitrogen/generated/shared/c++/HybridScpSpec.hpp +127 -0
- package/nitrogen/generated/shared/c++/HybridSecretsSpec.cpp +65 -0
- package/nitrogen/generated/shared/c++/HybridSecretsSpec.hpp +120 -0
- package/nitrogen/generated/shared/c++/HybridSecureStringSpec.cpp +42 -0
- package/nitrogen/generated/shared/c++/HybridSecureStringSpec.hpp +88 -0
- package/nitrogen/generated/shared/c++/HybridServerSentEventSpec.cpp +35 -0
- package/nitrogen/generated/shared/c++/HybridServerSentEventSpec.hpp +75 -0
- package/nitrogen/generated/shared/c++/HybridSocketSpec.cpp +262 -0
- package/nitrogen/generated/shared/c++/HybridSocketSpec.hpp +327 -0
- package/nitrogen/generated/shared/c++/HybridSpiderSpec.cpp +110 -0
- package/nitrogen/generated/shared/c++/HybridSpiderSpec.hpp +153 -0
- package/nitrogen/generated/shared/c++/HybridSshKeySpec.cpp +59 -0
- package/nitrogen/generated/shared/c++/HybridSshKeySpec.hpp +102 -0
- package/nitrogen/generated/shared/c++/HybridSshSpec.cpp +215 -0
- package/nitrogen/generated/shared/c++/HybridSshSpec.hpp +276 -0
- package/nitrogen/generated/shared/c++/HybridSshTunnelSpec.cpp +136 -0
- package/nitrogen/generated/shared/c++/HybridSshTunnelSpec.hpp +191 -0
- package/nitrogen/generated/shared/c++/HybridStreamSpec.cpp +100 -0
- package/nitrogen/generated/shared/c++/HybridStreamSpec.hpp +150 -0
- package/nitrogen/generated/shared/c++/HybridStringArraySpec.cpp +66 -0
- package/nitrogen/generated/shared/c++/HybridStringArraySpec.hpp +109 -0
- package/nitrogen/generated/shared/c++/HybridStringBuilderSpec.cpp +104 -0
- package/nitrogen/generated/shared/c++/HybridStringBuilderSpec.hpp +156 -0
- package/nitrogen/generated/shared/c++/HybridStringTableSpec.cpp +46 -0
- package/nitrogen/generated/shared/c++/HybridStringTableSpec.hpp +89 -0
- package/nitrogen/generated/shared/c++/HybridTarSpec.cpp +110 -0
- package/nitrogen/generated/shared/c++/HybridTarSpec.hpp +156 -0
- package/nitrogen/generated/shared/c++/HybridTrustedRootsSpec.cpp +48 -0
- package/nitrogen/generated/shared/c++/HybridTrustedRootsSpec.hpp +97 -0
- package/nitrogen/generated/shared/c++/HybridUnixCompressSpec.cpp +48 -0
- package/nitrogen/generated/shared/c++/HybridUnixCompressSpec.hpp +91 -0
- package/nitrogen/generated/shared/c++/HybridUploadSpec.cpp +98 -0
- package/nitrogen/generated/shared/c++/HybridUploadSpec.hpp +141 -0
- package/nitrogen/generated/shared/c++/HybridUrlSpec.cpp +42 -0
- package/nitrogen/generated/shared/c++/HybridUrlSpec.hpp +82 -0
- package/nitrogen/generated/shared/c++/HybridWebSocketSpec.cpp +80 -0
- package/nitrogen/generated/shared/c++/HybridWebSocketSpec.hpp +135 -0
- package/nitrogen/generated/shared/c++/HybridXmlCertVaultSpec.cpp +45 -0
- package/nitrogen/generated/shared/c++/HybridXmlCertVaultSpec.hpp +94 -0
- package/nitrogen/generated/shared/c++/HybridXmlDSigGenSpec.cpp +99 -0
- package/nitrogen/generated/shared/c++/HybridXmlDSigGenSpec.hpp +163 -0
- package/nitrogen/generated/shared/c++/HybridXmlDSigSpec.cpp +62 -0
- package/nitrogen/generated/shared/c++/HybridXmlDSigSpec.hpp +126 -0
- package/nitrogen/generated/shared/c++/HybridXmlSpec.cpp +203 -0
- package/nitrogen/generated/shared/c++/HybridXmlSpec.hpp +253 -0
- package/nitrogen/generated/shared/c++/HybridXmpSpec.cpp +58 -0
- package/nitrogen/generated/shared/c++/HybridXmpSpec.hpp +104 -0
- package/nitrogen/generated/shared/c++/HybridZipCrcSpec.cpp +43 -0
- package/nitrogen/generated/shared/c++/HybridZipCrcSpec.hpp +92 -0
- package/nitrogen/generated/shared/c++/HybridZipEntrySpec.cpp +82 -0
- package/nitrogen/generated/shared/c++/HybridZipEntrySpec.hpp +137 -0
- package/nitrogen/generated/shared/c++/HybridZipSpec.cpp +176 -0
- package/nitrogen/generated/shared/c++/HybridZipSpec.hpp +231 -0
- package/package.json +46 -0
- package/react-native.config.js +9 -0
- package/scripts/fetch-chilkat.js +184 -0
- package/src/index.ts +306 -0
- package/src/runtime/chilkat.ts +25 -0
- package/src/specs/Ai.nitro.ts +1288 -0
- package/src/specs/Asn.nitro.ts +509 -0
- package/src/specs/AuthAws.nitro.ts +234 -0
- package/src/specs/AuthAzureSAS.nitro.ts +205 -0
- package/src/specs/AuthAzureStorage.nitro.ts +172 -0
- package/src/specs/AuthGoogle.nitro.ts +291 -0
- package/src/specs/BinData.nitro.ts +470 -0
- package/src/specs/Bz2.nitro.ts +269 -0
- package/src/specs/Cache.nitro.ts +483 -0
- package/src/specs/Cert.nitro.ts +1279 -0
- package/src/specs/CertChain.nitro.ts +312 -0
- package/src/specs/CertStore.nitro.ts +430 -0
- package/src/specs/Charset.nitro.ts +518 -0
- package/src/specs/CkDateTime.nitro.ts +492 -0
- package/src/specs/CodeSign.nitro.ts +307 -0
- package/src/specs/Compression.nitro.ts +654 -0
- package/src/specs/Crypt2.nitro.ts +2387 -0
- package/src/specs/Csr.nitro.ts +461 -0
- package/src/specs/Csv.nitro.ts +670 -0
- package/src/specs/Dh.nitro.ts +343 -0
- package/src/specs/DirTree.nitro.ts +332 -0
- package/src/specs/Dkim.nitro.ts +595 -0
- package/src/specs/Dns.nitro.ts +271 -0
- package/src/specs/Dsa.nitro.ts +653 -0
- package/src/specs/DtObj.nitro.ts +198 -0
- package/src/specs/Ecc.nitro.ts +375 -0
- package/src/specs/EdDSA.nitro.ts +273 -0
- package/src/specs/Email.nitro.ts +2921 -0
- package/src/specs/EmailBundle.nitro.ts +334 -0
- package/src/specs/FileAccess.nitro.ts +836 -0
- package/src/specs/Ftp2.nitro.ts +3943 -0
- package/src/specs/Global.nitro.ts +319 -0
- package/src/specs/Gzip.nitro.ts +646 -0
- package/src/specs/Hashtable.nitro.ts +356 -0
- package/src/specs/HtmlToText.nitro.ts +238 -0
- package/src/specs/HtmlToXml.nitro.ts +323 -0
- package/src/specs/Http.nitro.ts +3095 -0
- package/src/specs/HttpCurl.nitro.ts +550 -0
- package/src/specs/HttpRequest.nitro.ts +522 -0
- package/src/specs/HttpResponse.nitro.ts +424 -0
- package/src/specs/Imap.nitro.ts +2991 -0
- package/src/specs/JavaKeyStore.nitro.ts +619 -0
- package/src/specs/Js.nitro.ts +263 -0
- package/src/specs/JsonArray.nitro.ts +681 -0
- package/src/specs/JsonObject.nitro.ts +1454 -0
- package/src/specs/Jwe.nitro.ts +756 -0
- package/src/specs/Jws.nitro.ts +733 -0
- package/src/specs/Jwt.nitro.ts +380 -0
- package/src/specs/Log.nitro.ts +258 -0
- package/src/specs/MailMan.nitro.ts +3571 -0
- package/src/specs/Mailboxes.nitro.ts +251 -0
- package/src/specs/Mcp.nitro.ts +491 -0
- package/src/specs/MessageSet.nitro.ts +320 -0
- package/src/specs/Mht.nitro.ts +1684 -0
- package/src/specs/Mime.nitro.ts +1745 -0
- package/src/specs/Ntlm.nitro.ts +556 -0
- package/src/specs/OAuth1.nitro.ts +331 -0
- package/src/specs/OAuth2.nitro.ts +1023 -0
- package/src/specs/Pdf.nitro.ts +740 -0
- package/src/specs/Pem.nitro.ts +484 -0
- package/src/specs/Pfx.nitro.ts +1003 -0
- package/src/specs/Pkcs11.nitro.ts +559 -0
- package/src/specs/PrivateKey.nitro.ts +994 -0
- package/src/specs/Prng.nitro.ts +348 -0
- package/src/specs/PublicKey.nitro.ts +610 -0
- package/src/specs/Rest.nitro.ts +1972 -0
- package/src/specs/Rsa.nitro.ts +453 -0
- package/src/specs/SCard.nitro.ts +739 -0
- package/src/specs/SFtp.nitro.ts +3138 -0
- package/src/specs/SFtpDir.nitro.ts +213 -0
- package/src/specs/SFtpFile.nitro.ts +452 -0
- package/src/specs/ScMinidriver.nitro.ts +443 -0
- package/src/specs/Scp.nitro.ts +708 -0
- package/src/specs/Secrets.nitro.ts +470 -0
- package/src/specs/SecureString.nitro.ts +231 -0
- package/src/specs/ServerSentEvent.nitro.ts +183 -0
- package/src/specs/Socket.nitro.ts +3335 -0
- package/src/specs/Spider.nitro.ts +609 -0
- package/src/specs/Ssh.nitro.ts +2842 -0
- package/src/specs/SshKey.nitro.ts +740 -0
- package/src/specs/SshTunnel.nitro.ts +1243 -0
- package/src/specs/Stream.nitro.ts +737 -0
- package/src/specs/StringArray.nitro.ts +396 -0
- package/src/specs/StringBuilder.nitro.ts +920 -0
- package/src/specs/StringTable.nitro.ts +271 -0
- package/src/specs/Tar.nitro.ts +804 -0
- package/src/specs/TrustedRoots.nitro.ts +360 -0
- package/src/specs/UnixCompress.nitro.ts +293 -0
- package/src/specs/Upload.nitro.ts +623 -0
- package/src/specs/Url.nitro.ts +246 -0
- package/src/specs/WebSocket.nitro.ts +840 -0
- package/src/specs/Xml.nitro.ts +1988 -0
- package/src/specs/XmlCertVault.nitro.ts +259 -0
- package/src/specs/XmlDSig.nitro.ts +464 -0
- package/src/specs/XmlDSigGen.nitro.ts +978 -0
- package/src/specs/Xmp.nitro.ts +364 -0
- package/src/specs/Zip.nitro.ts +1611 -0
- package/src/specs/ZipCrc.nitro.ts +229 -0
- package/src/specs/ZipEntry.nitro.ts +782 -0
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
// Generated by ReactNativeNs.RnGenerator -- do not edit.
|
|
2
|
+
// EmailBundle: the Nitro HybridObject over Chilkat's CkEmailBundle (ReactNativeGen_DESIGN.md).
|
|
3
|
+
#pragma once
|
|
4
|
+
|
|
5
|
+
#include "HybridEmailBundleSpec.hpp"
|
|
6
|
+
#include "runtime/ChilkatObject.hpp"
|
|
7
|
+
#include <CkEmailBundle.h>
|
|
8
|
+
|
|
9
|
+
namespace margelo::nitro::chilkat {
|
|
10
|
+
|
|
11
|
+
class HybridEmailBundle final : public HybridEmailBundleSpec, public ChilkatObject<CkEmailBundle> {
|
|
12
|
+
public:
|
|
13
|
+
HybridEmailBundle(); // `new EmailBundle()` from JS
|
|
14
|
+
explicit HybridEmailBundle(CkEmailBundle* owned); // wraps an object a Chilkat method returned
|
|
15
|
+
void dispose() override;
|
|
16
|
+
|
|
17
|
+
// ---- Properties ----
|
|
18
|
+
std::string getLastErrorHtml() override;
|
|
19
|
+
std::string getLastErrorText() override;
|
|
20
|
+
std::string getLastErrorXml() override;
|
|
21
|
+
std::string getVersion() override;
|
|
22
|
+
std::string getDebugLogFilePath() override;
|
|
23
|
+
void setDebugLogFilePath(const std::string& value) override;
|
|
24
|
+
bool getVerboseLogging() override;
|
|
25
|
+
void setVerboseLogging(bool value) override;
|
|
26
|
+
bool getLastMethodSuccess() override;
|
|
27
|
+
void setLastMethodSuccess(bool value) override;
|
|
28
|
+
double getMessageCount() override;
|
|
29
|
+
|
|
30
|
+
// ---- Methods ----
|
|
31
|
+
void addEmail(const std::shared_ptr<HybridEmailSpec>& email) override;
|
|
32
|
+
std::string getXml() override;
|
|
33
|
+
void loadXml(const std::string& path) override;
|
|
34
|
+
void loadXmlString(const std::string& xmlStr) override;
|
|
35
|
+
void removeEmail(const std::shared_ptr<HybridEmailSpec>& email) override;
|
|
36
|
+
void removeEmailByIndex(double index) override;
|
|
37
|
+
void saveXml(const std::string& path) override;
|
|
38
|
+
void sortByDate(bool ascending) override;
|
|
39
|
+
void sortByRecipient(bool ascending) override;
|
|
40
|
+
void sortBySender(bool ascending) override;
|
|
41
|
+
void sortBySubject(bool ascending) override;
|
|
42
|
+
void findEmail(const std::shared_ptr<HybridJsonObjectSpec>& json, const std::shared_ptr<HybridEmailSpec>& email) override;
|
|
43
|
+
void emailAt(double index, const std::shared_ptr<HybridEmailSpec>& email) override;
|
|
44
|
+
void clear() override;
|
|
45
|
+
|
|
46
|
+
private:
|
|
47
|
+
void init();
|
|
48
|
+
void addEmail_impl(const std::shared_ptr<HybridEmailSpec>& email);
|
|
49
|
+
std::string getXml_impl();
|
|
50
|
+
void loadXml_impl(const std::string& path);
|
|
51
|
+
void loadXmlString_impl(const std::string& xmlStr);
|
|
52
|
+
void removeEmail_impl(const std::shared_ptr<HybridEmailSpec>& email);
|
|
53
|
+
void removeEmailByIndex_impl(double index);
|
|
54
|
+
void saveXml_impl(const std::string& path);
|
|
55
|
+
void sortByDate_impl(bool ascending);
|
|
56
|
+
void sortByRecipient_impl(bool ascending);
|
|
57
|
+
void sortBySender_impl(bool ascending);
|
|
58
|
+
void sortBySubject_impl(bool ascending);
|
|
59
|
+
void findEmail_impl(const std::shared_ptr<HybridJsonObjectSpec>& json, const std::shared_ptr<HybridEmailSpec>& email);
|
|
60
|
+
void emailAt_impl(double index, const std::shared_ptr<HybridEmailSpec>& email);
|
|
61
|
+
void clear_impl();
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
} // namespace margelo::nitro::chilkat
|
|
@@ -0,0 +1,631 @@
|
|
|
1
|
+
// Generated by ReactNativeNs.RnGenerator -- do not edit.
|
|
2
|
+
#include "HybridFileAccess.hpp"
|
|
3
|
+
#include "HybridBinData.hpp"
|
|
4
|
+
#include "HybridCkDateTime.hpp"
|
|
5
|
+
#include "HybridStringBuilder.hpp"
|
|
6
|
+
#include "runtime/AsyncCall.hpp"
|
|
7
|
+
#include "runtime/Bytes.hpp"
|
|
8
|
+
#include "runtime/ProgLang.hpp"
|
|
9
|
+
|
|
10
|
+
namespace margelo::nitro::chilkat {
|
|
11
|
+
|
|
12
|
+
HybridFileAccess::HybridFileAccess()
|
|
13
|
+
: HybridObject(HybridFileAccessSpec::TAG), ChilkatObject<CkFileAccess>("FileAccess", CkFileAccess::createNew2(PROGLANG_REACT_NATIVE)) {
|
|
14
|
+
init();
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
HybridFileAccess::HybridFileAccess(CkFileAccess* owned)
|
|
18
|
+
: HybridObject(HybridFileAccessSpec::TAG), ChilkatObject<CkFileAccess>("FileAccess", owned) {
|
|
19
|
+
init();
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
void HybridFileAccess::init() {
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
void HybridFileAccess::dispose() {
|
|
26
|
+
this->disposeChilkat();
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
// ---- Properties ----
|
|
30
|
+
std::string HybridFileAccess::getLastErrorHtml() {
|
|
31
|
+
this->beginCall();
|
|
32
|
+
CkString _s;
|
|
33
|
+
this->ck().get_LastErrorHtml(_s);
|
|
34
|
+
return rt::stdString(_s);
|
|
35
|
+
}
|
|
36
|
+
std::string HybridFileAccess::getLastErrorText() {
|
|
37
|
+
this->beginCall();
|
|
38
|
+
CkString _s;
|
|
39
|
+
this->ck().get_LastErrorText(_s);
|
|
40
|
+
return rt::stdString(_s);
|
|
41
|
+
}
|
|
42
|
+
std::string HybridFileAccess::getLastErrorXml() {
|
|
43
|
+
this->beginCall();
|
|
44
|
+
CkString _s;
|
|
45
|
+
this->ck().get_LastErrorXml(_s);
|
|
46
|
+
return rt::stdString(_s);
|
|
47
|
+
}
|
|
48
|
+
std::string HybridFileAccess::getVersion() {
|
|
49
|
+
this->beginCall();
|
|
50
|
+
CkString _s;
|
|
51
|
+
this->ck().get_Version(_s);
|
|
52
|
+
return rt::stdString(_s);
|
|
53
|
+
}
|
|
54
|
+
std::string HybridFileAccess::getDebugLogFilePath() {
|
|
55
|
+
this->beginCall();
|
|
56
|
+
CkString _s;
|
|
57
|
+
this->ck().get_DebugLogFilePath(_s);
|
|
58
|
+
return rt::stdString(_s);
|
|
59
|
+
}
|
|
60
|
+
void HybridFileAccess::setDebugLogFilePath(const std::string& value) {
|
|
61
|
+
this->beginCall();
|
|
62
|
+
rt::checkNoNul(value, "debugLogFilePath");
|
|
63
|
+
this->ck().put_DebugLogFilePath(value.c_str());
|
|
64
|
+
}
|
|
65
|
+
bool HybridFileAccess::getVerboseLogging() {
|
|
66
|
+
this->beginCall();
|
|
67
|
+
return this->ck().get_VerboseLogging();
|
|
68
|
+
}
|
|
69
|
+
void HybridFileAccess::setVerboseLogging(bool value) {
|
|
70
|
+
this->beginCall();
|
|
71
|
+
this->ck().put_VerboseLogging(value);
|
|
72
|
+
}
|
|
73
|
+
bool HybridFileAccess::getLastMethodSuccess() {
|
|
74
|
+
this->beginCall();
|
|
75
|
+
return this->ck().get_LastMethodSuccess();
|
|
76
|
+
}
|
|
77
|
+
void HybridFileAccess::setLastMethodSuccess(bool value) {
|
|
78
|
+
this->beginCall();
|
|
79
|
+
this->ck().put_LastMethodSuccess(value);
|
|
80
|
+
}
|
|
81
|
+
std::string HybridFileAccess::getCurrentDir() {
|
|
82
|
+
this->beginCall();
|
|
83
|
+
CkString _s;
|
|
84
|
+
this->ck().get_CurrentDir(_s);
|
|
85
|
+
return rt::stdString(_s);
|
|
86
|
+
}
|
|
87
|
+
bool HybridFileAccess::getEndOfFile() {
|
|
88
|
+
this->beginCall();
|
|
89
|
+
return this->ck().get_EndOfFile();
|
|
90
|
+
}
|
|
91
|
+
double HybridFileAccess::getFileOpenError() {
|
|
92
|
+
this->beginCall();
|
|
93
|
+
return static_cast<double>(this->ck().get_FileOpenError());
|
|
94
|
+
}
|
|
95
|
+
std::string HybridFileAccess::getFileOpenErrorMsg() {
|
|
96
|
+
this->beginCall();
|
|
97
|
+
CkString _s;
|
|
98
|
+
this->ck().get_FileOpenErrorMsg(_s);
|
|
99
|
+
return rt::stdString(_s);
|
|
100
|
+
}
|
|
101
|
+
bool HybridFileAccess::getLockFileOnOpen() {
|
|
102
|
+
this->beginCall();
|
|
103
|
+
return this->ck().get_LockFileOnOpen();
|
|
104
|
+
}
|
|
105
|
+
void HybridFileAccess::setLockFileOnOpen(bool value) {
|
|
106
|
+
this->beginCall();
|
|
107
|
+
this->ck().put_LockFileOnOpen(value);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
// ---- Methods ----
|
|
111
|
+
|
|
112
|
+
void HybridFileAccess::appendAnsi(const std::string& text) {
|
|
113
|
+
this->beginCall();
|
|
114
|
+
appendAnsi_impl(text);
|
|
115
|
+
}
|
|
116
|
+
void HybridFileAccess::appendAnsi_impl(const std::string& text) {
|
|
117
|
+
rt::checkNoNul(text, "text");
|
|
118
|
+
if (!this->ck().AppendAnsi(text.c_str())) throw this->fail("appendAnsi");
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
void HybridFileAccess::appendText(const std::string& str, const std::string& charset) {
|
|
122
|
+
this->beginCall();
|
|
123
|
+
appendText_impl(str, charset);
|
|
124
|
+
}
|
|
125
|
+
void HybridFileAccess::appendText_impl(const std::string& str, const std::string& charset) {
|
|
126
|
+
rt::checkNoNul(str, "str");
|
|
127
|
+
rt::checkNoNul(charset, "charset");
|
|
128
|
+
if (!this->ck().AppendText(str.c_str(), charset.c_str())) throw this->fail("appendText");
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
void HybridFileAccess::appendUnicodeBOM() {
|
|
132
|
+
this->beginCall();
|
|
133
|
+
appendUnicodeBOM_impl();
|
|
134
|
+
}
|
|
135
|
+
void HybridFileAccess::appendUnicodeBOM_impl() {
|
|
136
|
+
if (!this->ck().AppendUnicodeBOM()) throw this->fail("appendUnicodeBOM");
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
void HybridFileAccess::appendUtf8BOM() {
|
|
140
|
+
this->beginCall();
|
|
141
|
+
appendUtf8BOM_impl();
|
|
142
|
+
}
|
|
143
|
+
void HybridFileAccess::appendUtf8BOM_impl() {
|
|
144
|
+
if (!this->ck().AppendUtf8BOM()) throw this->fail("appendUtf8BOM");
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
void HybridFileAccess::dirAutoCreate(const std::string& filePath) {
|
|
148
|
+
this->beginCall();
|
|
149
|
+
dirAutoCreate_impl(filePath);
|
|
150
|
+
}
|
|
151
|
+
void HybridFileAccess::dirAutoCreate_impl(const std::string& filePath) {
|
|
152
|
+
rt::checkNoNul(filePath, "filePath");
|
|
153
|
+
if (!this->ck().DirAutoCreate(filePath.c_str())) throw this->fail("dirAutoCreate");
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
void HybridFileAccess::dirCreate(const std::string& dirPath) {
|
|
157
|
+
this->beginCall();
|
|
158
|
+
dirCreate_impl(dirPath);
|
|
159
|
+
}
|
|
160
|
+
void HybridFileAccess::dirCreate_impl(const std::string& dirPath) {
|
|
161
|
+
rt::checkNoNul(dirPath, "dirPath");
|
|
162
|
+
if (!this->ck().DirCreate(dirPath.c_str())) throw this->fail("dirCreate");
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
void HybridFileAccess::dirDelete(const std::string& dirPath) {
|
|
166
|
+
this->beginCall();
|
|
167
|
+
dirDelete_impl(dirPath);
|
|
168
|
+
}
|
|
169
|
+
void HybridFileAccess::dirDelete_impl(const std::string& dirPath) {
|
|
170
|
+
rt::checkNoNul(dirPath, "dirPath");
|
|
171
|
+
if (!this->ck().DirDelete(dirPath.c_str())) throw this->fail("dirDelete");
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
void HybridFileAccess::dirEnsureExists(const std::string& dirPath) {
|
|
175
|
+
this->beginCall();
|
|
176
|
+
dirEnsureExists_impl(dirPath);
|
|
177
|
+
}
|
|
178
|
+
void HybridFileAccess::dirEnsureExists_impl(const std::string& dirPath) {
|
|
179
|
+
rt::checkNoNul(dirPath, "dirPath");
|
|
180
|
+
if (!this->ck().DirEnsureExists(dirPath.c_str())) throw this->fail("dirEnsureExists");
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
void HybridFileAccess::fileClose() {
|
|
184
|
+
this->beginCall();
|
|
185
|
+
fileClose_impl();
|
|
186
|
+
}
|
|
187
|
+
void HybridFileAccess::fileClose_impl() {
|
|
188
|
+
this->ck().FileClose();
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
bool HybridFileAccess::fileContentsEqual(const std::string& filePath1, const std::string& filePath2) {
|
|
192
|
+
this->beginCall();
|
|
193
|
+
return fileContentsEqual_impl(filePath1, filePath2);
|
|
194
|
+
}
|
|
195
|
+
bool HybridFileAccess::fileContentsEqual_impl(const std::string& filePath1, const std::string& filePath2) {
|
|
196
|
+
rt::checkNoNul(filePath1, "filePath1");
|
|
197
|
+
rt::checkNoNul(filePath2, "filePath2");
|
|
198
|
+
return this->ck().FileContentsEqual(filePath1.c_str(), filePath2.c_str());
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
void HybridFileAccess::fileCopy(const std::string& existingFilepath, const std::string& newFilepath, bool failIfExists) {
|
|
202
|
+
this->beginCall();
|
|
203
|
+
fileCopy_impl(existingFilepath, newFilepath, failIfExists);
|
|
204
|
+
}
|
|
205
|
+
void HybridFileAccess::fileCopy_impl(const std::string& existingFilepath, const std::string& newFilepath, bool failIfExists) {
|
|
206
|
+
rt::checkNoNul(existingFilepath, "existingFilepath");
|
|
207
|
+
rt::checkNoNul(newFilepath, "newFilepath");
|
|
208
|
+
if (!this->ck().FileCopy(existingFilepath.c_str(), newFilepath.c_str(), failIfExists)) throw this->fail("fileCopy");
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
void HybridFileAccess::fileDelete(const std::string& filePath) {
|
|
212
|
+
this->beginCall();
|
|
213
|
+
fileDelete_impl(filePath);
|
|
214
|
+
}
|
|
215
|
+
void HybridFileAccess::fileDelete_impl(const std::string& filePath) {
|
|
216
|
+
rt::checkNoNul(filePath, "filePath");
|
|
217
|
+
if (!this->ck().FileDelete(filePath.c_str())) throw this->fail("fileDelete");
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
bool HybridFileAccess::fileExists(const std::string& filePath) {
|
|
221
|
+
this->beginCall();
|
|
222
|
+
return fileExists_impl(filePath);
|
|
223
|
+
}
|
|
224
|
+
bool HybridFileAccess::fileExists_impl(const std::string& filePath) {
|
|
225
|
+
rt::checkNoNul(filePath, "filePath");
|
|
226
|
+
return this->ck().FileExists(filePath.c_str());
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
double HybridFileAccess::fileExists3(const std::string& path) {
|
|
230
|
+
this->beginCall();
|
|
231
|
+
return fileExists3_impl(path);
|
|
232
|
+
}
|
|
233
|
+
double HybridFileAccess::fileExists3_impl(const std::string& path) {
|
|
234
|
+
rt::checkNoNul(path, "path");
|
|
235
|
+
return static_cast<double>(this->ck().FileExists3(path.c_str()));
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
void HybridFileAccess::fileOpen(const std::string& filePath, double accessMode, double shareMode, double createDisposition, double attributes) {
|
|
239
|
+
this->beginCall();
|
|
240
|
+
fileOpen_impl(filePath, accessMode, shareMode, createDisposition, attributes);
|
|
241
|
+
}
|
|
242
|
+
void HybridFileAccess::fileOpen_impl(const std::string& filePath, double accessMode, double shareMode, double createDisposition, double attributes) {
|
|
243
|
+
rt::checkNoNul(filePath, "filePath");
|
|
244
|
+
if (!this->ck().FileOpen(filePath.c_str(), rt::toULong(accessMode, "accessMode"), rt::toULong(shareMode, "shareMode"), rt::toULong(createDisposition, "createDisposition"), rt::toULong(attributes, "attributes"))) throw this->fail("fileOpen");
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
void HybridFileAccess::fileRename(const std::string& existingFilepath, const std::string& newFilepath) {
|
|
248
|
+
this->beginCall();
|
|
249
|
+
fileRename_impl(existingFilepath, newFilepath);
|
|
250
|
+
}
|
|
251
|
+
void HybridFileAccess::fileRename_impl(const std::string& existingFilepath, const std::string& newFilepath) {
|
|
252
|
+
rt::checkNoNul(existingFilepath, "existingFilepath");
|
|
253
|
+
rt::checkNoNul(newFilepath, "newFilepath");
|
|
254
|
+
if (!this->ck().FileRename(existingFilepath.c_str(), newFilepath.c_str())) throw this->fail("fileRename");
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
void HybridFileAccess::fileSeek(double offset, double origin) {
|
|
258
|
+
this->beginCall();
|
|
259
|
+
fileSeek_impl(offset, origin);
|
|
260
|
+
}
|
|
261
|
+
void HybridFileAccess::fileSeek_impl(double offset, double origin) {
|
|
262
|
+
if (!this->ck().FileSeek(rt::toInt(offset, "offset"), rt::toInt(origin, "origin"))) throw this->fail("fileSeek");
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
double HybridFileAccess::fileSize(const std::string& filePath) {
|
|
266
|
+
this->beginCall();
|
|
267
|
+
return fileSize_impl(filePath);
|
|
268
|
+
}
|
|
269
|
+
double HybridFileAccess::fileSize_impl(const std::string& filePath) {
|
|
270
|
+
rt::checkNoNul(filePath, "filePath");
|
|
271
|
+
return static_cast<double>(this->ck().FileSize(filePath.c_str()));
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
std::string HybridFileAccess::genBlockId(double index, double length, const std::string& encoding) {
|
|
275
|
+
this->beginCall();
|
|
276
|
+
return genBlockId_impl(index, length, encoding);
|
|
277
|
+
}
|
|
278
|
+
std::string HybridFileAccess::genBlockId_impl(double index, double length, const std::string& encoding) {
|
|
279
|
+
rt::checkNoNul(encoding, "encoding");
|
|
280
|
+
CkString _out;
|
|
281
|
+
if (!this->ck().GenBlockId(rt::toInt(index, "index"), rt::toInt(length, "length"), encoding.c_str(), _out)) throw this->fail("genBlockId");
|
|
282
|
+
return rt::stdString(_out);
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
double HybridFileAccess::getNumBlocks(double blockSize) {
|
|
286
|
+
this->beginCall();
|
|
287
|
+
return getNumBlocks_impl(blockSize);
|
|
288
|
+
}
|
|
289
|
+
double HybridFileAccess::getNumBlocks_impl(double blockSize) {
|
|
290
|
+
return static_cast<double>(this->ck().GetNumBlocks(rt::toInt(blockSize, "blockSize")));
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
std::string HybridFileAccess::getTempFilename(const std::string& dirPath, const std::string& prefix) {
|
|
294
|
+
this->beginCall();
|
|
295
|
+
return getTempFilename_impl(dirPath, prefix);
|
|
296
|
+
}
|
|
297
|
+
std::string HybridFileAccess::getTempFilename_impl(const std::string& dirPath, const std::string& prefix) {
|
|
298
|
+
rt::checkNoNul(dirPath, "dirPath");
|
|
299
|
+
rt::checkNoNul(prefix, "prefix");
|
|
300
|
+
CkString _out;
|
|
301
|
+
if (!this->ck().GetTempFilename(dirPath.c_str(), prefix.c_str(), _out)) throw this->fail("getTempFilename");
|
|
302
|
+
return rt::stdString(_out);
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
void HybridFileAccess::openForAppend(const std::string& filePath) {
|
|
306
|
+
this->beginCall();
|
|
307
|
+
openForAppend_impl(filePath);
|
|
308
|
+
}
|
|
309
|
+
void HybridFileAccess::openForAppend_impl(const std::string& filePath) {
|
|
310
|
+
rt::checkNoNul(filePath, "filePath");
|
|
311
|
+
if (!this->ck().OpenForAppend(filePath.c_str())) throw this->fail("openForAppend");
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
void HybridFileAccess::openForRead(const std::string& filePath) {
|
|
315
|
+
this->beginCall();
|
|
316
|
+
openForRead_impl(filePath);
|
|
317
|
+
}
|
|
318
|
+
void HybridFileAccess::openForRead_impl(const std::string& filePath) {
|
|
319
|
+
rt::checkNoNul(filePath, "filePath");
|
|
320
|
+
if (!this->ck().OpenForRead(filePath.c_str())) throw this->fail("openForRead");
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
void HybridFileAccess::openForReadWrite(const std::string& filePath) {
|
|
324
|
+
this->beginCall();
|
|
325
|
+
openForReadWrite_impl(filePath);
|
|
326
|
+
}
|
|
327
|
+
void HybridFileAccess::openForReadWrite_impl(const std::string& filePath) {
|
|
328
|
+
rt::checkNoNul(filePath, "filePath");
|
|
329
|
+
if (!this->ck().OpenForReadWrite(filePath.c_str())) throw this->fail("openForReadWrite");
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
void HybridFileAccess::openForWrite(const std::string& filePath) {
|
|
333
|
+
this->beginCall();
|
|
334
|
+
openForWrite_impl(filePath);
|
|
335
|
+
}
|
|
336
|
+
void HybridFileAccess::openForWrite_impl(const std::string& filePath) {
|
|
337
|
+
rt::checkNoNul(filePath, "filePath");
|
|
338
|
+
if (!this->ck().OpenForWrite(filePath.c_str())) throw this->fail("openForWrite");
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
std::string HybridFileAccess::readBinaryToEncoded(const std::string& filePath, const std::string& encoding) {
|
|
342
|
+
this->beginCall();
|
|
343
|
+
return readBinaryToEncoded_impl(filePath, encoding);
|
|
344
|
+
}
|
|
345
|
+
std::string HybridFileAccess::readBinaryToEncoded_impl(const std::string& filePath, const std::string& encoding) {
|
|
346
|
+
rt::checkNoNul(filePath, "filePath");
|
|
347
|
+
rt::checkNoNul(encoding, "encoding");
|
|
348
|
+
CkString _out;
|
|
349
|
+
if (!this->ck().ReadBinaryToEncoded(filePath.c_str(), encoding.c_str(), _out)) throw this->fail("readBinaryToEncoded");
|
|
350
|
+
return rt::stdString(_out);
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
std::string HybridFileAccess::readEntireTextFile(const std::string& filePath, const std::string& charset) {
|
|
354
|
+
this->beginCall();
|
|
355
|
+
return readEntireTextFile_impl(filePath, charset);
|
|
356
|
+
}
|
|
357
|
+
std::string HybridFileAccess::readEntireTextFile_impl(const std::string& filePath, const std::string& charset) {
|
|
358
|
+
rt::checkNoNul(filePath, "filePath");
|
|
359
|
+
rt::checkNoNul(charset, "charset");
|
|
360
|
+
CkString _out;
|
|
361
|
+
if (!this->ck().ReadEntireTextFile(filePath.c_str(), charset.c_str(), _out)) throw this->fail("readEntireTextFile");
|
|
362
|
+
return rt::stdString(_out);
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
void HybridFileAccess::reassembleFile(const std::string& partsDirPath, const std::string& partPrefix, const std::string& partExtension, const std::string& reassembledFilename) {
|
|
366
|
+
this->beginCall();
|
|
367
|
+
reassembleFile_impl(partsDirPath, partPrefix, partExtension, reassembledFilename);
|
|
368
|
+
}
|
|
369
|
+
void HybridFileAccess::reassembleFile_impl(const std::string& partsDirPath, const std::string& partPrefix, const std::string& partExtension, const std::string& reassembledFilename) {
|
|
370
|
+
rt::checkNoNul(partsDirPath, "partsDirPath");
|
|
371
|
+
rt::checkNoNul(partPrefix, "partPrefix");
|
|
372
|
+
rt::checkNoNul(partExtension, "partExtension");
|
|
373
|
+
rt::checkNoNul(reassembledFilename, "reassembledFilename");
|
|
374
|
+
if (!this->ck().ReassembleFile(partsDirPath.c_str(), partPrefix.c_str(), partExtension.c_str(), reassembledFilename.c_str())) throw this->fail("reassembleFile");
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
double HybridFileAccess::replaceStrings(const std::string& filePath, const std::string& charset, const std::string& existingString, const std::string& replacementString) {
|
|
378
|
+
this->beginCall();
|
|
379
|
+
return replaceStrings_impl(filePath, charset, existingString, replacementString);
|
|
380
|
+
}
|
|
381
|
+
double HybridFileAccess::replaceStrings_impl(const std::string& filePath, const std::string& charset, const std::string& existingString, const std::string& replacementString) {
|
|
382
|
+
rt::checkNoNul(filePath, "filePath");
|
|
383
|
+
rt::checkNoNul(charset, "charset");
|
|
384
|
+
rt::checkNoNul(existingString, "existingString");
|
|
385
|
+
rt::checkNoNul(replacementString, "replacementString");
|
|
386
|
+
return static_cast<double>(this->ck().ReplaceStrings(filePath.c_str(), charset.c_str(), existingString.c_str(), replacementString.c_str()));
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
void HybridFileAccess::setCurrentDir(const std::string& dirPath) {
|
|
390
|
+
this->beginCall();
|
|
391
|
+
setCurrentDir_impl(dirPath);
|
|
392
|
+
}
|
|
393
|
+
void HybridFileAccess::setCurrentDir_impl(const std::string& dirPath) {
|
|
394
|
+
rt::checkNoNul(dirPath, "dirPath");
|
|
395
|
+
if (!this->ck().SetCurrentDir(dirPath.c_str())) throw this->fail("setCurrentDir");
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
void HybridFileAccess::setFileTimes(const std::string& filePath, const std::shared_ptr<HybridCkDateTimeSpec>& createTime, const std::shared_ptr<HybridCkDateTimeSpec>& lastAccessTime, const std::shared_ptr<HybridCkDateTimeSpec>& lastModTime) {
|
|
399
|
+
this->beginCall();
|
|
400
|
+
setFileTimes_impl(filePath, createTime, lastAccessTime, lastModTime);
|
|
401
|
+
}
|
|
402
|
+
void HybridFileAccess::setFileTimes_impl(const std::string& filePath, const std::shared_ptr<HybridCkDateTimeSpec>& createTime, const std::shared_ptr<HybridCkDateTimeSpec>& lastAccessTime, const std::shared_ptr<HybridCkDateTimeSpec>& lastModTime) {
|
|
403
|
+
rt::checkNoNul(filePath, "filePath");
|
|
404
|
+
if (!this->ck().SetFileTimes(filePath.c_str(), rt::implOf<HybridCkDateTime>(createTime, "createTime").ck(), rt::implOf<HybridCkDateTime>(lastAccessTime, "lastAccessTime").ck(), rt::implOf<HybridCkDateTime>(lastModTime, "lastModTime").ck())) throw this->fail("setFileTimes");
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
void HybridFileAccess::setLastModified(const std::string& filePath, const std::shared_ptr<HybridCkDateTimeSpec>& lastModified) {
|
|
408
|
+
this->beginCall();
|
|
409
|
+
setLastModified_impl(filePath, lastModified);
|
|
410
|
+
}
|
|
411
|
+
void HybridFileAccess::setLastModified_impl(const std::string& filePath, const std::shared_ptr<HybridCkDateTimeSpec>& lastModified) {
|
|
412
|
+
rt::checkNoNul(filePath, "filePath");
|
|
413
|
+
if (!this->ck().SetLastModified(filePath.c_str(), rt::implOf<HybridCkDateTime>(lastModified, "lastModified").ck())) throw this->fail("setLastModified");
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
void HybridFileAccess::splitFile(const std::string& fileToSplit, const std::string& partPrefix, const std::string& partExtension, double partSize, const std::string& destDir) {
|
|
417
|
+
this->beginCall();
|
|
418
|
+
splitFile_impl(fileToSplit, partPrefix, partExtension, partSize, destDir);
|
|
419
|
+
}
|
|
420
|
+
void HybridFileAccess::splitFile_impl(const std::string& fileToSplit, const std::string& partPrefix, const std::string& partExtension, double partSize, const std::string& destDir) {
|
|
421
|
+
rt::checkNoNul(fileToSplit, "fileToSplit");
|
|
422
|
+
rt::checkNoNul(partPrefix, "partPrefix");
|
|
423
|
+
rt::checkNoNul(partExtension, "partExtension");
|
|
424
|
+
rt::checkNoNul(destDir, "destDir");
|
|
425
|
+
if (!this->ck().SplitFile(fileToSplit.c_str(), partPrefix.c_str(), partExtension.c_str(), rt::toInt(partSize, "partSize"), destDir.c_str())) throw this->fail("splitFile");
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
void HybridFileAccess::treeDelete(const std::string& path) {
|
|
429
|
+
this->beginCall();
|
|
430
|
+
treeDelete_impl(path);
|
|
431
|
+
}
|
|
432
|
+
void HybridFileAccess::treeDelete_impl(const std::string& path) {
|
|
433
|
+
rt::checkNoNul(path, "path");
|
|
434
|
+
if (!this->ck().TreeDelete(path.c_str())) throw this->fail("treeDelete");
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
void HybridFileAccess::writeEntireTextFile(const std::string& filePath, const std::string& textData, const std::string& charset, bool includedPreamble) {
|
|
438
|
+
this->beginCall();
|
|
439
|
+
writeEntireTextFile_impl(filePath, textData, charset, includedPreamble);
|
|
440
|
+
}
|
|
441
|
+
void HybridFileAccess::writeEntireTextFile_impl(const std::string& filePath, const std::string& textData, const std::string& charset, bool includedPreamble) {
|
|
442
|
+
rt::checkNoNul(filePath, "filePath");
|
|
443
|
+
rt::checkNoNul(textData, "textData");
|
|
444
|
+
rt::checkNoNul(charset, "charset");
|
|
445
|
+
if (!this->ck().WriteEntireTextFile(filePath.c_str(), textData.c_str(), charset.c_str(), includedPreamble)) throw this->fail("writeEntireTextFile");
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
void HybridFileAccess::fileReadBd(double maxNumBytes, const std::shared_ptr<HybridBinDataSpec>& binData) {
|
|
449
|
+
this->beginCall();
|
|
450
|
+
fileReadBd_impl(maxNumBytes, binData);
|
|
451
|
+
}
|
|
452
|
+
void HybridFileAccess::fileReadBd_impl(double maxNumBytes, const std::shared_ptr<HybridBinDataSpec>& binData) {
|
|
453
|
+
if (!this->ck().FileReadBd(rt::toInt(maxNumBytes, "maxNumBytes"), rt::implOf<HybridBinData>(binData, "binData").ck())) throw this->fail("fileReadBd");
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
void HybridFileAccess::fileWriteBd(const std::shared_ptr<HybridBinDataSpec>& binData, double offset, double numBytes) {
|
|
457
|
+
this->beginCall();
|
|
458
|
+
fileWriteBd_impl(binData, offset, numBytes);
|
|
459
|
+
}
|
|
460
|
+
void HybridFileAccess::fileWriteBd_impl(const std::shared_ptr<HybridBinDataSpec>& binData, double offset, double numBytes) {
|
|
461
|
+
if (!this->ck().FileWriteBd(rt::implOf<HybridBinData>(binData, "binData").ck(), rt::toInt(offset, "offset"), rt::toInt(numBytes, "numBytes"))) throw this->fail("fileWriteBd");
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
std::string HybridFileAccess::getFileName(const std::string& path) {
|
|
465
|
+
this->beginCall();
|
|
466
|
+
return getFileName_impl(path);
|
|
467
|
+
}
|
|
468
|
+
std::string HybridFileAccess::getFileName_impl(const std::string& path) {
|
|
469
|
+
rt::checkNoNul(path, "path");
|
|
470
|
+
CkString _out;
|
|
471
|
+
if (!this->ck().GetFileName(path.c_str(), _out)) throw this->fail("getFileName");
|
|
472
|
+
return rt::stdString(_out);
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
std::string HybridFileAccess::getDirectoryName(const std::string& path) {
|
|
476
|
+
this->beginCall();
|
|
477
|
+
return getDirectoryName_impl(path);
|
|
478
|
+
}
|
|
479
|
+
std::string HybridFileAccess::getDirectoryName_impl(const std::string& path) {
|
|
480
|
+
rt::checkNoNul(path, "path");
|
|
481
|
+
CkString _out;
|
|
482
|
+
if (!this->ck().GetDirectoryName(path.c_str(), _out)) throw this->fail("getDirectoryName");
|
|
483
|
+
return rt::stdString(_out);
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
std::string HybridFileAccess::getExtension(const std::string& path) {
|
|
487
|
+
this->beginCall();
|
|
488
|
+
return getExtension_impl(path);
|
|
489
|
+
}
|
|
490
|
+
std::string HybridFileAccess::getExtension_impl(const std::string& path) {
|
|
491
|
+
rt::checkNoNul(path, "path");
|
|
492
|
+
CkString _out;
|
|
493
|
+
if (!this->ck().GetExtension(path.c_str(), _out)) throw this->fail("getExtension");
|
|
494
|
+
return rt::stdString(_out);
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
std::string HybridFileAccess::getFileNameWithoutExtension(const std::string& path) {
|
|
498
|
+
this->beginCall();
|
|
499
|
+
return getFileNameWithoutExtension_impl(path);
|
|
500
|
+
}
|
|
501
|
+
std::string HybridFileAccess::getFileNameWithoutExtension_impl(const std::string& path) {
|
|
502
|
+
rt::checkNoNul(path, "path");
|
|
503
|
+
CkString _out;
|
|
504
|
+
if (!this->ck().GetFileNameWithoutExtension(path.c_str(), _out)) throw this->fail("getFileNameWithoutExtension");
|
|
505
|
+
return rt::stdString(_out);
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
void HybridFileAccess::appendSb(const std::shared_ptr<HybridStringBuilderSpec>& sb, const std::string& charset) {
|
|
509
|
+
this->beginCall();
|
|
510
|
+
appendSb_impl(sb, charset);
|
|
511
|
+
}
|
|
512
|
+
void HybridFileAccess::appendSb_impl(const std::shared_ptr<HybridStringBuilderSpec>& sb, const std::string& charset) {
|
|
513
|
+
rt::checkNoNul(charset, "charset");
|
|
514
|
+
if (!this->ck().AppendSb(rt::implOf<HybridStringBuilder>(sb, "sb").ck(), charset.c_str())) throw this->fail("appendSb");
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
void HybridFileAccess::appendBd(const std::shared_ptr<HybridBinDataSpec>& bd) {
|
|
518
|
+
this->beginCall();
|
|
519
|
+
appendBd_impl(bd);
|
|
520
|
+
}
|
|
521
|
+
void HybridFileAccess::appendBd_impl(const std::shared_ptr<HybridBinDataSpec>& bd) {
|
|
522
|
+
if (!this->ck().AppendBd(rt::implOf<HybridBinData>(bd, "bd").ck())) throw this->fail("appendBd");
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
double HybridFileAccess::fileType(const std::string& path) {
|
|
526
|
+
this->beginCall();
|
|
527
|
+
return fileType_impl(path);
|
|
528
|
+
}
|
|
529
|
+
double HybridFileAccess::fileType_impl(const std::string& path) {
|
|
530
|
+
rt::checkNoNul(path, "path");
|
|
531
|
+
return static_cast<double>(this->ck().FileType(path.c_str()));
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
std::string HybridFileAccess::symlinkTarget(const std::string& linkPath) {
|
|
535
|
+
this->beginCall();
|
|
536
|
+
return symlinkTarget_impl(linkPath);
|
|
537
|
+
}
|
|
538
|
+
std::string HybridFileAccess::symlinkTarget_impl(const std::string& linkPath) {
|
|
539
|
+
rt::checkNoNul(linkPath, "linkPath");
|
|
540
|
+
CkString _out;
|
|
541
|
+
if (!this->ck().SymlinkTarget(linkPath.c_str(), _out)) throw this->fail("symlinkTarget");
|
|
542
|
+
return rt::stdString(_out);
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
void HybridFileAccess::symlinkCreate(const std::string& targetPath, const std::string& linkPath) {
|
|
546
|
+
this->beginCall();
|
|
547
|
+
symlinkCreate_impl(targetPath, linkPath);
|
|
548
|
+
}
|
|
549
|
+
void HybridFileAccess::symlinkCreate_impl(const std::string& targetPath, const std::string& linkPath) {
|
|
550
|
+
rt::checkNoNul(targetPath, "targetPath");
|
|
551
|
+
rt::checkNoNul(linkPath, "linkPath");
|
|
552
|
+
if (!this->ck().SymlinkCreate(targetPath.c_str(), linkPath.c_str())) throw this->fail("symlinkCreate");
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
void HybridFileAccess::readBlockBd(double blockIndex, double blockSize, const std::shared_ptr<HybridBinDataSpec>& bd) {
|
|
556
|
+
this->beginCall();
|
|
557
|
+
readBlockBd_impl(blockIndex, blockSize, bd);
|
|
558
|
+
}
|
|
559
|
+
void HybridFileAccess::readBlockBd_impl(double blockIndex, double blockSize, const std::shared_ptr<HybridBinDataSpec>& bd) {
|
|
560
|
+
if (!this->ck().ReadBlockBd(rt::toInt(blockIndex, "blockIndex"), rt::toInt(blockSize, "blockSize"), rt::implOf<HybridBinData>(bd, "bd").ck())) throw this->fail("readBlockBd");
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
std::string HybridFileAccess::fileSizeStr(const std::string& filePath) {
|
|
564
|
+
this->beginCall();
|
|
565
|
+
return fileSizeStr_impl(filePath);
|
|
566
|
+
}
|
|
567
|
+
std::string HybridFileAccess::fileSizeStr_impl(const std::string& filePath) {
|
|
568
|
+
rt::checkNoNul(filePath, "filePath");
|
|
569
|
+
CkString _out;
|
|
570
|
+
if (!this->ck().FileSizeStr(filePath.c_str(), _out)) throw this->fail("fileSizeStr");
|
|
571
|
+
return rt::stdString(_out);
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
double HybridFileAccess::readNextFragment(bool startAtBeginning, const std::string& beginMarker, const std::string& endMarker, const std::string& charset, const std::shared_ptr<HybridStringBuilderSpec>& sb) {
|
|
575
|
+
this->beginCall();
|
|
576
|
+
return readNextFragment_impl(startAtBeginning, beginMarker, endMarker, charset, sb);
|
|
577
|
+
}
|
|
578
|
+
double HybridFileAccess::readNextFragment_impl(bool startAtBeginning, const std::string& beginMarker, const std::string& endMarker, const std::string& charset, const std::shared_ptr<HybridStringBuilderSpec>& sb) {
|
|
579
|
+
rt::checkNoNul(beginMarker, "beginMarker");
|
|
580
|
+
rt::checkNoNul(endMarker, "endMarker");
|
|
581
|
+
rt::checkNoNul(charset, "charset");
|
|
582
|
+
return static_cast<double>(this->ck().ReadNextFragment(startAtBeginning, beginMarker.c_str(), endMarker.c_str(), charset.c_str(), rt::implOf<HybridStringBuilder>(sb, "sb").ck()));
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
void HybridFileAccess::truncate() {
|
|
586
|
+
this->beginCall();
|
|
587
|
+
truncate_impl();
|
|
588
|
+
}
|
|
589
|
+
void HybridFileAccess::truncate_impl() {
|
|
590
|
+
if (!this->ck().Truncate()) throw this->fail("truncate");
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
void HybridFileAccess::fileWrite2(const std::shared_ptr<ArrayBuffer>& byteData) {
|
|
594
|
+
this->beginCall();
|
|
595
|
+
rt::ByteView _byteData = rt::viewOf(byteData);
|
|
596
|
+
fileWrite2_impl(_byteData.data, _byteData.size);
|
|
597
|
+
}
|
|
598
|
+
void HybridFileAccess::fileWrite2_impl(const uint8_t* byteDataData, size_t byteDataSize) {
|
|
599
|
+
if (!this->ck().FileWrite2(static_cast<const void*>(byteDataData), static_cast<unsigned long>(byteDataSize))) throw this->fail("fileWrite2");
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
double HybridFileAccess::fileSize64(const std::string& filePath) {
|
|
603
|
+
this->beginCall();
|
|
604
|
+
return fileSize64_impl(filePath);
|
|
605
|
+
}
|
|
606
|
+
double HybridFileAccess::fileSize64_impl(const std::string& filePath) {
|
|
607
|
+
rt::checkNoNul(filePath, "filePath");
|
|
608
|
+
return static_cast<double>(this->ck().FileSize64(filePath.c_str()));
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
bool HybridFileAccess::dirExists(const std::string& dirPath) {
|
|
612
|
+
this->beginCall();
|
|
613
|
+
return dirExists_impl(dirPath);
|
|
614
|
+
}
|
|
615
|
+
bool HybridFileAccess::dirExists_impl(const std::string& dirPath) {
|
|
616
|
+
rt::checkNoNul(dirPath, "dirPath");
|
|
617
|
+
return this->ck().DirExists(dirPath.c_str());
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
std::string HybridFileAccess::getFileTimeStr(const std::string& path, double which) {
|
|
621
|
+
this->beginCall();
|
|
622
|
+
return getFileTimeStr_impl(path, which);
|
|
623
|
+
}
|
|
624
|
+
std::string HybridFileAccess::getFileTimeStr_impl(const std::string& path, double which) {
|
|
625
|
+
rt::checkNoNul(path, "path");
|
|
626
|
+
CkString _out;
|
|
627
|
+
if (!this->ck().GetFileTimeStr(path.c_str(), rt::toInt(which, "which"), _out)) throw this->fail("getFileTimeStr");
|
|
628
|
+
return rt::stdString(_out);
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
} // namespace margelo::nitro::chilkat
|