X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmFile.cxx;h=09a9e8fd1a932439fb442300e9a2f4d2b71b5047;hb=066996143ee597cc94ffc6d27751301931afad30;hp=214d8035162bb3cdb4828970230063a55e1cf02e;hpb=56516d3238147d3252ffe8d2e400d73aa36abbab;p=gdcm.git diff --git a/src/gdcmFile.cxx b/src/gdcmFile.cxx index 214d8035..09a9e8fd 100644 --- a/src/gdcmFile.cxx +++ b/src/gdcmFile.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmFile.cxx,v $ Language: C++ - Date: $Date: 2005/07/07 16:37:40 $ - Version: $Revision: 1.249 $ + Date: $Date: 2005/07/19 14:43:48 $ + Version: $Revision: 1.250 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -98,20 +98,6 @@ bool File::Load( ) return DoTheLoadingJob( ); } -/** - * \brief Loader. (DEPRECATED : not to break the API) - * @param fileName file to be open for parsing - * @return false if file cannot be open or no swap info was found, - * or no tag was found. - */ -bool File::Load( std::string const &fileName ) -{ - SetFileName( fileName ); - if ( ! this->Document::Load( ) ) - return false; - - return DoTheLoadingJob( ); -} /** * \brief Does the Loading Job (internal use only) @@ -1725,6 +1711,27 @@ void File::ReadAndSkipEncapsulatedBasicOffsetTable() } } +// These are the deprecated method that one day should be removed (after the next release) +#ifndef GDCM_LEGACY_REMOVE +/** + * \brief Loader. (DEPRECATED : not to break the API) + * @param fileName file to be open for parsing + * @return false if file cannot be open or no swap info was found, + * or no tag was found. + * @deprecated Use the Load() function instead + */ +bool File::Load( std::string const &fileName ) +{ + GDCM_LEGACY_REPLACED_BODY(File::Load(std::string), "1.2", + File::Load()); + SetFileName( fileName ); + if ( ! this->Document::Load( ) ) + return false; + + return DoTheLoadingJob( ); +} +#endif + //----------------------------------------------------------------------------- // Print