X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDicomDir.h;h=ace71379bf604deba0fa2a078672d10c5180dde4;hb=f7f4b2e2843f917ac08f9fdc58fc23ca44d8a14d;hp=7caaee987f24bef7980e95d8ef5864dea008b071;hpb=f24973b3daa0b2214838857d02bd61db6d4a0a40;p=gdcm.git diff --git a/src/gdcmDicomDir.h b/src/gdcmDicomDir.h index 7caaee98..ace71379 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/07/17 22:36:55 $ - Version: $Revision: 1.24 $ + Date: $Date: 2004/08/31 14:24:47 $ + Version: $Revision: 1.28 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -43,18 +43,11 @@ typedef GDCM_EXPORT void(gdcmMethod)(void * = NULL); class GDCM_EXPORT gdcmDicomDir: public gdcmDocument { public: - gdcmDicomDir(std::string const & fileName, - bool parseDir = false, - bool exception_on_error = false); - gdcmDicomDir(bool exception_on_error = false); + gdcmDicomDir( std::string const & fileName, bool parseDir = false ); + gdcmDicomDir(); ~gdcmDicomDir(); - /// \brief Sets the print level for the Dicom Header - /// \note 0 for Light Print; 1 for 'medium' Print, 2 for Heavy - void SetPrintLevel(int level) - { printLevel = level; }; - /// \brief canonical Printer /// \sa SetPrintLevel virtual void Print(std::ostream &os = std::cout); @@ -82,7 +75,7 @@ public: float GetProgress() { return progress; }; /// AbortProgress AbortProgress - void AbortProgress() {abort = true; }; + void AbortProgress() { abort = true; }; /// IsAborted IsAborted bool IsAborted() { return abort; }; @@ -91,9 +84,8 @@ public: gdcmDicomDirMeta* NewMeta(); gdcmDicomDirPatient* NewPatient(); -// Write - void WriteEntries(FILE *_fp); - bool Write(std::string const & fileName); +// Write + bool WriteDicomDir(std::string const & fileName); /// Types of the gdcmObject within the gdcmDicomDir typedef enum @@ -124,8 +116,6 @@ private: void SetElements(std::string &path, VectDocument &list); void SetElement (std::string &path,gdcmDicomDirType type, gdcmDocument *header); - - void UpdateDirectoryRecordSequenceLength(); static bool HeaderLessThan(gdcmDocument *header1,gdcmDocument *header2);