1 // $Header: /cvs/public/gdcm/src/Attic/gdcmElValSet.h,v 1.5 2003/03/24 13:11:28 frog Exp $
6 #include <stdio.h> // FIXME For FILE on GCC only
8 #include "gdcmCommon.h"
9 #include "gdcmElValue.h"
11 ////////////////////////////////////////////////////////////////////////////
12 // Container for a set of successfully parsed ElValues.
13 typedef map<TagKey, gdcmElValue*> TagElValueHT;
14 typedef map<string, gdcmElValue*> TagElValueNameHT;
16 class GDCM_EXPORT gdcmElValSet {
17 TagElValueHT tagHt; // Both accesses with a TagKey or with a
18 TagElValueNameHT NameHt; // the DictEntry.Name are required.
20 void Add(gdcmElValue*);
21 void ReplaceOrCreate(gdcmElValue*);
22 void Print(ostream &);
23 void PrintByName(ostream &);
25 int WriteAcr(FILE *fp);
26 gdcmElValue* GetElementByNumber(guint32 group, guint32 element);
27 gdcmElValue* GetElementByName (string);
28 string GetElValueByNumber(guint32 group, guint32 element);
29 string GetElValueByName (string);
31 TagElValueHT & GetTagHt(void);
33 int SetElValueByNumber(string content, guint32 group, guint32 element);
34 int SetElValueByName (string content, string TagName);
36 int SetElValueLengthByNumber(guint32 l, guint32 group, guint32 element);
37 int SetElValueLengthByName (guint32 l, string TagName);
38 guint32 GenerateFreeTagKeyInGroup(guint32 group);