OFFIS DCMTK  Version 3.6.0
Public Member Functions | Private Member Functions | Private Attributes | List of all members
DcmQueryRetrieveStoreContext Class Reference

this class maintains the context information that is passed to the callback function called by DIMSE_storeProvider. More...

Collaboration diagram for DcmQueryRetrieveStoreContext:
[legend]

Public Member Functions

 DcmQueryRetrieveStoreContext (DcmQueryRetrieveDatabaseHandle &handle, const DcmQueryRetrieveOptions &options, DIC_US s, DcmFileFormat *ff, OFBool correctuidpadding)
 constructor
 
void setStatus (DIC_US s)
 set DIMSE status param s new status
 
DIC_US getStatus () const
 return current DIMSE status
 
void setFileName (const char *fn)
 set file name under which the image should be stored
 
void callbackHandler (T_DIMSE_StoreProgress *progress, T_DIMSE_C_StoreRQ *req, char *imageFileName, DcmDataset **imageDataSet, T_DIMSE_C_StoreRSP *rsp, DcmDataset **stDetail)
 callback handler called by the DIMSE_storeProvider callback function.
 

Private Member Functions

void updateDisplay (T_DIMSE_StoreProgress *progress)
 
void saveImageToDB (T_DIMSE_C_StoreRQ *req, const char *imageFileName, T_DIMSE_C_StoreRSP *rsp, DcmDataset **stDetail)
 
void writeToFile (DcmFileFormat *ff, const char *fname, T_DIMSE_C_StoreRSP *rsp)
 
void checkRequestAgainstDataset (T_DIMSE_C_StoreRQ *req, const char *fname, DcmDataset *dataSet, T_DIMSE_C_StoreRSP *rsp, OFBool uidPadding)
 

Private Attributes

DcmQueryRetrieveDatabaseHandledbHandle
 reference to database handle
 
const DcmQueryRetrieveOptionsoptions_
 reference to Q/R service options
 
DIC_US status
 current DIMSE status
 
const char * fileName
 file name under which the incoming image should be stored
 
DcmFileFormatdcmff
 DICOM file format into which the image is received.
 
OFBool correctUIDPadding
 flag indicating whether space padded UIDs should be silently corrected
 

Detailed Description

this class maintains the context information that is passed to the callback function called by DIMSE_storeProvider.

Definition at line 42 of file dcmqrcbs.h.

Constructor & Destructor Documentation

DcmQueryRetrieveStoreContext::DcmQueryRetrieveStoreContext ( DcmQueryRetrieveDatabaseHandle handle,
const DcmQueryRetrieveOptions options,
DIC_US  s,
DcmFileFormat ff,
OFBool  correctuidpadding 
)
inline

constructor

Parameters
handlereference to database handle
optionsoptions for the Q/R service
sinitial DIMSE status
ffpointer to DcmFileformat object to be used for storing the dataset
correctuidpaddingflag indicating whether space padded UIDs should be silently corrected

Definition at line 52 of file dcmqrcbs.h.

Member Function Documentation

void DcmQueryRetrieveStoreContext::callbackHandler ( T_DIMSE_StoreProgress progress,
T_DIMSE_C_StoreRQ req,
char *  imageFileName,
DcmDataset **  imageDataSet,
T_DIMSE_C_StoreRSP rsp,
DcmDataset **  stDetail 
)

callback handler called by the DIMSE_storeProvider callback function.

Parameters
progressprogress state (in)
reqoriginal store request (in)
imageFileNamebeing received into (in)
imageDataSetbeing received into (in)
rspfinal store response (out)
stDetailstatus detail dataset (out)
void DcmQueryRetrieveStoreContext::setFileName ( const char *  fn)
inline

set file name under which the image should be stored

Parameters
fnfile name. String is not copied.

Definition at line 78 of file dcmqrcbs.h.

References fileName.


The documentation for this class was generated from the following file:


Generated on Thu Dec 20 2012 for OFFIS DCMTK Version 3.6.0 by Doxygen 1.8.2