Actions
Feature #544
closedPass a reference to a DcmDataset to DcmFileFormat without creating a copy
Status:
Closed
Priority:
Low
Assignee:
-
Category:
Library
Target version:
-
Start date:
2013-08-23
Due date:
% Done:
0%
Estimated time:
Module:
dcmdata, (dcmnet)
Operating System:
Compiler:
Description
Currently, the DcmFileFormat constructor accepting a DcmDataset* always creates a copy. This is ok in many cases but a little inefficient if the DcmFileFormat instance is only created to save the dataset to a file (with meta header). See e.g. this commit.
Attached is a patch, that allows for specifying whether to create a copy or just reference the given dataset.
This new feature would be especially helpful for the SCU/SCP classes in "dcmnet", e.g. when storing a received DICOM dataset. However, deleting the passed DcmDataset during DcmFileFormat destruction might not always be desired since the dataset is still in use ...
Files
Actions