1 // $Header: /cvs/public/gdcm/src/Attic/gdcmElValSet.h,v 1.6 2003/04/01 14:07:40 jpr 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*);
22 //void ReplaceOrCreate(gdcmElValue*);
23 void Print(ostream &);
24 void PrintByName(ostream &);
26 int WriteAcr(FILE *fp);
27 int WriteExplVR(FILE *fp);
29 gdcmElValue* GetElementByNumber(guint32 group, guint32 element);
30 gdcmElValue* GetElementByName (string);
31 string GetElValueByNumber(guint32 group, guint32 element);
32 string GetElValueByName (string);
34 TagElValueHT & GetTagHt(void);
36 int SetElValueByNumber(string content, guint32 group, guint32 element);
37 int SetElValueByName (string content, string TagName);
39 int SetElValueLengthByNumber(guint32 l, guint32 group, guint32 element);
40 int SetElValueLengthByName (guint32 l, string TagName);
42 guint32 GenerateFreeTagKeyInGroup(guint32 group);