Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare for Libe57Format version 4.0 #56

Open
dancergraham opened this issue Mar 12, 2024 · 0 comments
Open

Prepare for Libe57Format version 4.0 #56

dancergraham opened this issue Mar 12, 2024 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@dancergraham
Copy link
Collaborator

We have lots of deprecation warnings at the moment - here is a subset generated by a compilation error on line 502:

We need to remove or update these declarations, maintaining backwards compatibility where possible.

      src/pye57/libe57_wrapper.cpp(20): warning C4996: 'e57::E57_BLOB': Will be removed in 4.0. Use TypeBlob.
      src/pye57/libe57_wrapper.cpp(22): warning C4996: 'e57::E57_COMPRESSED_VECTOR': Will be removed in 4.0. Use TypeCompressedVector.
      src/pye57/libe57_wrapper.cpp(24): warning C4996: 'e57::E57_FLOAT': Will be removed in 4.0. Use TypeFloat.
      src/pye57/libe57_wrapper.cpp(26): warning C4996: 'e57::E57_INTEGER': Will be removed in 4.0. Use TypeInteger.
      src/pye57/libe57_wrapper.cpp(28): warning C4996: 'e57::E57_SCALED_INTEGER': Will be removed in 4.0. Use TypeScaledInteger.
      src/pye57/libe57_wrapper.cpp(30): warning C4996: 'e57::E57_STRING': Will be removed in 4.0. Use TypeString.
      src/pye57/libe57_wrapper.cpp(32): warning C4996: 'e57::E57_STRUCTURE': Will be removed in 4.0. Use TypeStructure.
      src/pye57/libe57_wrapper.cpp(34): warning C4996: 'e57::E57_VECTOR': Will be removed in 4.0. Use TypeVector.
      src/pye57/libe57_wrapper.cpp(79): warning C4996: 'e57::E57_STRUCTURE': Will be removed in 4.0. Use TypeStructure.
      src/pye57/libe57_wrapper.cpp(80): warning C4996: 'e57::E57_VECTOR': Will be removed in 4.0. Use TypeVector.
      src/pye57/libe57_wrapper.cpp(81): warning C4996: 'e57::E57_COMPRESSED_VECTOR': Will be removed in 4.0. Use TypeCompressedVector.
      src/pye57/libe57_wrapper.cpp(82): warning C4996: 'e57::E57_INTEGER': Will be removed in 4.0. Use TypeInteger.
      src/pye57/libe57_wrapper.cpp(83): warning C4996: 'e57::E57_SCALED_INTEGER': Will be removed in 4.0. Use TypeScaledInteger.
      src/pye57/libe57_wrapper.cpp(84): warning C4996: 'e57::E57_FLOAT': Will be removed in 4.0. Use TypeFloat.
      src/pye57/libe57_wrapper.cpp(85): warning C4996: 'e57::E57_STRING': Will be removed in 4.0. Use TypeString.
      src/pye57/libe57_wrapper.cpp(86): warning C4996: 'e57::E57_BLOB': Will be removed in 4.0. Use TypeBlob.
      src/pye57/libe57_wrapper.cpp(89): warning C4996: 'e57::E57_SINGLE': Will be removed in 4.0. Use PrecisionSingle.
      src/pye57/libe57_wrapper.cpp(90): warning C4996: 'e57::E57_DOUBLE': Will be removed in 4.0. Use PrecisionDouble.
      src/pye57/libe57_wrapper.cpp(93): warning C4996: 'e57::E57_INT8': Will be removed in 4.0. Use Int8.
      src/pye57/libe57_wrapper.cpp(94): warning C4996: 'e57::E57_UINT8': Will be removed in 4.0. Use UInt8.
      src/pye57/libe57_wrapper.cpp(95): warning C4996: 'e57::E57_INT16': Will be removed in 4.0. Use Int16.
      src/pye57/libe57_wrapper.cpp(96): warning C4996: 'e57::E57_UINT16': Will be removed in 4.0. Use UInt16.
      src/pye57/libe57_wrapper.cpp(97): warning C4996: 'e57::E57_INT32': Will be removed in 4.0. Use Int32.
      src/pye57/libe57_wrapper.cpp(98): warning C4996: 'e57::E57_UINT32': Will be removed in 4.0. Use UInt32.
      src/pye57/libe57_wrapper.cpp(99): warning C4996: 'e57::E57_INT64': Will be removed in 4.0. Use Int64.
      src/pye57/libe57_wrapper.cpp(100): warning C4996: 'e57::E57_BOOL': Will be removed in 4.0. Use Bool.
      src/pye57/libe57_wrapper.cpp(101): warning C4996: 'e57::E57_REAL32': Will be removed in 4.0. Use Real32.
      src/pye57/libe57_wrapper.cpp(102): warning C4996: 'e57::E57_REAL64': Will be removed in 4.0. Use Real64.
      src/pye57/libe57_wrapper.cpp(103): warning C4996: 'e57::E57_USTRING': Will be removed in 4.0. Use UString.
      src/pye57/libe57_wrapper.cpp(106): warning C4996: 'e57::E57_SUCCESS': Will be removed in 4.0. Use Success.
      src/pye57/libe57_wrapper.cpp(107): warning C4996: 'e57::E57_ERROR_BAD_CV_HEADER': Will be removed in 4.0. Use ErrorBadCVHeader.
      src/pye57/libe57_wrapper.cpp(108): warning C4996: 'e57::E57_ERROR_BAD_CV_PACKET': Will be removed in 4.0. Use ErrorBadCVPacket.
      src/pye57/libe57_wrapper.cpp(109): warning C4996: 'e57::E57_ERROR_CHILD_INDEX_OUT_OF_BOUNDS': Will be removed in 4.0. Use ErrorChildIndexOutOfBounds.
      src/pye57/libe57_wrapper.cpp(110): warning C4996: 'e57::E57_ERROR_SET_TWICE': Will be removed in 4.0. Use ErrorSetTwice.
      src/pye57/libe57_wrapper.cpp(111): warning C4996: 'e57::E57_ERROR_HOMOGENEOUS_VIOLATION': Will be removed in 4.0. Use ErrorHomogeneousViolation.
      src/pye57/libe57_wrapper.cpp(112): warning C4996: 'e57::E57_ERROR_VALUE_NOT_REPRESENTABLE': Will be removed in 4.0. Use ErrorValueNotRepresentable.
      src/pye57/libe57_wrapper.cpp(113): warning C4996: 'e57::E57_ERROR_SCALED_VALUE_NOT_REPRESENTABLE': Will be removed in 4.0. Use ErrorScaledValueNotRepresentable.
      src/pye57/libe57_wrapper.cpp(114): warning C4996: 'e57::E57_ERROR_REAL64_TOO_LARGE': Will be removed in 4.0. Use ErrorReal64TooLarge.
      src/pye57/libe57_wrapper.cpp(115): warning C4996: 'e57::E57_ERROR_EXPECTING_NUMERIC': Will be removed in 4.0. Use ErrorExpectingNumeric.
      src/pye57/libe57_wrapper.cpp(116): warning C4996: 'e57::E57_ERROR_EXPECTING_USTRING': Will be removed in 4.0. Use ErrorExpectingUString.
      src/pye57/libe57_wrapper.cpp(117): warning C4996: 'e57::E57_ERROR_INTERNAL': Will be removed in 4.0. Use ErrorInternal.
      src/pye57/libe57_wrapper.cpp(118): warning C4996: 'e57::E57_ERROR_BAD_XML_FORMAT': Will be removed in 4.0. Use ErrorBadXMLFormat.
      src/pye57/libe57_wrapper.cpp(119): warning C4996: 'e57::E57_ERROR_XML_PARSER': Will be removed in 4.0. Use ErrorXMLParser.
      src/pye57/libe57_wrapper.cpp(120): warning C4996: 'e57::E57_ERROR_BAD_API_ARGUMENT': Will be removed in 4.0. Use ErrorBadAPIArgument.
      src/pye57/libe57_wrapper.cpp(121): warning C4996: 'e57::E57_ERROR_FILE_IS_READ_ONLY': Will be removed in 4.0. Use ErrorFileReadOnly.
      src/pye57/libe57_wrapper.cpp(122): warning C4996: 'e57::E57_ERROR_BAD_CHECKSUM': Will be removed in 4.0. Use ErrorBadChecksum.
      src/pye57/libe57_wrapper.cpp(123): warning C4996: 'e57::E57_ERROR_OPEN_FAILED': Will be removed in 4.0. Use ErrorOpenFailed.
      src/pye57/libe57_wrapper.cpp(124): warning C4996: 'e57::E57_ERROR_CLOSE_FAILED': Will be removed in 4.0. Use ErrorCloseFailed.
      src/pye57/libe57_wrapper.cpp(125): warning C4996: 'e57::E57_ERROR_READ_FAILED': Will be removed in 4.0. Use ErrorReadFailed.
      src/pye57/libe57_wrapper.cpp(126): warning C4996: 'e57::E57_ERROR_WRITE_FAILED': Will be removed in 4.0. Use ErrorWriteFailed.
      src/pye57/libe57_wrapper.cpp(127): warning C4996: 'e57::E57_ERROR_LSEEK_FAILED': Will be removed in 4.0. Use ErrorSeekFailed.
      src/pye57/libe57_wrapper.cpp(128): warning C4996: 'e57::E57_ERROR_PATH_UNDEFINED': Will be removed in 4.0. Use ErrorPathUndefined.
      src/pye57/libe57_wrapper.cpp(129): warning C4996: 'e57::E57_ERROR_BAD_BUFFER': Will be removed in 4.0. Use ErrorBadBuffer.
      src/pye57/libe57_wrapper.cpp(130): warning C4996: 'e57::E57_ERROR_NO_BUFFER_FOR_ELEMENT': Will be removed in 4.0. Use ErrorNoBufferForElement.
      src/pye57/libe57_wrapper.cpp(131): warning C4996: 'e57::E57_ERROR_BUFFER_SIZE_MISMATCH': Will be removed in 4.0. Use ErrorBufferSizeMismatch.
      src/pye57/libe57_wrapper.cpp(132): warning C4996: 'e57::E57_ERROR_BUFFER_DUPLICATE_PATHNAME': Will be removed in 4.0. Use ErrorBufferDuplicatePathName.
      src/pye57/libe57_wrapper.cpp(133): warning C4996: 'e57::E57_ERROR_BAD_FILE_SIGNATURE': Will be removed in 4.0. Use ErrorBadFileSignature.
      src/pye57/libe57_wrapper.cpp(134): warning C4996: 'e57::E57_ERROR_UNKNOWN_FILE_VERSION': Will be removed in 4.0. Use ErrorUnknownFileVersion.
      src/pye57/libe57_wrapper.cpp(135): warning C4996: 'e57::E57_ERROR_BAD_FILE_LENGTH': Will be removed in 4.0. Use ErrorBadFileLength.
      src/pye57/libe57_wrapper.cpp(136): warning C4996: 'e57::E57_ERROR_XML_PARSER_INIT': Will be removed in 4.0. Use ErrorXMLParserInit.
      src/pye57/libe57_wrapper.cpp(137): warning C4996: 'e57::E57_ERROR_DUPLICATE_NAMESPACE_PREFIX': Will be removed in 4.0. Use ErrorDuplicateNamespacePrefix.
      src/pye57/libe57_wrapper.cpp(138): warning C4996: 'e57::E57_ERROR_DUPLICATE_NAMESPACE_URI': Will be removed in 4.0. Use ErrorDuplicateNamespaceURI.
      src/pye57/libe57_wrapper.cpp(139): warning C4996: 'e57::E57_ERROR_BAD_PROTOTYPE': Will be removed in 4.0. Use ErrorBadPrototype.
      src/pye57/libe57_wrapper.cpp(140): warning C4996: 'e57::E57_ERROR_BAD_CODECS': Will be removed in 4.0. Use ErrorBadCodecs.
      src/pye57/libe57_wrapper.cpp(141): warning C4996: 'e57::E57_ERROR_VALUE_OUT_OF_BOUNDS': Will be removed in 4.0. Use ErrorValueOutOfBounds.
      src/pye57/libe57_wrapper.cpp(142): warning C4996: 'e57::E57_ERROR_CONVERSION_REQUIRED': Will be removed in 4.0. Use ErrorConversionRequired.
      src/pye57/libe57_wrapper.cpp(143): warning C4996: 'e57::E57_ERROR_BAD_PATH_NAME': Will be removed in 4.0. Use ErrorBadPathName.
      src/pye57/libe57_wrapper.cpp(144): warning C4996: 'e57::E57_ERROR_NOT_IMPLEMENTED': Will be removed in 4.0. Use ErrorNotImplemented.
      src/pye57/libe57_wrapper.cpp(145): warning C4996: 'e57::E57_ERROR_BAD_NODE_DOWNCAST': Will be removed in 4.0. Use ErrorBadNodeDowncast.
      src/pye57/libe57_wrapper.cpp(146): warning C4996: 'e57::E57_ERROR_WRITER_NOT_OPEN': Will be removed in 4.0. Use ErrorWriterNotOpen.
      src/pye57/libe57_wrapper.cpp(147): warning C4996: 'e57::E57_ERROR_READER_NOT_OPEN': Will be removed in 4.0. Use ErrorReaderNotOpen.
      src/pye57/libe57_wrapper.cpp(148): warning C4996: 'e57::E57_ERROR_NODE_UNATTACHED': Will be removed in 4.0. Use ErrorNodeUnattached.
      src/pye57/libe57_wrapper.cpp(149): warning C4996: 'e57::E57_ERROR_ALREADY_HAS_PARENT': Will be removed in 4.0. Use ErrorAlreadyHasParent.
      src/pye57/libe57_wrapper.cpp(150): warning C4996: 'e57::E57_ERROR_DIFFERENT_DEST_IMAGEFILE': Will be removed in 4.0. Use ErrorDifferentDestImageFile.
      src/pye57/libe57_wrapper.cpp(151): warning C4996: 'e57::E57_ERROR_IMAGEFILE_NOT_OPEN': Will be removed in 4.0. Use ErrorImageFileNotOpen.
      src/pye57/libe57_wrapper.cpp(152): warning C4996: 'e57::E57_ERROR_BUFFERS_NOT_COMPATIBLE': Will be removed in 4.0. Use ErrorBuffersNotCompatible.
      src/pye57/libe57_wrapper.cpp(153): warning C4996: 'e57::E57_ERROR_TOO_MANY_WRITERS': Will be removed in 4.0. Use ErrorTooManyWriters.
      src/pye57/libe57_wrapper.cpp(154): warning C4996: 'e57::E57_ERROR_TOO_MANY_READERS': Will be removed in 4.0. Use ErrorTooManyReaders.
      src/pye57/libe57_wrapper.cpp(155): warning C4996: 'e57::E57_ERROR_BAD_CONFIGURATION': Will be removed in 4.0. Use ErrorBadConfiguration.
      src/pye57/libe57_wrapper.cpp(156): warning C4996: 'e57::E57_ERROR_INVARIANCE_VIOLATION': Will be removed in 4.0. Use ErrorInvarianceViolation.
      src/pye57/libe57_wrapper.cpp(403): warning C4996: 'e57::E57_DOUBLE': Will be removed in 4.0. Use PrecisionDouble.
      src/pye57/libe57_wrapper.cpp(54): warning C4996: 'e57::CHECKSUM_POLICY_NONE': Will be removed in 4.0. Use ChecksumPolicy::ChecksumNone.
      src/pye57/libe57_wrapper.cpp(55): warning C4996: 'e57::CHECKSUM_POLICY_SPARSE': Will be removed in 4.0. Use ChecksumPolicy::ChecksumSparse.
      src/pye57/libe57_wrapper.cpp(56): warning C4996: 'e57::CHECKSUM_POLICY_HALF': Will be removed in 4.0. Use ChecksumPolicy::ChecksumHalf.
      src/pye57/libe57_wrapper.cpp(57): warning C4996: 'e57::CHECKSUM_POLICY_ALL': Will be removed in 4.0. Use ChecksumPolicy::ChecksumAll.
      src/pye57/libe57_wrapper.cpp(491): warning C4996: 'e57::CHECKSUM_POLICY_ALL': Will be removed in 4.0. Use ChecksumPolicy::ChecksumAll.
@dancergraham dancergraham added enhancement New feature or request help wanted Extra attention is needed labels Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant