1 /*=========================================================================
4 Module: $RCSfile: gdcmSQItem.h,v $
6 Date: $Date: 2004/06/22 13:47:33 $
7 Version: $Revision: 1.10 $
9 Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
10 l'Image). All rights reserved. See Doc/License.txt or
11 http://www.creatis.insa-lyon.fr/Public/Gdcm/License.htm for details.
13 This software is distributed WITHOUT ANY WARRANTY; without even
14 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 PURPOSE. See the above copyright notices for more information.
17 =========================================================================*/
22 #include "gdcmDocEntry.h"
23 #include "gdcmDocEntrySet.h"
24 #include "gdcmDocument.h"
29 //-----------------------------------------------------------------------------
30 typedef std::list<gdcmDocEntry *> ListDocEntry;
31 //-----------------------------------------------------------------------------
32 class GDCM_EXPORT gdcmSQItem : public gdcmDocEntrySet
38 virtual void Print(std::ostream &os = std::cout);
39 virtual void Write(FILE *fp, FileType filetype);
41 /// \brief returns the DocEntry chained List for this SQ Item.
42 inline ListDocEntry &GetDocEntries() {return docEntries;};
44 /// \brief adds the passed DocEntry to the DocEntry chained List for
46 inline void AddDocEntry(gdcmDocEntry *e) {docEntries.push_back(e);};
48 virtual bool AddEntry(gdcmDocEntry *Entry); // add to the List
50 gdcmDocEntry *GetDocEntryByNumber(guint16 group, guint16 element);
51 gdcmDocEntry *GetDocEntryByName (std::string Name);
53 bool SetEntryByNumber(std::string val,guint16 group, guint16 element);
55 virtual std::string GetEntryByNumber(guint16 group, guint16 element);
57 inline int GetSQItemNumber()
58 {return SQItemNumber;};
60 inline void SetSQItemNumber(int itemNumber)
61 {SQItemNumber=itemNumber;};
65 // DocEntry related utilities
70 /// \brief chained list of (Elementary) Doc Entries
71 ListDocEntry docEntries;
73 /// \brief SQ Item ordinal number
76 ///\brief pointer to the HTable of the gdcmDocument,
77 /// (because we don't know it within any gdcmObject nor any gdcmSQItem)
78 TagDocEntryHT *ptagHT;
85 //-----------------------------------------------------------------------------