Public Member Functions | |
DVPSPrintMessageHandler () | |
default constructor | |
virtual | ~DVPSPrintMessageHandler () |
destructor | |
OFCondition | createRQ (const char *sopclassUID, OFString &sopinstanceUID, DcmDataset *attributeListIn, Uint16 &status, DcmDataset *&attributeListOut) |
sends an N-CREATE-RQ message and receives response. | |
OFCondition | setRQ (const char *sopclassUID, const char *sopinstanceUID, DcmDataset *modificationList, Uint16 &status, DcmDataset *&attributeListOut) |
sends an N-SET-RQ message and receives response. | |
OFCondition | getRQ (const char *sopclassUID, const char *sopinstanceUID, const Uint16 *attributeIdentifierList, size_t numShorts, Uint16 &status, DcmDataset *&attributeListOut) |
sends an N-GET-RQ message and receives response. | |
OFCondition | actionRQ (const char *sopclassUID, const char *sopinstanceUID, Uint16 actionTypeID, DcmDataset *actionInformation, Uint16 &status, DcmDataset *&actionReply) |
sends an N-ACTION-RQ message and receives response. | |
OFCondition | deleteRQ (const char *sopclassUID, const char *sopinstanceUID, Uint16 &status) |
sends an N-DELETE-RQ message and receives response. | |
OFCondition | negotiateAssociation (DcmTransportLayer *tlayer, const char *myAEtitle, const char *peerAEtitle, const char *peerHost, int peerPort, long peerMaxPDU, OFBool negotiatePresentationLUT, OFBool negotiateAnnotationBox, OFBool implicitOnly) |
opens a DICOM association to a remote printer. | |
OFCondition | releaseAssociation () |
releases the current association. | |
OFCondition | abortAssociation () |
aborts the current association. | |
void | setEventHandler (DVPSPrintEventHandler *handler) |
registers an event handler object for incoming N-EVENT-REPORTs. | |
void | setTimeout (T_DIMSE_BlockingMode blocking, int timeOut) |
sets the blocking and timeout mode for receive operations. | |
OFBool | printerSupportsPresentationLUT () |
checks if the remote printer supports the Presentation LUT SOP class. | |
OFBool | printerSupportsAnnotationBox () |
checks if the remote printer supports the Basic Annotation Box SOP class. | |
void | setDumpStream (ostream *stream=NULL) |
sets an ostream to which all network communication is dumped. | |
void | setLog (OFConsole *stream, OFBool verbMode, OFBool dbgMode) |
sets a new log stream | |
Private Member Functions | |
DVPSPrintMessageHandler (const DVPSPrintMessageHandler ©) | |
private undefined copy constructor | |
DVPSPrintMessageHandler & | operator= (const DVPSPrintMessageHandler ©) |
private undefined assignment operator | |
OFCondition | sendNRequest (T_ASC_PresentationContextID presId, T_DIMSE_Message &request, DcmDataset *rqDataSet, T_DIMSE_Message &response, DcmDataset *&statusDetail, DcmDataset *&rspDataset) |
sends a DIMSE-N request (any type except N-EVENT-REPORT) and waits for a response. | |
T_ASC_PresentationContextID | findAcceptedPC (const char *sopclassuid) |
looks for an accepted presentation context for the given SOP class. | |
void | dumpNMessage (T_DIMSE_Message &msg, DcmItem *dataset, OFBool outgoing) |
dumps the given message to the dump stream if it exists. | |
Private Attributes | |
T_ASC_Association * | assoc |
the association to be used for message communication. Can be NULL. | |
T_ASC_Network * | net |
the network used for establishing associations. Can be NULL. | |
DVPSPrintEventHandler * | eventHandler |
the current event handler. Can be NULL. | |
T_DIMSE_BlockingMode | blockMode |
blocking mode for receive | |
int | timeout |
timeout for receive | |
ostream * | dumpStream |
if not NULL, dump all network communication | |
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 |
Definition at line 71 of file dvpspr.h.
|
aborts the current association.
|
|
sends an N-ACTION-RQ message and receives response. Any event report requests incoming before the expected response message are handled.
|
|
sends an N-CREATE-RQ message and receives response. Any event report requests incoming before the expected response message are handled.
|
|
sends an N-DELETE-RQ message and receives response. Any event report requests incoming before the expected response message are handled.
|
|
dumps the given message to the dump stream if it exists.
|
|
looks for an accepted presentation context for the given SOP class. If the SOP class is one of the Basic Grayscale Print Management Meta classes, looks for a presentation context for the meta SOP class.
|
|
sends an N-GET-RQ message and receives response. Any event report requests incoming before the expected response message are handled.
|
|
opens a DICOM association to a remote printer. The Basic Grayscale Print Management Meta SOP Class and Presentation LUT SOP Class are requested. The association is only accepted if the remote printer supports at least the Basic Grayscale Print Management Meta SOP Class.
|
|
checks if the remote printer supports the Basic Annotation Box SOP class. May only be called if association in place.
|
|
checks if the remote printer supports the Presentation LUT SOP class. May only be called if association in place.
|
|
releases the current association.
|
|
sends a DIMSE-N request (any type except N-EVENT-REPORT) and waits for a response. Any event report requests incoming before the expected DIMSE-N-RSP are handled. If an event handler is registered, it is called for each received event report request.
|
|
sets an ostream to which all network communication is dumped.
Definition at line 244 of file dvpspr.h. References dumpStream. |
|
registers an event handler object for incoming N-EVENT-REPORTs.
Definition at line 221 of file dvpspr.h. References eventHandler. |
|
sets a new log stream
|
|
sends an N-SET-RQ message and receives response. Any event report requests incoming before the expected response message are handled.
|
|
sets the blocking and timeout mode for receive operations.
|