Hi, Just to mention a little problem, and its solution :
PB :
When I try to make a findAndGetOFString on the referencedFileID in my dicomdir, it only gets me the left part of the string (until the character '\')
My first part is 8 char long, and the second too, and none contains any invalid chars.
Solution :
All happens correctly when using findAndGetString.
dcmDump successfully dumps the dicomdir so the print method works also fine.
Bye
________
buy iolite vaporizer
________
vaporizer shop
[DICOMDIR]ReferencedFileID and OFString
Moderator: Moderator Team
[DICOMDIR]ReferencedFileID and OFString
Last edited by Tsunamis on Tue, 2011-02-01, 14:39, edited 2 times in total.
-
- DCMTK Developer
- Posts: 2051
- Joined: Fri, 2004-11-05, 13:47
- Location: Oldenburg, Germany
- Contact:
Hi,
the character "\" denotes, that this field holds not only one value, but has a Value Multiplicity greater than 1. The method findAndGetOFString takes as a second parameter the position of the value, you want to get (default: first = 0). If you want to get all values together (separated through "\", like the dcmdump output) concatenated in a string, use findAndGetOFStringArray(...). Look into the documentation of DcmItem for API explanations.
Regards,
Michael
the character "\" denotes, that this field holds not only one value, but has a Value Multiplicity greater than 1. The method findAndGetOFString takes as a second parameter the position of the value, you want to get (default: first = 0). If you want to get all values together (separated through "\", like the dcmdump output) concatenated in a string, use findAndGetOFStringArray(...). Look into the documentation of DcmItem for API explanations.
Regards,
Michael
Interesting indeed,
I didn't see that the string i passed was treated as separate tokens.
Thanks for the explanation.
________
Yamaha Y8950 history
I didn't see that the string i passed was treated as separate tokens.
Thanks for the explanation.
________
Yamaha Y8950 history
Who is online
Users browsing this forum: Bing [Bot] and 1 guest