X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmElValSet.h;h=37283f1334d5fd37b5680e3e5f30dd2d68cdcb2a;hb=f87aa828eaad96473078971c4f039e73d76b2070;hp=5def2edc274fe29f42706071eb02466c6e492366;hpb=05abd393cf82392c894dd1d852e2273b0648671d;p=gdcm.git diff --git a/src/gdcmElValSet.h b/src/gdcmElValSet.h index 5def2edc..37283f13 100644 --- a/src/gdcmElValSet.h +++ b/src/gdcmElValSet.h @@ -1,4 +1,4 @@ -// $Header: /cvs/public/gdcm/src/Attic/gdcmElValSet.h,v 1.12 2003/05/21 14:42:46 frog Exp $ +// $Header: /cvs/public/gdcm/src/Attic/gdcmElValSet.h,v 1.15 2003/06/26 13:07:01 jpr Exp $ #ifndef GDCMELVALSET_H #define GDCMELVALSET_H @@ -10,6 +10,7 @@ //////////////////////////////////////////////////////////////////////////// // Container for a set of successfully parsed ElValues. + typedef std::map TagElValueHT; typedef std::map TagElValueNameHT; @@ -19,13 +20,12 @@ class GDCM_EXPORT gdcmElValSet { typedef std::string GroupKey; typedef std::map GroupHT; - public: ~gdcmElValSet(); void Add(gdcmElValue*); - void Print(ostream &); - void PrintByName(ostream &); + void Print(std::ostream &); + void PrintByName(std::ostream &); int Write(FILE *fp, FileType type); gdcmElValue* GetElementByNumber(guint16 group, guint16 element); @@ -42,6 +42,7 @@ public: int SetElValueLengthByName (guint32 l, std::string TagName); guint32 GenerateFreeTagKeyInGroup(guint16 group); + int CheckIfExistByNumber(guint16 Group, guint16 Elem ); private: void UpdateGroupLength(bool SkipSequence = false, FileType type = ImplicitVR);