]> Creatis software - gdcm.git/blobdiff - src/gdcmObject.h
NEW : gdcmDICOMDIR, gdcmPatient, gdcmStudy, gdcmSequence and gdcmImage objects.
[gdcm.git] / src / gdcmObject.h
diff --git a/src/gdcmObject.h b/src/gdcmObject.h
new file mode 100644 (file)
index 0000000..f2f65c0
--- /dev/null
@@ -0,0 +1,35 @@
+// gdcmObject.h
+//-----------------------------------------------------------------------------
+#ifndef GDCMOBJECT_H
+#define GDCMOBJECT_H
+
+#include <string>
+#include <list>
+#include "gdcmCommon.h"
+
+
+//-----------------------------------------------------------------------------
+
+typedef std::list<std::string> lstring;
+
+//-----------------------------------------------------------------------------
+
+class gdcmObject {
+public:
+
+   virtual std::string GetEntryByNumber(guint16 group, guint16 element)=0;
+   virtual std::string GetEntryByName(TagName name)=0;
+
+protected:
+
+   //to modify (I don't know the list type) : both iterators (beginning and end)
+   lstring::iterator beginIter;
+   lstring::iterator endIter;
+
+   //pointer to the data list
+   lstring *objectData;
+
+};
+
+//-----------------------------------------------------------------------------
+#endif