]> Creatis software - gdcm.git/blobdiff - src/gdcmSQItem.h
Begin of 'friend' classe hunting.
[gdcm.git] / src / gdcmSQItem.h
index 58d5e86f1424217294742826d0cb86936c00a9d2..e7c230ac00f0d029061a3c019847d191d0662f16 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmSQItem.h,v $
   Language:  C++
-  Date:      $Date: 2005/01/11 15:15:38 $
-  Version:   $Revision: 1.31 $
+  Date:      $Date: 2005/01/20 11:39:49 $
+  Version:   $Revision: 1.34 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -43,7 +43,7 @@ public:
    SQItem(int depthLevel);
    ~SQItem();
 
-   virtual void Print(std::ostream &os = std::cout); 
+   virtual void Print(std::ostream &os = std::cout, std::string const & indent = "" ); 
    void WriteContent(std::ofstream *fp, FileType filetype);
 
    /// \brief   returns the DocEntry chained List for this SQ Item.
@@ -55,12 +55,15 @@ public:
    bool RemoveEntry(DocEntry *EntryToRemove);
    bool RemoveEntryNoDestroy(DocEntry *EntryToRemove);
   
-   DocEntry *GetDocEntry(uint16_t group, uint16_t element);
+   DocEntry *GetDocEntry(uint16_t group, uint16_t elem);
+   ValEntry *GetValEntry(uint16_t group, uint16_t elem); 
+   BinEntry *GetBinEntry(uint16_t group, uint16_t elem); 
+   SeqEntry *GetSeqEntry(uint16_t group, uint16_t elem); 
    
    bool SetEntry(std::string const &val, uint16_t group, 
-                                         uint16_t element);
+                                         uint16_t elem);
     
-   std::string GetEntry(uint16_t group, uint16_t element);
+   std::string GetEntry(uint16_t group, uint16_t elem);
 
    /// \brief   returns the ordinal position of a given SQItem
    int GetSQItemNumber() { return SQItemNumber; };
@@ -80,7 +83,7 @@ public:
    ///  \brief Accessor on \ref BaseTagKey.
    BaseTagKey const &GetBaseTagKey() const { return BaseTagKeyNested; }
 
-   void Initialize();
+   DocEntry *GetFirstEntry();
    DocEntry *GetNextEntry();
 
 protected: