⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dvpspr.h

📁 转化为DIB位图再显示出来的dicom文件C++代码
💻 H
📖 第 1 页 / 共 2 页
字号:
/* * *  Copyright (C) 1998-2005, OFFIS * *  This software and supporting documentation were developed by * *    Kuratorium OFFIS e.V. *    Healthcare Information and Communication Systems *    Escherweg 2 *    D-26121 Oldenburg, Germany * *  THIS SOFTWARE IS MADE AVAILABLE,  AS IS,  AND OFFIS MAKES NO  WARRANTY *  REGARDING  THE  SOFTWARE,  ITS  PERFORMANCE,  ITS  MERCHANTABILITY  OR *  FITNESS FOR ANY PARTICULAR USE, FREEDOM FROM ANY COMPUTER DISEASES  OR *  ITS CONFORMITY TO ANY SPECIFICATION. THE ENTIRE RISK AS TO QUALITY AND *  PERFORMANCE OF THE SOFTWARE IS WITH THE USER. * *  Module: dcmpstat * *  Author: Marco Eichelberg * *  Purpose: *    classes: DVPSPrintMessageHandler * *  Last Update:      $Author: meichel $ *  Update Date:      $Date: 2005/12/09 14:48:35 $ *  CVS/RCS Revision: $Revision: 1.12 $ *  Status:           $State: Exp $ * *  CVS/RCS Log at end of file * */#ifndef __DVPSPR_H__#define __DVPSPR_H__#include "dcmtk/config/osconfig.h"    /* make sure OS specific configuration is included first */#include "dcmtk/dcmdata/dctk.h"#include "dcmtk/dcmnet/dimse.h"/** pure abstract event handler class for N-EVENT-REPORT. */class DVPSPrintEventHandler{public:  /// destructor  virtual ~DVPSPrintEventHandler() {}	  /** handles an N-EVENT-REPORT-RQ message. This method is called   *  from DVPSPrintMessageHandler whenever an event report is received.   *  The event message, information and status detail elements must be copied   *  if they should remain valid after the end of this method call.   *  The event handler can react on the event message in any implementation   *  dependent way, e.g. display the event on-screen.   *  @param eventMessage the N-EVENT-REPORT-RQ message   *  @param eventInformation event information dataset. May be NULL if no event information available.   *  @param statusDetail status detail dataset. ay be NULL if no status detail available.   *  @return the status code to be sent back as part of the N-EVENT-REPORT-RSP message, usually STATUS_Success.   */  virtual DIC_US handleEvent(    T_DIMSE_N_EventReportRQ& eventMessage,     DcmDataset *eventInformation,     DcmDataset *statusDetail)=0;};/** representation of an association used for DICOM Basic Grayscale Print. */class DVPSPrintMessageHandler{public:  /// default constructor  DVPSPrintMessageHandler();  /// destructor  virtual ~DVPSPrintMessageHandler();  /** sends an N-CREATE-RQ message and receives response.   *  Any event report requests incoming before the expected response message are handled.    *  @param sopclassUID the affected SOP class UID, must be one of the supported print classes.   *  @param sopinstanceUID the affected SOP instance UID. May be empty in which case the   *    UID is assigned by the SCP and returned in this parameter.   *  @param attributeListIn the attribute list dataset, may be NULL.   *  @param status the response message status code is passed back in this parameter    *    if the method returns with success status. Content is undefined otherwise.   *  @param attributeListOut a pointer to the attribute list returned by the SCP is passed back    *    in this parameter if the method returns with success status. Content is undefined otherwise.   *    May return NULL if the SCP has not returned an attribute list. If a DICOM dataset is returned,   *    it must be deleted by the caller.   *  @return DIMSE_NORMAL if successful (e.g. no protocol failure), an error code otherwise.   */  OFCondition createRQ(    const char *sopclassUID,     OFString& sopinstanceUID,     DcmDataset *attributeListIn,     Uint16& status,     DcmDataset* &attributeListOut);  /** sends an N-SET-RQ message and receives response.   *  Any event report requests incoming before the expected response message are handled.    *  @param sopclassUID the requested SOP class UID, must be one of the supported print classes.   *  @param sopinstanceUID the requested SOP instance UID   *  @param modificationList the modification list dataset, must not be NULL.   *  @param status the response message status code is passed back in this parameter    *    if the method returns with success status. Content is undefined otherwise.   *  @param attributeListOut a pointer to the attribute list returned by the SCP is passed back    *    in this parameter if the method returns with success status. Content is undefined otherwise.   *    May return NULL if the SCP has not returned an attribute list. If a DICOM dataset is returned,   *    it must be deleted by the caller.   *  @return DIMSE_NORMAL if successful (e.g. no protocol failure), an error code otherwise.   */  OFCondition setRQ(    const char *sopclassUID,     const char *sopinstanceUID,     DcmDataset *modificationList,     Uint16& status,     DcmDataset* &attributeListOut);  /** sends an N-GET-RQ message and receives response.   *  Any event report requests incoming before the expected response message are handled.    *  @param sopclassUID the requested SOP class UID, must be one of the supported print classes.   *  @param sopinstanceUID the requested SOP instance UID   *  @param attributeIdentifierList the list of DICOM attributes to get, may be NULL.   *    The attributes should be coded in pairs along the array (e.g. {g,e,g,e,g,e,...}).   *  @param numShorts the number of Uint16 values in the array (not the number of pairs).   *  @param status the response message status code is passed back in this parameter    *    if the method returns with success status. Content is undefined otherwise.   *  @param attributeListOut a pointer to the attribute list returned by the SCP is passed back    *    in this parameter if the method returns with success status. Content is undefined otherwise.   *    May return NULL if the SCP has not returned an attribute list. If a DICOM dataset is returned,   *    it must be deleted by the caller.   *  @return DIMSE_NORMAL if successful (e.g. no protocol failure), an error code otherwise.   */  OFCondition getRQ(    const char *sopclassUID,     const char *sopinstanceUID,     const Uint16 *attributeIdentifierList,    size_t numShorts,    Uint16& status,     DcmDataset* &attributeListOut);  /** sends an N-ACTION-RQ message and receives response.   *  Any event report requests incoming before the expected response message are handled.    *  @param sopclassUID the requested SOP class UID, must be one of the supported print classes.   *  @param sopinstanceUID the requested SOP instance UID   *  @param actionTypeID the action type ID   *  @param actionInformation the action information dataset, may be NULL.   *  @param status the response message status code is passed back in this parameter    *    if the method returns with success status. Content is undefined otherwise.   *  @param actionReply a pointer to the action reply dataset returned by the SCP is passed back    *    in this parameter if the method returns with success status. Content is undefined otherwise.   *    May return NULL if the SCP has not returned an attribute list. If a DICOM dataset is returned,   *    it must be deleted by the caller.   *  @return DIMSE_NORMAL if successful (e.g. no protocol failure), an error code otherwise.   */  OFCondition actionRQ(    const char *sopclassUID,     const char *sopinstanceUID,     Uint16 actionTypeID,     DcmDataset *actionInformation,    Uint16& status,     DcmDataset* &actionReply);  /** sends an N-DELETE-RQ message and receives response.   *  Any event report requests incoming before the expected response message are handled.    *  @param sopclassUID the requested SOP class UID, must be one of the supported print classes.   *  @param sopinstanceUID the requested SOP instance UID   *  @param status the response message status code is passed back in this parameter    *    if the method returns with success status. Content is undefined otherwise.   *  @return DIMSE_NORMAL if successful (e.g. no protocol failure), an error code otherwise.   */  OFCondition deleteRQ(    const char *sopclassUID,     const char *sopinstanceUID,     Uint16& status);  /** 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.   *  @param tlayer transport layer object, may be NULL.  If present, a transport   *    layer object for TLS transports is expected.   *  @param myAEtitle the print client's own application entity title (calling aetitle)   *  @param peerAEtitle the printer's called aetitle   *  @param peerHost hostname/IP address of the printer   *  @param peerPort port number of the printer   *  @param peerMaxPDU maximum PDU size to negotiate, must be between 8192 and 65536.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -