Public Member Functions | |
DVPSPrintSCP (DVInterface &iface, const char *cfname) | |
constructor | |
virtual | ~DVPSPrintSCP () |
destructor | |
void | setLog (OFConsole *stream, OFBool verbMode, OFBool dbgMode, OFBool dmpMode) |
sets a new log stream and mode. | |
void | setDimseLogPath (const char *fname) |
activates or deactivates dumping of the DIMSE communication in DICOM file format. | |
DVPSAssociationNegotiationResult | negotiateAssociation (T_ASC_Network &net) |
performs association negotiation for the Print SCP. | |
void | handleClient () |
confirms an association negotiated with negotiateAssociation() and handles all DIMSE communication for the Print SCP. | |
Private Member Functions | |
DVPSPrintSCP & | operator= (const DVPSPrintSCP &) |
private undefined assignment operator | |
DVPSPrintSCP (const DVPSPrintSCP ©) | |
private undefined copy constructor | |
int | errorCond (OFCondition cond, const char *message) |
if the given condition indicates an error, prints the given string to the error log and returns true (nonzero), otherwise returns false. | |
OFCondition | refuseAssociation (OFBool isBadContext) |
sends A-ASSOCIATION-RQ as the result of an unsuccesful association negotiation. | |
void | dropAssociation () |
destroys the association managed by this object. | |
OFCondition | handleNGet (T_DIMSE_Message &rq, T_ASC_PresentationContextID presID) |
handles any incoming N-GET-RQ message and sends back N-GET-RSP. | |
OFCondition | handleNSet (T_DIMSE_Message &rq, T_ASC_PresentationContextID presID) |
handles any incoming N-SET-RQ message and sends back N-SET-RSP. | |
OFCondition | handleNAction (T_DIMSE_Message &rq, T_ASC_PresentationContextID presID) |
handles any incoming N-ACTION-RQ message and sends back N-ACTION-RSP. | |
OFCondition | handleNCreate (T_DIMSE_Message &rq, T_ASC_PresentationContextID presID) |
handles any incoming N-CREATE-RQ message and sends back N-CREATE-RSP. | |
OFCondition | handleNDelete (T_DIMSE_Message &rq, T_ASC_PresentationContextID presID) |
handles any incoming N-DELETE-RQ message and sends back N-DELETE-RSP. | |
OFCondition | handleCEcho (T_DIMSE_Message &rq, T_ASC_PresentationContextID presID) |
handles any incoming C-ECHO-RQ message and sends back C-ECHO-RSP. | |
void | printerNGet (T_DIMSE_Message &rq, T_DIMSE_Message &rsp, DcmDataset *&rspDataset) |
implements the N-GET operation for the Printer SOP Class. | |
void | filmSessionNSet (T_DIMSE_Message &rq, DcmDataset *rqDataset, T_DIMSE_Message &rsp, DcmDataset *&rspDataset) |
implements the N-SET operation for the Basic Film Session SOP Class. | |
void | filmBoxNSet (T_DIMSE_Message &rq, DcmDataset *rqDataset, T_DIMSE_Message &rsp, DcmDataset *&rspDataset) |
implements the N-SET operation for the Basic Film Box SOP Class. | |
void | imageBoxNSet (T_DIMSE_Message &rq, DcmDataset *rqDataset, T_DIMSE_Message &rsp, DcmDataset *&rspDataset) |
implements the N-SET operation for the Basic Grayscale Image Box SOP Class. | |
void | filmSessionNAction (T_DIMSE_Message &rq, T_DIMSE_Message &rsp) |
implements the N-ACTION operation for the Basic Film Session SOP Class. | |
void | filmBoxNAction (T_DIMSE_Message &rq, T_DIMSE_Message &rsp) |
implements the N-ACTION operation for the Basic Film Box SOP Class. | |
void | filmSessionNCreate (DcmDataset *rqDataset, T_DIMSE_Message &rsp, DcmDataset *&rspDataset) |
implements the N-CREATE operation for the Basic Film Session SOP Class. | |
void | filmBoxNCreate (DcmDataset *rqDataset, T_DIMSE_Message &rsp, DcmDataset *&rspDataset) |
implements the N-CREATE operation for the Basic Film Box SOP Class. | |
void | presentationLUTNCreate (DcmDataset *rqDataset, T_DIMSE_Message &rsp, DcmDataset *&rspDataset) |
implements the N-CREATE operation for the Presentation LUT SOP Class. | |
void | filmSessionNDelete (T_DIMSE_Message &rq, T_DIMSE_Message &rsp) |
implements the N-DELETE operation for the Basic Film Session SOP Class. | |
void | filmBoxNDelete (T_DIMSE_Message &rq, T_DIMSE_Message &rsp) |
implements the N-DELETE operation for the Basic Film Box SOP Class. | |
void | presentationLUTNDelete (T_DIMSE_Message &rq, T_DIMSE_Message &rsp) |
implements the N-DELETE operation for the Presentation LUT SOP Class. | |
void | saveDimseLog () |
stores the binary log of the DIMSE communication in a DICOM file in the log directory. | |
void | dumpNMessage (T_DIMSE_Message &msg, DcmItem *dataset, OFBool outgoing) |
prints a dump of the given DIMSE message to the log stream. | |
Static Private Member Functions | |
static void | addLogEntry (DcmSequenceOfItems *seq, const char *text) |
adds an item to the given sequence containing the current date, time and the given text. | |
Private Attributes | |
DVInterface & | dviface |
const char * | cfgname |
T_DIMSE_BlockingMode | blockMode |
blocking mode for receive | |
int | timeout |
timeout for receive | |
DVPSFilmSession * | filmSession |
basic film session instance | |
DVPSPresentationLUT_PList | presentationLUTList |
DVPSStoredPrint_PList | storedPrintList |
T_ASC_Association * | assoc |
DcmUniqueIdentifier | studyInstanceUID |
study UID for stored print and hardcopy images of one print session | |
DcmUniqueIdentifier | psSeriesInstanceUID |
series UID for presentation state objects | |
DcmUniqueIdentifier | imageSeriesInstanceUID |
series UID for hardcopy image objects | |
DcmSequenceOfItems * | logSequence |
DIMSE communication logged in this object if present. | |
DcmSequenceOfItems * | acseSequence |
ACSE communication logged in this object if present. | |
OFString | logPath |
full path of the file into which the DIMSE log is written | |
OFConsole * | logstream |
output stream for error messages, never NULL | |
OFBool | verboseMode |
flag indicating whether we're operating in verbose mode | |
OFBool | debugMode |
flag indicating whether we're operating in debug mode | |
OFBool | dumpMode |
flag indicating whether we're operating in DIMSE dump mode |
This class implements most of the DIMSE behaviour of a DICOM Print SCP and uses Stored Print and Hardcopy Grayscale objects to store received print jobs in the local database.
Definition at line 56 of file dvpsprt.h.
|
constructor
|
|
adds an item to the given sequence containing the current date, time and the given text.
|
|
prints a dump of the given DIMSE message to the log stream.
|
|
if the given condition indicates an error, prints the given string to the error log and returns true (nonzero), otherwise returns false.
|
|
implements the N-ACTION operation for the Basic Film Box SOP Class.
|
|
implements the N-CREATE operation for the Basic Film Box SOP Class.
|
|
implements the N-DELETE operation for the Basic Film Box SOP Class.
|
|
implements the N-SET operation for the Basic Film Box SOP Class.
|
|
implements the N-ACTION operation for the Basic Film Session SOP Class.
|
|
implements the N-CREATE operation for the Basic Film Session SOP Class.
|
|
implements the N-DELETE operation for the Basic Film Session SOP Class.
|
|
implements the N-SET operation for the Basic Film Session SOP Class.
|
|
handles any incoming C-ECHO-RQ message and sends back C-ECHO-RSP.
|
|
confirms an association negotiated with negotiateAssociation() and handles all DIMSE communication for the Print SCP. Returns after the association has been released or aborted. |
|
handles any incoming N-ACTION-RQ message and sends back N-ACTION-RSP.
|
|
handles any incoming N-CREATE-RQ message and sends back N-CREATE-RSP.
|
|
handles any incoming N-DELETE-RQ message and sends back N-DELETE-RSP.
|
|
handles any incoming N-GET-RQ message and sends back N-GET-RSP.
|
|
handles any incoming N-SET-RQ message and sends back N-SET-RSP.
|
|
implements the N-SET operation for the Basic Grayscale Image Box SOP Class.
|
|
performs association negotiation for the Print SCP. Depending on the configuration file settings, Basic Grayscale Print and Presentation LUT are accepted with all uncompressed transfer syntaxes. If association negotiation is unsuccessful, an A-ASSOCIATE-RQ is sent and the association is dropped. If successful, an A-ASSOCIATE-AC is prepared but not (yet) sent.
|
|
implements the N-CREATE operation for the Presentation LUT SOP Class.
|
|
implements the N-DELETE operation for the Presentation LUT SOP Class.
|
|
implements the N-GET operation for the Printer SOP Class.
|
|
sends A-ASSOCIATION-RQ as the result of an unsuccesful association negotiation.
|
|
stores the binary log of the DIMSE communication in a DICOM file in the log directory. Called upon association release or abort. |
|
activates or deactivates dumping of the DIMSE communication in DICOM file format. This method should be called prior to association negotiation with negotiateAssociation().
|
|
sets a new log stream and mode. This method should be called prior to association negotiation with negotiateAssociation().
|