- ElValue * ReadNextElement(void);
- ElValue * NewElValueByKey(guint16 group, guint16 element);
- ElValue * NewElValueByName(string name);
- void FindLength(ElValue *);
- void FindVR(ElValue *);
- void LoadElementValue(ElValue *);
- void LoadElementValueSafe(ElValue *);
- void SkipElementValue(ElValue *);
- void FixFoundLength(ElValue*, guint32);
- bool IsAnInteger(ElValue *);
-
+ gdcmElValue *ReadNextElement(void);
+ gdcmElValue *NewElValueByNumber(guint16 group, guint16 element);
+ gdcmElValue *NewElValueByName (std::string Name);
+
+ void FindLength (gdcmElValue *);
+ void FindVR (gdcmElValue *);
+ void LoadElementValue (gdcmElValue *);
+ void LoadElementValueSafe(gdcmElValue *);
+ void SkipElementValue (gdcmElValue *);
+ void FixFoundLength (gdcmElValue *, guint32);
+ bool IsAnInteger (gdcmElValue *);
+ void LoadElements(void);
+ void SkipBytes(guint32);
+
+protected:
+ FileType filetype;
+ FILE * fp;
+
+ gdcmElValue * GetElValueByNumber(guint16 group, guint16 element);
+ int CheckIfExistByNumber(guint16 Group, guint16 Elem );
+
+ int write(std::ostream&);
+ int anonymize(std::ostream&); // FIXME : anonymize should be a friend ?
+
+public:
+ FILE *OpenFile(bool exception_on_error = false)
+ throw(gdcmFileError);
+ bool CloseFile(void);
+ FileType GetFileType(void);
+
+ bool IsReadable(void);