Project

General

Profile

Actions

Feature #791

open

Make DIMSE_createFilestream more flexible

Added by Marco Eichelberg almost 8 years ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
Library
Target version:
-
Start date:
2017-09-25
Due date:
% Done:

0%

Estimated time:
Module:
dcmnet
Operating System:
Compiler:

Description

In the DCMTK forum (http://forum.dcmtk.org/viewtopic.php?f=1&t=4623), user "DraconPern" writes:

I am running into a situation where in DIMSE_createFilestream, I need the creation of DcmOutputFileStream to be seperate from writing the metaheader. Specifically I want to use DcmOutputFileStream created from a FILE*. Now currently DcmOutputFileStream already supports that. But since DIMSE_createFilestream creates DcmOutputFileStream from a filename, there's no way to actually specify a FILE*. Right now, I am just using a modified DIMSE_createFilestream replacing filename with a handle, but I think something more modular is better? May be refactor DIMSE_createFilestream to be two parts (DcmOutputFileStream creation, and metaheader writing), and then rewrite DIMSE_createFilestream to use those two parts so this isn't a breaking change. Finally expose the metaheader writing function public like, DIMSE_writeMetaheader.

No data to display

Actions

Also available in: Atom PDF