-// gdcmElValSet.h
+// $Header: /cvs/public/gdcm/src/Attic/gdcmElValSet.h,v 1.5 2003/03/24 13:11:28 frog Exp $
#ifndef GDCMELVALSET_H
#define GDCMELVALSET_H
////////////////////////////////////////////////////////////////////////////
// Container for a set of successfully parsed ElValues.
-typedef map<TagKey, ElValue*> TagElValueHT;
-typedef map<string, ElValue*> TagElValueNameHT;
+typedef map<TagKey, gdcmElValue*> TagElValueHT;
+typedef map<string, gdcmElValue*> TagElValueNameHT;
-class GDCM_EXPORT ElValSet {
+class GDCM_EXPORT gdcmElValSet {
TagElValueHT tagHt; // Both accesses with a TagKey or with a
TagElValueNameHT NameHt; // the DictEntry.Name are required.
public:
- void Add(ElValue*);
+ void Add(gdcmElValue*);
+ void ReplaceOrCreate(gdcmElValue*);
void Print(ostream &);
void PrintByName(ostream &);
int Write(FILE *fp);
int WriteAcr(FILE *fp);
- ElValue* GetElementByNumber(guint32 group, guint32 element);
- ElValue* GetElementByName (string);
+ gdcmElValue* GetElementByNumber(guint32 group, guint32 element);
+ gdcmElValue* GetElementByName (string);
string GetElValueByNumber(guint32 group, guint32 element);
string GetElValueByName (string);
int SetElValueLengthByNumber(guint32 l, guint32 group, guint32 element);
int SetElValueLengthByName (guint32 l, string TagName);
+ guint32 GenerateFreeTagKeyInGroup(guint32 group);
};