1 // gdcmDicomDirSerie.cxx
2 //-----------------------------------------------------------------------------
3 #include "gdcmDicomDirSerie.h"
4 #include "gdcmDicomDirElement.h"
7 //-----------------------------------------------------------------------------
8 // Constructor / Destructor
10 * \ingroup gdcmDicomDirSerie
12 * @param begin iterator (inside the gdcmParser chained list)
13 * on the first Header Entry (i.e Dicom Element)
14 * related to this "SERIE" part
15 * @param end iterator (inside the gdcmParser chained list)
16 * on the last Header Entry (i.e Dicom Element)
17 * related to this 'SERIE' part
18 * @param ptagHT pointer to the HTable (gdcmObject needs it
19 * to build the gdcmHeaderEntries)
20 * @param plistEntries pointer to the chained List (gdcmObject needs it
21 * to build the gdcmHeaderEntries)
23 gdcmDicomDirSerie::gdcmDicomDirSerie(ListTag::iterator begin,
24 ListTag::iterator end,
25 TagHeaderEntryHT *ptagHT,
26 ListTag *plistEntries ):
27 gdcmObject(begin,end,ptagHT,plistEntries)
32 * \ingroup gdcmDicomDirSerie
33 * \brief Canonical destructor.
35 gdcmDicomDirSerie::~gdcmDicomDirSerie()
37 for(ListDicomDirImage::iterator cc = images.begin();cc != images.end();++cc)
43 //-----------------------------------------------------------------------------
46 * \ingroup gdcmDicomDirSerie
47 * \brief Prints the Object
50 void gdcmDicomDirSerie::Print(std::ostream &os)
52 os<<"SERIE"<<std::endl;
53 gdcmObject::Print(os);
55 for(ListDicomDirImage::iterator cc = images.begin();cc != images.end();++cc)
57 (*cc)->SetPrintLevel(printLevel);
62 //-----------------------------------------------------------------------------
65 * \ingroup gdcmDicomSerie
66 * \brief adds a new Image to a partially created DICOMDIR
68 gdcmDicomDirImage * gdcmDicomDirSerie::NewImage(void) {
69 std::list<gdcmElement> elemList;
70 elemList=gdcmGlobal::GetDicomDirElements()->GetDicomDirImageElements();
73 gdcmDicomDirImage *st = new gdcmDicomDirImage(i, j, ptagHT, plistEntries);
74 images.push_front(st);
77 //-----------------------------------------------------------------------------
80 //-----------------------------------------------------------------------------
83 //-----------------------------------------------------------------------------