+2002-10-29 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
+ * hashtest.cxx removed (since allready in Test)
+ * src/gdcmlib.h renamed to src/gdcm.h
+ * src/dcm.i renamed to src/gdcm.i
+ * src/Makefile prepared for python wrapping
+
2002-10-29 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
* src/gdcmHeader.cxx :
- Parsing of header is now separated from loading of element values
+++ /dev/null
-#include <map>
-#include <string>
-#include <iostream>
-
-int main()
-{
- typedef map<string, char*> dict;
-
- dict current;
- current["00100010"] = "Patient Name";
- current["7fe00010"] = "Pixel Data";
- current["50000010"] = "Number of points";
- current["00380010"] = "Admission ID";
-
- cout << "Traversal of dictionary (note the proper ordering on key)." << endl;
- for ( dict::iterator im = current.begin(); im != current.end(); ++im )
- cout << " \"" << im->first << "\" = " << im->second << endl;
- cout << "End of dictionary." << endl;
-
- cout << "Find request on key 00380010" << endl;
- dict::iterator im = current.find("00380010");
- cout << " \"" << im->first << "\" = " << im->second << endl;
-}
%_wrap.cxx : %.i
$(SWIG) $(SWIGFLAGS) $(PYTHON_INCLUDES) -o $@ $<
-all: gdcmUtil.o \
+all: gdcmlib.so
+
+gdcmlib.so: gdcmUtil.o \
gdcmHeader.o \
gdcmElValue.o \
gdcmDictEntry.o \
gdcmHeaderIdo.o
g++ -shared -o gdcmlib.so $^ $(LDFLAGS)
-test: gdcmHeader.o
+python: gdcmlib.so dcm_wrap.o
+ g++ -shared $^ -o gdcmc.so
clean:
rm -f *_wrap* *.so *.o *.pyc