X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDicomDir.h;h=4c432851aa0777a5f4f4224d3844dec44a9c6595;hb=d7531a8099267279c067b9115309cdc10f8eb46d;hp=2a524f3e13a1b24c55e6d0246f818ac5d1e5ca0c;hpb=4289ddedc713b40cb0af61e19e788bc63f0e5af0;p=gdcm.git diff --git a/src/gdcmDicomDir.h b/src/gdcmDicomDir.h index 2a524f3e..4c432851 100644 --- a/src/gdcmDicomDir.h +++ b/src/gdcmDicomDir.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDicomDir.h,v $ Language: C++ - Date: $Date: 2005/08/31 09:29:12 $ - Version: $Revision: 1.68 $ + Date: $Date: 2005/11/21 09:46:25 $ + Version: $Revision: 1.70 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -50,14 +50,14 @@ typedef std::vector VectDocument; */ class GDCM_EXPORT DicomDir: public Document { + gdcmTypeMacro(DicomDir); + public: - typedef void Method(void*); +/// \brief Constructs a DicomDir with a RefCounter + static DicomDir *New() {return new DicomDir();} - DicomDir(); - GDCM_LEGACY( DicomDir(std::string const &filename, bool parseDir = false) ); - ~DicomDir(); + typedef void Method(void*); - GDCM_LEGACY( bool Load(std::string const &filename) ); bool Load( ); void Print(std::ostream &os = std::cout, std::string const &indent = "" ); @@ -69,9 +69,6 @@ public: virtual void SetFileName(std::string const &fileName) { ParseDir = false; if (Filename != fileName) Filename = fileName, IsDocumentModified = true;} - - /// DEPRECATED : use SetDirectoryName - GDCM_LEGACY( void SetParseDir(bool parseDir) ); // Informations contained in the parser virtual bool IsReadable(); @@ -140,6 +137,9 @@ public: } DicomDirType; protected: + DicomDir(); + ~DicomDir(); + void CreateDicomDirChainedList(std::string const &path); void CallStartMethod(); void CallProgressMethod();