]> Creatis software - gdcm.git/blob - Doc/requirement.txt
* gdcmPython/win32/gdcmpycomplet.dsp renamed to gdcmpyembedded.dsp.
[gdcm.git] / Doc / requirement.txt
1 Design notes:
2   * STL hash table ("#include <map>") requirements:
3     1/ iterator: first(), ++, (i.e. iterate or next).
4     2/ should be sortable (i.e. sorted by TagKey). This condition shall be
5        droped since the Win32/VC++6.0 implementation doesn't look like
6        providing this facility.
7     3/ has a setup some default size value (in number of items), which should
8        be around 4500 entries which appears to be the average dictionary size
9        (said JPR).
10
11
12 Examples:
13  * gdcmFile WriteDicom;
14    WriteDicom.SetFileName("MyDicomFile.dcm");
15    string * AllTags = gdcmHeader.GetDcmTagNames();
16    WriteDicom.SetDcmTag(AllTags[5], "253");
17    WriteDicom.SetDcmTag("Patient Name", "bozo");
18    WriteDicom.SetDcmTag("Patient Name", "bozo");
19    WriteDicom.SetImageData(Image);
20    WriteDicom.Write();
21
22
23    Anonymize(ostream& output) {
24       a = gdcmFile("toto1");
25       a.SetPubValueByName("Patient Name", "");
26       a.SetPubValueByName("Date", "");
27       a.SetPubValueByName("Study Date", "");
28       a.write(output);
29    }
30
31