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

📄 dccfprmp.h

📁 转化为DIB位图再显示出来的dicom文件C++代码
💻 H
字号:
/* * *  Copyright (C) 1994-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:  dcmnet * *  Author:  Marco Eichelberg * *  Purpose:  *    class DcmProfileEntry *    class DcmProfileMap * *  Last Update:      $Author: meichel $ *  Update Date:      $Date: 2005/12/08 16:02:12 $ *  Source File:      $Source: /share/dicom/cvs-depot/dcmtk/dcmnet/include/dcmtk/dcmnet/dccfprmp.h,v $ *  CVS/RCS Revision: $Revision: 1.3 $ *  Status:           $State: Exp $ * *  CVS/RCS Log at end of file * */#ifndef DCCFPRMP_H#define DCCFPRMP_H#include "dcmtk/config/osconfig.h"#include "dcmtk/ofstd/ofstring.h" /* for class OFString */#include "dcmtk/ofstd/ofcond.h"   /* for class OFCondition */#include "dcmtk/dcmnet/dcmsmap.h"  /* for class DcmSimpleMap<> *//** this helper class is a profile list entry. *  Not intended for use by the end user. */class DcmProfileEntry{public:  /** constructor   *  @param presentationContextGroup symbolic identifier of the presentation context list   *  @param roleSelectionGroup symbolic identifier of the role selection list, may be empty   *  @param extendedNegotiationGroup symbolic identifier of the extended negotiation list, may be empty   */  DcmProfileEntry(    const OFString& presentationContextGroup,    const OFString& roleSelectionGroup,    const OFString& extendedNegotiationGroup);  /// copy constructor  DcmProfileEntry(const DcmProfileEntry& arg);   /// destructor  ~DcmProfileEntry();  /** returns the presentation context key   *  @return presentation context key   */  const char *getPresentationContextKey() const;  /** returns the role selection key   *  @return role selection key, NULL if empty   */  const char *getRoleSelectionKey() const;  /** returns the extended negotiation key   *  @return extended negotiation key, NULL if empty   */  const char *getExtendedNegotiationKey() const;  /** comparison operator.   *  @param arg object to compare with   *  @return true if equal   */  OFBool operator==(const DcmProfileEntry& arg) const  {    return (presentationContextGroup_ == arg.presentationContextGroup_)         && (roleSelectionGroup_ == arg.roleSelectionGroup_)        && (extendedNegotiationGroup_ == arg.extendedNegotiationGroup_);   }private:  /// private undefined copy assignment operator  DcmProfileEntry& operator=(const DcmProfileEntry& arg);  /// symbolic identifier of the presentation context list  OFString presentationContextGroup_;  /// symbolic identifier of the role selection list, may be empty  OFString roleSelectionGroup_;  /// symbolic identifier of the extended negotiation list, may be empty  OFString extendedNegotiationGroup_;};/** this helper class maintains a map of association negotiation profile keys. *  Not intended for use by the end user. */class DcmProfileMap{public:  /// constructor  DcmProfileMap();  /// destructor  ~DcmProfileMap();  /** add new entry to list within map.   *  @param key map key, must not exist in map   *  @param presentationContextKey symbolic identifier of the presentation context list, must not be NULL   *  @param roleSelectionKey symbolic identifier of the role selection list, may be NULL   *  @param extendedNegotiationKey symbolic identifier of the extended negotiation list, may be NULL   *  @return EC_Normal if successful, an error code otherwise   */  OFCondition add(    const char *key,    const char *presentationContextKey,    const char *roleSelectionKey,    const char *extendedNegotiationKey);  /** checks if the key is known   *  @param key key name, must not be NULL   *  @return true if key is known, false otherwise   */  OFBool isKnownKey(const char *key) const;  /** returns the presentation context key for the given profile   *  @param key key name, must not be NULL   *  @return presentation context key, NULL if not found   */  const char *getPresentationContextKey(const char *key) const;  /** returns the role selection key for the given profile   *  @param key key name, must not be NULL   *  @return role selection key, NULL if not found or empty   */  const char *getRoleSelectionKey(const char *key) const;  /** returns the extended negotiation key for the given profile   *  @param key key name, must not be NULL   *  @return extended negotiation key, NULL if not found or empty   */  const char *getExtendedNegotiationKey(const char *key) const;private:  /// private undefined copy constructor  DcmProfileMap(const DcmProfileMap& arg);  /// private undefined copy assignment operator  DcmProfileMap& operator=(const DcmProfileMap& arg);  /// map of profiles  DcmSimpleMap<DcmProfileEntry *> map_;};#endif/* * CVS/RCS Log * $Log: dccfprmp.h,v $ * Revision 1.3  2005/12/08 16:02:12  meichel * Changed include path schema for all DCMTK header files * * Revision 1.2  2003/06/18 08:16:16  meichel * Added comparison operators to keep MSVC5 compiler happy * * Revision 1.1  2003/06/10 14:27:33  meichel * Initial release of class DcmAssociationConfiguration and support *   classes. This class maintains a list of association negotiation *   profiles that can be addressed by symbolic keys. The profiles may *   be read from a configuration file. * * */

⌨️ 快捷键说明

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