34 #include "dcmtk/config/osconfig.h" 36 #include "dcmtk/ofstd/ofstream.h" 37 #include "dcmtk/ofstd/ofstring.h" 38 #include "dcmtk/dcmpstat/dvpstyp.h" 39 #include "dcmtk/dcmpstat/dvpspll.h" 40 #include "dcmtk/dcmpstat/dvpsspl.h" 41 #include "dcmtk/dcmnet/assoc.h" 42 #include "dcmtk/dcmnet/dimse.h"
a class representing a list of DICOM elements in which each element has a different tag and elements ...
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.
DVPSPrintSCP(DVInterface &iface, const char *cfname)
constructor
a class representing the DICOM value representation 'Unique Identifier' (UI)
class representing a DICOM Sequence of Items (SQ).
void printerNGet(T_DIMSE_Message &rq, T_DIMSE_Message &rsp, DcmDataset *&rspDataset)
implements the N-GET operation for the Printer SOP Class.
the representation of a Print Management SCP.
OFCondition refuseAssociation(OFBool isBadContext)
sends A-ASSOCIATION-RQ as the result of an unsuccesful association negotiation.
DcmUniqueIdentifier psSeriesInstanceUID
series UID for presentation state objects
void filmBoxNCreate(DcmDataset *rqDataset, T_DIMSE_Message &rsp, DcmDataset *&rspDataset)
implements the N-CREATE operation for the Basic Film Box SOP Class.
DcmUniqueIdentifier studyInstanceUID
study UID for stored print and hardcopy images of one print session
DVPSFilmSession * filmSession
basic film session instance
OFCondition handleNDelete(T_DIMSE_Message &rq, T_ASC_PresentationContextID presID)
handles any incoming N-DELETE-RQ message and sends back N-DELETE-RSP.
OFString logPath
full path of the file into which the DIMSE log is written
a list of stored print objects, each of which manages a single Basic Film Box in a Print SCP...
void saveDimseLog()
stores the binary log of the DIMSE communication in a DICOM file in the log directory.
OFCondition handleCEcho(T_DIMSE_Message &rq, T_ASC_PresentationContextID presID)
handles any incoming C-ECHO-RQ message and sends back C-ECHO-RSP.
void filmSessionNCreate(DcmDataset *rqDataset, T_DIMSE_Message &rsp, DcmDataset *&rspDataset)
implements the N-CREATE 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 handleClient()
confirms an association negotiated with negotiateAssociation() and handles all DIMSE communication fo...
the list of presentation LUTs contained in a stored print object.
virtual ~DVPSPrintSCP()
destructor
a basic film session object managed by a Print SCP.
void setDimseLogPath(const char *fname)
activates or deactivates dumping of the DIMSE communication in DICOM file format. ...
int timeout
timeout for receive
OFCondition handleNGet(T_DIMSE_Message &rq, T_ASC_PresentationContextID presID)
handles any incoming N-GET-RQ message and sends back N-GET-RSP.
T_DIMSE_BlockingMode blockMode
blocking mode for receive
void filmSessionNAction(T_DIMSE_Message &rq, T_DIMSE_Message &rsp)
implements the N-ACTION operation for the Basic Film Session SOP Class.
a class handling the DICOM dataset format (files without meta header)
void dumpNMessage(T_DIMSE_Message &msg, DcmItem *dataset, OFBool outgoing)
prints a dump of the given DIMSE message to the log stream.
DcmSequenceOfItems * acseSequence
ACSE communication logged in this object if present.
void presentationLUTNCreate(DcmDataset *rqDataset, T_DIMSE_Message &rsp, DcmDataset *&rspDataset)
implements the N-CREATE operation for the Presentation LUT SOP Class.
static void addLogEntry(DcmSequenceOfItems *seq, const char *text)
adds an item to the given sequence containing the current date, time and the given text...
DcmUniqueIdentifier imageSeriesInstanceUID
series UID for hardcopy image objects
OFCondition handleNCreate(T_DIMSE_Message &rq, T_ASC_PresentationContextID presID)
handles any incoming N-CREATE-RQ message and sends back N-CREATE-RSP.
a simple string class that implements a subset of std::string.
DcmSequenceOfItems * logSequence
DIMSE communication logged in this object if present.
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.
OFCondition handleNAction(T_DIMSE_Message &rq, T_ASC_PresentationContextID presID)
handles any incoming N-ACTION-RQ message and sends back N-ACTION-RSP.
void filmBoxNDelete(T_DIMSE_Message &rq, T_DIMSE_Message &rsp)
implements the N-DELETE operation for the Basic Film Box SOP Class.
DVPSPrintSCP & operator=(const DVPSPrintSCP &)
private undefined assignment operator
void dropAssociation()
destroys the association managed by this object.
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 ...
DVPSAssociationNegotiationResult negotiateAssociation(T_ASC_Network &net)
performs association negotiation for the Print SCP.
OFCondition handleNSet(T_DIMSE_Message &rq, T_ASC_PresentationContextID presID)
handles any incoming N-SET-RQ message and sends back N-SET-RSP.
void filmBoxNAction(T_DIMSE_Message &rq, T_DIMSE_Message &rsp)
implements the N-ACTION 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.
Interface class for the Softcopy Presentation State viewer.
General purpose class for condition codes.
void filmSessionNDelete(T_DIMSE_Message &rq, T_DIMSE_Message &rsp)
implements the N-DELETE operation for the Basic Film Session SOP Class.