X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=Doc%2FWebsite%2FNews.html;h=9b8e5fba7c19939da00f1d6dbcc71c11a31b71de;hb=20f7cba5b9d4012e8f038e47588c4de3962d147c;hp=97ce724411f263eb76548d6151b5387d5c9155a2;hpb=abbf7910bbe903556a29539e3b75d0c73b1166a8;p=gdcm.git diff --git a/Doc/Website/News.html b/Doc/Website/News.html index 97ce7244..9b8e5fba 100644 --- a/Doc/Website/News.html +++ b/Doc/Website/News.html @@ -240,6 +240,24 @@ Any contribution is welcome. void ValEntry::CopyValEntry(uint16_t gr, uint16_t el); -->void DataEntry::CopyDataEntry(uint16_t gr, uint16_t el, VRKey const &vr); + +
+Example : + +old way : + DocEntry *p3 = item2->GetDocEntry(0x0018,0x0050); + if( !p3 ) return false; + ContentEntry *entry2 = dynamic_cast+(p3); + std::string thickness = entry2->GetValue(); + +new way : + DocEntry *p3 = item2->GetDocEntry(0x0018,0x0050); + if( !p3 ) return false; + DataEntry *entry2 = dynamic_cast (p3); + std::string thickness = entry2->GetString(); + +
DataEntry *FileHelper::CopyDataEntry(uint16_t group, uint16_t elem);