X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmElValSet.h;h=889f37bf3c13c2a4df05e7493203f0310ef47fcb;hb=fdef18c217469cc507704db6d686ce195e82e4ce;hp=37283f1334d5fd37b5680e3e5f30dd2d68cdcb2a;hpb=da626417557034a6838c613ed1ccb1acc6864e9a;p=gdcm.git diff --git a/src/gdcmElValSet.h b/src/gdcmElValSet.h index 37283f13..889f37bf 100644 --- a/src/gdcmElValSet.h +++ b/src/gdcmElValSet.h @@ -1,25 +1,31 @@ -// $Header: /cvs/public/gdcm/src/Attic/gdcmElValSet.h,v 1.15 2003/06/26 13:07:01 jpr Exp $ +// $Header: /cvs/public/gdcm/src/Attic/gdcmElValSet.h,v 1.20 2004/01/12 13:12:28 regrain Exp $ #ifndef GDCMELVALSET_H #define GDCMELVALSET_H -#include // FIXME For FILE on GCC only -#include #include "gdcmCommon.h" #include "gdcmElValue.h" -//////////////////////////////////////////////////////////////////////////// -// Container for a set of successfully parsed ElValues. +#include +#include +#include // for linking together *all* the Dicom Elements -typedef std::map TagElValueHT; +/* + * Container for a set of successfully parsed ElValues. + */ +typedef std::map TagElValueHT; typedef std::map TagElValueNameHT; + +typedef std::string GroupKey; +typedef std::map GroupHT; + +typedef std::list ListTag; // for linking together the Elements class GDCM_EXPORT gdcmElValSet { TagElValueHT tagHt; // Both accesses with a TagKey or with a TagElValueNameHT NameHt; // the DictEntry.Name are required. - - typedef std::string GroupKey; - typedef std::map GroupHT; + ListTag listElem; + public: ~gdcmElValSet(); void Add(gdcmElValue*); @@ -33,13 +39,16 @@ public: std::string GetElValueByNumber(guint16 group, guint16 element); std::string GetElValueByName (std::string); - TagElValueHT & GetTagHt(void); + TagElValueHT & GetTagHt(void) {return tagHt;}; + ListTag & GetListElem(void) {return listElem;}; int SetElValueByNumber(std::string content, guint16 group, guint16 element); int SetElValueByName (std::string content, std::string TagName); int SetElValueLengthByNumber(guint32 l, guint16 group, guint16 element); int SetElValueLengthByName (guint32 l, std::string TagName); + + int SetVoidAreaByNumber(void *a, guint16 Group, guint16 Elem ); guint32 GenerateFreeTagKeyInGroup(guint16 group); int CheckIfExistByNumber(guint16 Group, guint16 Elem );