From: jpr Date: Tue, 29 May 2007 12:41:33 +0000 (+0000) Subject: add example X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=363097fda73c856b465e53953ddfbcaa07080127;p=gdcm.git add example --- 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();
+
+
+
  • Avoid tons of CPU time consuming accesses to DICOM Dictionnary
        DataEntry *FileHelper::CopyDataEntry(uint16_t group, uint16_t elem);