X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDicomDir.cxx;h=123b0fa6495213b6cb214c23a1e879bb55867f5c;hb=5eaf401931c8671af4f8189c4a50f58e6bdd67ed;hp=653a474434460d9db14acaa103fab679ee25645c;hpb=c4fa2e74a4ce56a0a8db54e4a70d404bec9fc8dd;p=gdcm.git diff --git a/src/gdcmDicomDir.cxx b/src/gdcmDicomDir.cxx index 653a4744..123b0fa6 100644 --- a/src/gdcmDicomDir.cxx +++ b/src/gdcmDicomDir.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDicomDir.cxx,v $ Language: C++ - Date: $Date: 2005/08/30 14:40:33 $ - Version: $Revision: 1.156 $ + Date: $Date: 2005/08/31 16:24:19 $ + Version: $Revision: 1.159 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -148,7 +148,7 @@ DicomDir::DicomDir(std::string const &fileName, bool parseDir ): // (nothing is cheked in Document constructor, to avoid overhead) ParseDir = parseDir; - SetLoadMode (GDCM_LD_ALL); // concerns only dicom files + SetLoadMode (LD_ALL); // concerns only dicom files SetFileName( fileName ); Load( ); } @@ -215,6 +215,11 @@ bool DicomDir::Load(std::string const &fileName ) } /// DEPRECATED : use SetDirectoryName(dname) instead +/** + * \brief Loader. (DEPRECATED : kept not to break the API) + * @param paseDir Parse Dir + * @deprecated use SetDirectoryName(dname) instead + */ void DicomDir::SetParseDir(bool parseDir) { ParseDir = parseDir; @@ -523,7 +528,7 @@ void DicomDir::SetEndMethodArgDelete( DicomDir::Method *method ) * @return false only when fail to open */ -bool DicomDir::WriteDicomDir(std::string const &fileName) +bool DicomDir::Write(std::string const &fileName) { int i; uint16_t sq[4] = { 0x0004, 0x1220, 0xffff, 0xffff }; @@ -575,7 +580,7 @@ bool DicomDir::WriteDicomDir(std::string const &fileName) * @return true */ -bool DicomDir::AnonymizeDicomDir() +bool DicomDir::Anonymize() { ValEntry *v; // Something clever to be found to forge the Patient names