Program: gdcm
Module: $RCSfile: gdcmDicomDirSerie.h,v $
Language: C++
- Date: $Date: 2005/01/18 07:53:42 $
- Version: $Revision: 1.21 $
+ Date: $Date: 2005/02/04 16:51:36 $
+ Version: $Revision: 1.27 $
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 DicomDirSerie : public DicomDirObject
{
public:
- DicomDirSerie();
+ DicomDirSerie(bool empty=false);
~DicomDirSerie();
- void Print( std::ostream &os = std::cout, std::string const & indent = "" );
+ void Print( std::ostream &os = std::cout, std::string const &indent = "" );
void WriteContent( std::ofstream *fp, FileType t );
-
- /// Returns the IMAGE chained List for this SERIE.
- ListDicomDirImage const &GetDicomDirImages() const { return Images; };
-
- // should avoid exposing internal mechanism
- DicomDirImage *GetFirstEntry();
- DicomDirImage *GetNextEntry();
-
- /// adds the passed IMAGE to the IMAGE chained List for this SERIE.
- void AddDicomDirImage(DicomDirImage *obj) { Images.push_back(obj); };
+ // Image methods
DicomDirImage *NewImage();
+ /// Add a new gdcm::DicomDirImage to the Serie
+ void AddImage(DicomDirImage *obj) { Images.push_back(obj); };
+ void ClearImage();
+
+ DicomDirImage *GetFirstImage();
+ DicomDirImage *GetNextImage();
private:
///chained list of DicomDirImages (to be exploited recursively)
ListDicomDirImage Images;
/// iterator on the DicomDirImages of the current DicomDirSerie
- ListDicomDirImage::iterator ItDicomDirImage;
+ ListDicomDirImage::iterator ItImage;
};
} // end namespace gdcm
//-----------------------------------------------------------------------------