X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmStudy.cxx;h=d57391e27866cefdbfc20e90893b5955f2c03a55;hb=001ea156121341aef6d2445842e5a68ee9723252;hp=bcfb0e34ca8151ab56ba0ff8fd0311786fb36bb6;hpb=b0ab0e6b1085cf01026671066bcfe47a886cc752;p=gdcm.git diff --git a/src/gdcmStudy.cxx b/src/gdcmStudy.cxx index bcfb0e34..d57391e2 100644 --- a/src/gdcmStudy.cxx +++ b/src/gdcmStudy.cxx @@ -2,23 +2,57 @@ //----------------------------------------------------------------------------- #include "gdcmStudy.h" -gdcmStudy::gdcmStudy() { - +//----------------------------------------------------------------------------- +// Constructor / Destructor +/** + * \ingroup gdcmStudy + * \brief + * @param begin iterator of begin for the object + * @param end iterator of end for the object + */ +gdcmStudy::gdcmStudy(ListTag::iterator begin,ListTag::iterator end): + gdcmObject(begin,end) +{ } - -gdcmStudy::~gdcmStudy() { - +/** + * \ingroup gdcmStudy + * \brief Canonical destructor. + */ +gdcmStudy::~gdcmStudy() +{ + for(ListSerie::iterator cc = series.begin();cc != series.end();++cc) + { + delete *cc; + } } - - -std::string gdcmStudy::GetEntryByNumber(guint16 group, guint16 element) { - return ""; +//----------------------------------------------------------------------------- +// Print +/** + * \ingroup gdcmStudy + * \brief Prints the Object + * @return + */ +void gdcmStudy::Print(std::ostream &os) +{ + os<<"STUDY"<SetPrintLevel(printLevel); + (*cc)->Print(os); + } } +//----------------------------------------------------------------------------- +// Public -std::string gdcmStudy::GetEntryByName(TagName name) { - return ""; -} +//----------------------------------------------------------------------------- +// Protected +//----------------------------------------------------------------------------- +// Private + +//-----------------------------------------------------------------------------