1 // gdcmDicomDirStudy.cxx
2 //-----------------------------------------------------------------------------
3 #include "gdcmDicomDirStudy.h"
4 #include "gdcmDicomDirElement.h"
5 #include "gdcmGlobal.h"
6 //-----------------------------------------------------------------------------
7 // Constructor / Destructor
10 * \ingroup gdcmDicomDirStudy
12 * @param s SQ Item holding the elements related to this "STUDY" part
13 * @param ptagHT pointer to the HTable (gdcmObject needs it
14 * to build the gdcmHeaderEntries)
16 gdcmDicomDirStudy::gdcmDicomDirStudy(gdcmSQItem *s, TagDocEntryHT *ptagHT):
19 docEntries = s->GetDocEntries();
22 gdcmDicomDirStudy::gdcmDicomDirStudy(TagDocEntryHT *ptagHT):
27 * \ingroup gdcmDicomDirStudy
28 * \brief Canonical destructor.
30 gdcmDicomDirStudy::~gdcmDicomDirStudy()
32 for(ListDicomDirSerie::iterator cc = series.begin();cc != series.end();++cc)
38 //-----------------------------------------------------------------------------
41 * \ingroup gdcmDicomDirStudy
42 * \brief Prints the Object
45 void gdcmDicomDirStudy::Print(std::ostream &os)
47 os<<"STUDY"<<std::endl;
48 gdcmObject::Print(os);
50 for(ListDicomDirSerie::iterator cc = series.begin();cc != series.end();++cc)
52 (*cc)->SetPrintLevel(printLevel);
57 //-----------------------------------------------------------------------------
61 * \ingroup gdcmDicomStudy
62 * \brief adds a new Serie at the begining of the SerieList
63 * of a partially created DICOMDIR
65 gdcmDicomDirSerie * gdcmDicomDirStudy::NewSerie(void) {
67 std::list<gdcmElement> elemList;
68 elemList=gdcmGlobal::GetDicomDirElements()->GetDicomDirSerieElements();
70 gdcmDicomDirSerie *st = new gdcmDicomDirSerie(ptagHT);
72 series.push_front(st);
75 //-----------------------------------------------------------------------------
78 //-----------------------------------------------------------------------------
81 //-----------------------------------------------------------------------------