Program: gdcm
Module: $RCSfile: gdcmDicomDir.h,v $
Language: C++
- Date: $Date: 2004/07/19 03:34:11 $
- Version: $Revision: 1.25 $
+ Date: $Date: 2004/09/23 23:28:19 $
+ Version: $Revision: 1.30 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
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();
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
+ /// Types of the gdcmDicomDirObject within the gdcmDicomDir
typedef enum
{
GDCM_DICOMDIR_NONE,
GDCM_DICOMDIR_PATIENT,
GDCM_DICOMDIR_STUDY,
GDCM_DICOMDIR_SERIE,
- GDCM_DICOMDIR_IMAGE,
+ GDCM_DICOMDIR_IMAGE
} gdcmDicomDirType;
protected:
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);
// Variables
- /// Pointer on *the* gdcmObject 'DicomDirMeta Elements'
+ /// Pointer on *the* gdcmDicomDirObject 'DicomDirMeta Elements'
gdcmDicomDirMeta *metaElems;
/// Chained list of DicomDirPatient (to be exploited recursively)