X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDocEntrySet.h;h=348ed8e1922c95c8ec1e07d5394c6a5372d65348;hb=1ca3acfeda301168a36d4e15a68d3685f9b91fc9;hp=c1374a1bdab37dcdb8251153b2b63d9e1a02d5e0;hpb=5b89bede4607999aeb8d5b45311e7ee82f9471ef;p=gdcm.git diff --git a/src/gdcmDocEntrySet.h b/src/gdcmDocEntrySet.h index c1374a1b..348ed8e1 100644 --- a/src/gdcmDocEntrySet.h +++ b/src/gdcmDocEntrySet.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDocEntrySet.h,v $ Language: C++ - Date: $Date: 2005/02/02 16:18:48 $ - Version: $Revision: 1.47 $ + Date: $Date: 2005/02/10 11:20:34 $ + Version: $Revision: 1.50 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -59,7 +59,9 @@ typedef std::string BaseTagKey; class GDCM_EXPORT DocEntrySet : public Base { public: + /// Canonical Constructor DocEntrySet() {}; + /// Canonical Destructor virtual ~DocEntrySet() {}; /// \brief write any type of entry to the entry set @@ -73,8 +75,9 @@ public: virtual bool RemoveEntry(DocEntry *EntryToRemove) = 0; /// \brief Removes any type of entry out of the entry set, DOESN'T destroy it virtual bool RemoveEntryNoDestroy(DocEntry *EntryToRemove) = 0; - + /// Gets the first entry of any type of set virtual DocEntry *GetFirstEntry()=0; + /// Gets the next entry of any type of set virtual DocEntry *GetNextEntry()=0; virtual std::string GetEntryValue(uint16_t group, uint16_t elem); @@ -85,27 +88,27 @@ public: /// \brief Gets any type of DocEntry, identified by its (group,elem) virtual DocEntry *GetDocEntry(uint16_t group, uint16_t elem) = 0; /// \brief Gets a ValEntry, identified by its (group, elem) - virtual ValEntry *GetValEntry(uint16_t group, uint16_t elem); + ValEntry *GetValEntry(uint16_t group, uint16_t elem); /// \brief Gets a BinEntry, identified by its (group,elem) - virtual BinEntry *GetBinEntry(uint16_t group, uint16_t elem); + BinEntry *GetBinEntry(uint16_t group, uint16_t elem); /// \brief Gets a SeqEntry, identified by its (group,elem) - virtual SeqEntry *GetSeqEntry(uint16_t group, uint16_t elem); + SeqEntry *GetSeqEntry(uint16_t group, uint16_t elem); - virtual bool SetValEntry(std::string const &content, + bool SetValEntry(std::string const &content, uint16_t group, uint16_t elem); - virtual bool SetBinEntry(uint8_t *content, int lgth, + bool SetBinEntry(uint8_t *content, int lgth, uint16_t group, uint16_t elem); - virtual bool SetValEntry(std::string const &content, ValEntry *entry); - virtual bool SetBinEntry(uint8_t *content, int lgth, BinEntry *entry); + bool SetValEntry(std::string const &content, ValEntry *entry); + bool SetBinEntry(uint8_t *content, int lgth, BinEntry *entry); - virtual ValEntry *InsertValEntry(std::string const &value, + ValEntry *InsertValEntry(std::string const &value, uint16_t group, uint16_t elem, TagName const &vr = GDCM_UNKNOWN); - virtual BinEntry *InsertBinEntry(uint8_t *binArea, int lgth, + BinEntry *InsertBinEntry(uint8_t *binArea, int lgth, uint16_t group, uint16_t elem, TagName const &vr = GDCM_UNKNOWN); - virtual SeqEntry *InsertSeqEntry(uint16_t group, uint16_t elem); - + SeqEntry *InsertSeqEntry(uint16_t group, uint16_t elem); + /// tells us if the set contains no entry virtual bool IsEmpty() = 0; virtual bool CheckIfEntryExist(uint16_t group, uint16_t elem);