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, ElValue*> TagElValueHT;
14 typedef map<string, ElValue*> TagElValueNameHT;
16 class GDCM_EXPORT ElValSet {
17 TagElValueHT tagHt; // Both accesses with a TagKey or with a
18 TagElValueNameHT NameHt; // the DictEntry.Name are required.
21 void Print(ostream &);
22 void PrintByName(ostream &);
24 int WriteAcr(FILE *fp);
25 ElValue* GetElementByNumber(guint32 group, guint32 element);
26 ElValue* GetElementByName (string);
27 string GetElValueByNumber(guint32 group, guint32 element);
28 string GetElValueByName (string);
30 TagElValueHT & GetTagHt(void);
32 int SetElValueByNumber(string content, guint32 group, guint32 element);
33 int SetElValueByName (string content, string TagName);
35 int SetElValueLengthByNumber(guint32 l, guint32 group, guint32 element);
36 int SetElValueLengthByName (guint32 l, string TagName);