1 // gdcmDicomDirStudy.cxx
2 //-----------------------------------------------------------------------------
3 #include "gdcmDicomDirStudy.h"
4 #include "gdcmDicomDirElement.h"
6 //-----------------------------------------------------------------------------
7 // Constructor / Destructor
10 * \ingroup gdcmDicomDirStudy
12 * @param begin iterator (inside the gdcmParser chained list)
13 * on the first Header Entry (i.e Dicom Element)
14 * related to this "STUDY" part
15 * @param end iterator (inside the gdcmParser chained list)
16 * on the last Header Entry (i.e Dicom Element)
17 * related to this 'STUDY' 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 gdcmDicomDirStudy::gdcmDicomDirStudy(ListTag::iterator begin,
24 ListTag::iterator end,
25 TagHeaderEntryHT *ptagHT,
26 ListTag *plistEntries):
27 gdcmObject(begin,end,ptagHT,plistEntries)
32 * \ingroup gdcmDicomDirStudy
33 * \brief Canonical destructor.
35 gdcmDicomDirStudy::~gdcmDicomDirStudy()
37 for(ListDicomDirSerie::iterator cc = series.begin();cc != series.end();++cc)
43 //-----------------------------------------------------------------------------
46 * \ingroup gdcmDicomDirStudy
47 * \brief Prints the Object
50 void gdcmDicomDirStudy::Print(std::ostream &os)
52 os<<"STUDY"<<std::endl;
53 gdcmObject::Print(os);
55 for(ListDicomDirSerie::iterator cc = series.begin();cc != series.end();++cc)
57 (*cc)->SetPrintLevel(printLevel);
62 //-----------------------------------------------------------------------------
66 * \ingroup gdcmDicomStudy
67 * \brief adds a new Serie at the begining of the SerieList
68 * of a partially created DICOMDIR
70 gdcmDicomDirSerie * gdcmDicomDirStudy::NewSerie(void) {
72 std::list<gdcmElement> elemList;
73 elemList=gdcmGlobal::GetDicomDirElements()->GetDicomDirSerieElements();
76 gdcmDicomDirSerie *st = new gdcmDicomDirSerie(i, j, ptagHT, plistEntries);
77 series.push_front(st);
80 //-----------------------------------------------------------------------------
83 //-----------------------------------------------------------------------------
86 //-----------------------------------------------------------------------------