X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDicomDir.h;h=56f8a083f73bca693ec69c20664d4359fd857f27;hb=refs%2Ftags%2FVersion0.6.bp;hp=c7605f6211a53edc74407af990e2dffd3ea10400;hpb=1d69b92978803204089d270599133917d944c651;p=gdcm.git diff --git a/src/gdcmDicomDir.h b/src/gdcmDicomDir.h index c7605f62..56f8a083 100644 --- a/src/gdcmDicomDir.h +++ b/src/gdcmDicomDir.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDicomDir.h,v $ Language: C++ - Date: $Date: 2004/10/12 04:35:44 $ - Version: $Revision: 1.34 $ + Date: $Date: 2004/11/02 03:10:32 $ + Version: $Revision: 1.36 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -27,14 +27,14 @@ #include #include + namespace gdcm { - //----------------------------------------------------------------------------- typedef std::list ListDicomDirPatient; typedef std::vector VectDocument; -typedef GDCM_EXPORT void(Method)(void* = NULL); +typedef GDCM_EXPORT void(Method)(void*); //----------------------------------------------------------------------------- /** @@ -45,14 +45,14 @@ typedef GDCM_EXPORT void(Method)(void* = NULL); class GDCM_EXPORT DicomDir: public Document { public: - DicomDir( std::string const & fileName, bool parseDir = false ); + DicomDir( std::string const & filename, bool parseDir = false ); DicomDir(); ~DicomDir(); /// \brief canonical Printer /// \sa SetPrintLevel - virtual void Print(std::ostream &os = std::cout); + void Print(std::ostream &os = std::cout); /// Informations contained in the parser virtual bool IsReadable(); @@ -61,7 +61,7 @@ public: DicomDirMeta* GetDicomDirMeta() { return MetaElems; }; /// Returns the PATIENT chained List for this DICOMDIR. - ListDicomDirPatient &GetDicomDirPatients() { return Patients; }; + ListDicomDirPatient const & GetDicomDirPatients() const { return Patients; }; /// Parsing void ParseDirectory(); @@ -115,11 +115,11 @@ private: void AddDicomDirSerieToEnd (SQItem* s); void AddDicomDirImageToEnd (SQItem* s); - void SetElements(std::string &path, VectDocument &list); - void SetElement (std::string &path,DicomDirType type, + void SetElements(std::string const & path, VectDocument const &list); + void SetElement (std::string const & path, DicomDirType type, Document* header); - static bool HeaderLessThan(Document* header1,Document* header2); + static bool HeaderLessThan(Document* header1, Document* header2); // Variables