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

📄 dvpscf.h

📁 转化为DIB位图再显示出来的dicom文件C++代码
💻 H
📖 第 1 页 / 共 4 页
字号:
/* * *  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, Joerg Riesmeier * *  Purpose: *    classes: DVConfiguration * *  Last Update:      $Author: meichel $ *  Update Date:      $Date: 2005/12/08 16:03:36 $ *  CVS/RCS Revision: $Revision: 1.32 $ *  Status:           $State: Exp $ * *  CVS/RCS Log at end of file * */#ifndef DVPSCF_H#define DVPSCF_H#include "dcmtk/config/osconfig.h"   /* make sure OS specific configuration is included first */#include "dcmtk/ofstd/ofstring.h"   /* for class OFString */#include "dcmtk/dcmdata/dctypes.h"    /* for Uint32 */#include "dcmtk/dcmpstat/dvpstyp.h"    /* for DVPS enums */class OFConfigFile;class OFConsole;/** Configuration class for the Softcopy Presentation State viewer. *  This class manages the configuration file content used by the *  presentation state viewer. */class DVConfiguration{ public:  /** constructor.   *  @param config_file filename (path) of the config file to be used.   *     The caller should make sure that the config file   *     really exists because the constructor cannot return an error status.   *     If a non-existing filename (or NULL) is passed, an empty configuration file   *     is assumed.   */  DVConfiguration(const char *config_file=NULL);  /** destructor.   */  virtual ~DVConfiguration();  /* access to communication partner data */  /** returns the number of communication partners (send targets)   *  in the configuration file.   *  @param peerType defines a filter for the peer service type. Default: handle only storage peers.   *  @return number of communication partners   */  Uint32 getNumberOfTargets(DVPSPeerType peerType=DVPSE_storage);  /** returns the target identifier of the communication partner   *  with the given index. The target identifier is unique within the configuration file   *  @param idx index, must be < getNumberOfTargets()   *  @param peerType defines a filter for the peer service type. Default: handle only storage peers.   *  @return target identifier if found, NULL otherwise.   */  const char *getTargetID(Uint32 idx, DVPSPeerType peerType=DVPSE_storage);  /** returns the DESCRIPTION entry for the communication partner with the given   *  target ID from the configuration file.   *  @param targetID communication target ID, must be one of the target   *    identifiers returned by getTargetID().   *  @return entry if present in the config file, NULL otherwise.   */  const char *getTargetDescription(const char *targetID);  /** returns the HOSTNAME entry for the communication partner with the given   *  target ID from the configuration file.   *  @param targetID communication target ID, must be one of the target   *    identifiers returned by getTargetID().   *  @return entry if present in the config file, NULL otherwise.   */  const char *getTargetHostname(const char *targetID);  /** returns the PORT entry for the communication partner with the given   *  target ID from the configuration file.   *  @param targetID communication target ID, must be one of the target   *    identifiers returned by getTargetID().   *  @return entry if present and parsable in the config file, 0 otherwise.   */  unsigned short getTargetPort(const char *targetID);  /** returns the TYPE entry for the communication partner with the given   *  target ID from the configuration file.   *  @param targetID communication target ID, must be one of the target   *    identifiers returned by getTargetID().   *  @return entry if present and parsable in the config file, DVPSE_storage otherwise.   */  DVPSPeerType getTargetType(const char *targetID);  /** returns the AETITLE entry for the communication partner with the given   *  target ID from the configuration file.   *  @param targetID communication target ID, must be one of the target   *    identifiers returned by getTargetID().   *  @return entry if present in the config file, NULL otherwise.   */  const char *getTargetAETitle(const char *targetID);  /** returns the MAXPDU entry for the communication partner with the given   *  target ID from the configuration file.   *  @param targetID communication target ID, must be one of the target   *    identifiers returned by getTargetID().   *  @return entry if present and parsable in the config file, 0 otherwise.   */  unsigned long getTargetMaxPDU(const char *targetID);  /** returns the TIMEOUT entry for the communication partner with the given   *  target ID from the configuration file.   *  @param targetID communication target ID, must be one of the target   *    identifiers returned by getTargetID().   *  @return entry if present and parsable in the config file, -1 otherwise.   */  Sint32 getTargetTimeout(const char *targetID);  /** returns the IMPLICITONLY entry for the communication partner with the given   *  target ID from the configuration file.   *  @param targetID communication target ID, must be one of the target   *    identifiers returned by getTargetID().   *  @return entry if present in the config file, OFFalse otherwise.   */  OFBool getTargetImplicitOnly(const char *targetID);  /** returns the DISABLENEWVRS entry for the communication partner with the given   *  target ID from the configuration file.   *  @param targetID communication target ID, must be one of the target   *    identifiers returned by getTargetID().   *  @return entry if present in the config file, OFFalse otherwise.   */  OFBool getTargetDisableNewVRs(const char *targetID);  /** returns the BITPRESERVINGMODE entry for the storage peer with the given   *  target ID from the configuration file.   *  @param targetID communication target ID, must be one of the target   *    identifiers returned by getTargetID().   *  @return entry if present in the config file, OFFalse otherwise.   */  OFBool getTargetBitPreservingMode(const char *targetID);  /** returns the CORRECTUIDPADDING entry for the storage peer with the given   *  target ID from the configuration file.   *  @param targetID communication target ID, must be one of the target   *    identifiers returned by getTargetID().   *  @return entry if present in the config file, OFFalse otherwise.   */  OFBool getTargetCorrectUIDPadding(const char *targetID);  /** returns the USETLS entry for the storage peer with the given   *  target ID from the configuration file.   *  @param targetID communication target ID, must be one of the target   *    identifiers returned by getTargetID().   *  @return entry if present in the config file, OFFalse otherwise.   */  OFBool getTargetUseTLS(const char *targetID);  /** returns the CERTIFICATE entry for the storage peer with the given   *  target ID from the configuration file.   *  @param targetID communication target ID, must be one of the target   *    identifiers returned by getTargetID().   *  @return entry if present in the config file, NULL otherwise.   */  const char *getTargetCertificate(const char *targetID);  /** returns the PRIVATEKEY entry for the storage peer with the given   *  target ID from the configuration file.   *  @param targetID communication target ID, must be one of the target   *    identifiers returned by getTargetID().   *  @return entry if present in the config file, NULL otherwise.   */  const char *getTargetPrivateKey(const char *targetID);  /** returns the PRIVATEKEYPASSWORD entry for the storage peer with the given   *  target ID from the configuration file.   *  @param targetID communication target ID, must be one of the target   *    identifiers returned by getTargetID().   *  @return entry if present in the config file, NULL otherwise.   */  const char *getTargetPrivateKeyPassword(const char *targetID);  /** returns the number of distinct values (separated by backslash characters)   *  in the CIPHERSUITES entry for the storage peer with the given   *  target ID from the configuration file.   *  @param targetID communication target ID, must be one of the target   *    identifiers returned by getTargetID().   *  @return number of values if entry present in the config file, 0 otherwise.   */  Uint32 getTargetNumberOfCipherSuites(const char *targetID);  /** returns one value from the CIPHERSUITES entry for the storage peer   *  with the given target ID from the configuration file.   *  @param targetID communication target ID, must be one of the target   *    identifiers returned by getTargetID().   *  @param idx index of the value, must be < getTargetNumberOfCipherSuites(targetID)   *  @param value the result is both stored in this object and returned as return value.   *  @return value if present, NULL otherwise.   */  const char *getTargetCipherSuite(const char *targetID, Uint32 idx, OFString& value);  /** returns the PEERAUTHENTICATION entry for the communication partner with the given   *  target ID from the configuration file.   *  @param targetID communication target ID, must be one of the target   *    identifiers returned by getTargetID().   *  @return entry if present and parsable in the config file, DVPSQ_require otherwise.   */  DVPSCertificateVerificationType getTargetPeerAuthentication(const char *targetID);  /** returns the DIFFIEHELLMANPARAMETERS entry for the storage peer with the given   *  target ID from the configuration file.   *  @param targetID communication target ID, must be one of the target   *    identifiers returned by getTargetID().   *  @return entry if present in the config file, NULL otherwise.   */  const char *getTargetDiffieHellmanParameters(const char *targetID);  /** returns the RANDOMSEED entry for the storage peer with the given   *  target ID from the configuration file.   *  @param targetID communication target ID, must be one of the target   *    identifiers returned by getTargetID().   *  @return entry if present in the config file, NULL otherwise.   */  const char *getTargetRandomSeed(const char *targetID);  /** returns the SUPPORTSPRESENTATIONLUT entry for the printer with the given   *  target ID from the configuration file.   *  @param targetID communication target ID, must be one of the target   *    identifiers returned by getTargetID() for peer type DVPSE_printerAny.   *  @return entry if present in the config file, OFFalse otherwise.   */  OFBool getTargetPrinterSupportsPresentationLUT(const char *targetID);  /** returns the PRESENTATIONLUTMATCHREQUIRED entry for the printer with the given   *  target ID from the configuration file.   *  @param targetID communication target ID, must be one of the target   *    identifiers returned by getTargetID() for peer type DVPSE_printerAny.   *  @return entry if present in the config file, OFTrue otherwise.   */  OFBool getTargetPrinterPresentationLUTMatchRequired(const char *targetID);  /** returns the PRESENTATIONLUTPREFERSCPRENDERING entry for the printer with the given   *  target ID from the configuration file.   *  @param targetID communication target ID, must be one of the target   *    identifiers returned by getTargetID() for peer type DVPSE_printerAny.   *  @return entry if present in the config file, OFFalse otherwise.   */  OFBool getTargetPrinterPresentationLUTPreferSCPRendering(const char *targetID);  /** returns the PRESENTATIONLUTINFILMSESSION entry for the printer with the given   *  target ID from the configuration file.   *  @param targetID communication target ID, must be one of the target   *    identifiers returned by getTargetID() for peer type DVPSE_printerAny.   *  @return entry if present in the config file, OFFalse otherwise.   */  OFBool getTargetPrinterPresentationLUTinFilmSession(const char *targetID);  /** returns the SUPPORTS12BIT entry for the printer with the given   *  target ID from the configuration file.   *  @param targetID communication target ID, must be one of the target   *    identifiers returned by getTargetID() for peer type DVPSE_printerAny.   *  @return entry if present in the config file, OFTrue otherwise   *   (default is 12 bit supported).   */  OFBool getTargetPrinterSupports12BitTransmission(const char *targetID);  /** returns the SUPPORTSIMAGESIZE entry for the printer with the given   *  target ID from the configuration file.   *  @param targetID communication target ID, must be one of the target   *    identifiers returned by getTargetID() for peer type DVPSE_printerAny.   *  @return entry if present in the config file, OFFalse otherwise.   */  OFBool getTargetPrinterSupportsRequestedImageSize(const char *targetID);  /** returns the SUPPORTSDECIMATECROP entry for the printer with the given   *  target ID from the configuration file.   *  @param targetID communication target ID, must be one of the target   *    identifiers returned by getTargetID() for peer type DVPSE_printerAny.   *  @return entry if present in the config file, OFFalse otherwise.   */  OFBool getTargetPrinterSupportsDecimateCrop(const char *targetID);  /** returns the SUPPORTSTRIM entry for the printer with the given   *  target ID from the configuration file.   *  @param targetID communication target ID, must be one of the target   *    identifiers returned by getTargetID() for peer type DVPSE_printerAny.   *  @return entry if present in the config file, OFFalse otherwise.   */  OFBool getTargetPrinterSupportsTrim(const char *targetID);  /** returns the number of distinct values (separated by backslash characters)

⌨️ 快捷键说明

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