From 37469b59d9b5d83a292f2379b664afeab7e25852 Mon Sep 17 00:00:00 2001 From: Andy Maloney Date: Tue, 4 Oct 2022 16:18:21 -0400 Subject: [PATCH] E57SimpleWriter: Add deprecation notice to old Writer constructor --- include/E57SimpleWriter.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/include/E57SimpleWriter.h b/include/E57SimpleWriter.h index 3902d33..2880c5f 100644 --- a/include/E57SimpleWriter.h +++ b/include/E57SimpleWriter.h @@ -46,12 +46,15 @@ namespace e57 { public: //! @brief This function is the constructor for the writer class - //! @param [in] filePath file path to E57 file + //! @param [in] filePath Path to E57 file //! @param [in] coordinateMetadata Information describing the Coordinate Reference System to be used for the file - Writer( const ustring &filePath, const ustring &coordinateMetadata = {} ); + //! @deprecated Will be removed in 4.0. Use Writer( const ustring &filePath, const WriterOptions &options ) + //! instead. + [[deprecated( "Will be removed in 4.0. Use Writer( ustring, WriterOptions )." )]] // TODO Remove in 4.0 + explicit Writer( const ustring &filePath, const ustring &coordinateMetadata = {} ); //! @brief This function is the constructor for the writer class - //! @param [in] filePath file path to E57 file + //! @param [in] filePath Path to E57 file //! @param [in] options Options to be used for the file Writer( const ustring &filePath, const WriterOptions &options );