X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=Doc%2FWebsite%2FNews.html;h=3e98d7236b9281c70dc92405d12a45dd31a01e4b;hb=224876ca6cbe71952f2a1d66d9853eca7745d3a0;hp=97ce724411f263eb76548d6151b5387d5c9155a2;hpb=abbf7910bbe903556a29539e3b75d0c73b1166a8;p=gdcm.git diff --git a/Doc/Website/News.html b/Doc/Website/News.html index 97ce7244..3e98d723 100644 --- a/Doc/Website/News.html +++ b/Doc/Website/News.html @@ -26,21 +26,13 @@ Any contribution is welcome.
+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); @@ -258,7 +286,6 @@ Any contribution is welcome. -->void FileHelper::CopyMandatoryEntry(uint16_t group, uint16_t elem, std::string value, const VRKey &vr = GDCM_VRUNKNOWN);-CopyMandatoryEntry(0x0002,0x0003,sop)
For multivaluated numeric DataEntries @@ -268,8 +295,35 @@ For multivaluated numeric DataEntries For converting 'Decimal String' -->bool GetDSValue(std::vector <double> &valueVector); --
+use : + +#define ValEntry DataEntry +#define BinEntry DataEntry + +#define GetEntryValue(g,e) GetEntryString(g,e) +#define GetEntryForcedAsciiValue(g,e) GetEntryString(g,e) + +#define GetValEntry(g,e) GetDataEntry(g,e) +#define GetBinEntry(g,e) GetDataEntry(g,e) +#define GetValue() GetString() + +#define InsertValEntry(v,g,e,vr) InsertEntryString(v,g,e,vr) // warning mind the VR! +#define InsertBinEntry(b,l,g,e,vr) InsertEntryBinArea(b,l,g,e,vr) + +#define SetValEntry(c,g,e) SetEntryString(c,g,e) | !! +#define SetValEntry(c,en) SetEntryString(c,en) | !! + +#define SetBinEntry(c,l,en) SetEntryBinArea(c,l,en) | !! +#define SetBinEntry(c,l,g,e) SetEntryBinArea(c,l,g,e) | !! + +#define NewValEntry(g,e,vr) NewDataEntry(g,e,vr) +#define NewBinEntry(g,e,vr) NewDataEntry(g,e,vr) + +