📄 dvpscf.h
字号:
/** returns the description string for the given VOI Preset * @param modality Modality, e.g. "CT", "MR", "DX" etc. * @param idx index of the value, must be < getNumberOfVOIPresets(modality) * @return description if present, NULL otherwise. */ const char *getVOIPresetDescription(const char *modality, Uint32 idx); /** returns the window center for the given VOI Preset * @param modality Modality, e.g. "CT", "MR", "DX" etc. * @param idx index of the value, must be < getNumberOfVOIPresets(modality) * @return window center if present, 0.0 otherwise. */ double getVOIPresetWindowCenter(const char *modality, Uint32 idx); /** returns the window width for the given VOI Preset * @param modality Modality, e.g. "CT", "MR", "DX" etc. * @param idx index of the value, must be < getNumberOfVOIPresets(modality) * @return window width if present, 1.0 otherwise. */ double getVOIPresetWindowWidth(const char *modality, Uint32 idx); /* TLS settings */ /** returns the directory in which TLS related files (certificates, keys, * random data, Diffie-Hellman parameters etc.) are located. * @return TLS directory path, NULL if absent. */ const char *getTLSFolder(); /** returns the directory in which certificates of the trusted * Certification Authorities are located. * @return TLS CA Certificate directory path, NULL if absent. */ const char *getTLSCACertificateFolder(); /** returns the file format used for certificates, keys and Diffie-Hellman * parameters. OFTrue for PEM ("privacy enhanced mail") format, OFFalse for * DER ("distinguished encoding rules") format. * @return OFTrue for PEM (default), OFFalse for DER. */ OFBool getTLSPEMFormat(); /* User login settings */ /** returns the directory in which user certificates and keys * are located. * @return User key/certificate directory path, NULL if absent. */ const char *getUserCertificateFolder(); /** returns the number of configured users in the USERS section. * @return number of configured users */ Uint32 getNumberOfUsers(); /** returns the symbolic identifier of the user with the given index. * The symbolic identifier is unique within the configuration file. * @param idx index, must be < getNumberOfUsers() * @return identifier if found, NULL otherwise. */ const char *getUserID(Uint32 idx); /** returns the login for the given user. If absent in the config file, * returns NULL. * @param userID user ID as returned by getUserID() * @return login for the given user */ const char *getUserLogin(const char *userID); /** returns the human readable name for the given user. * If absent in the config file, returns NULL. * @param userID user ID as returned by getUserID() * @return name for the given user */ const char *getUserName(const char *userID); /** returns the name for the given user in DICOM Person Name (PN) format. * If absent in the config file, returns NULL. * @param userID user ID as returned by getUserID() * @return DICOM PN name for the given user */ const char *getUserDICOMName(const char *userID); /** returns the organization for the given user. * If absent in the config file, returns NULL. * @param userID user ID as returned by getUserID() * @return organization for the given user */ const char *getUserOrganization(const char *userID); /** returns the coding scheme designator of the user code for the given user if present. * @param userID user ID as returned by getUserID() * @param value the result is both stored in this object and returned as return value. * @return value if present, NULL otherwise. */ const char *getUserCodingSchemeDesignator(const char *userID, OFString& value); /** returns the coding scheme version of the user code for the given user if present. * @param userID user ID as returned by getUserID() * @param value the result is both stored in this object and returned as return value. * @return value if present, NULL otherwise. */ const char *getUserCodingSchemeVersion(const char *userID, OFString& value); /** returns the code value of the user code for the given user if present. * @param userID user ID as returned by getUserID() * @param value the result is both stored in this object and returned as return value. * @return value if present, NULL otherwise. */ const char *getUserCodeValue(const char *userID, OFString& value); /** returns the code meaning of the user code for the given user if present. * @param userID user ID as returned by getUserID() * @param value the result is both stored in this object and returned as return value. * @return value if present, NULL otherwise. */ const char *getUserCodeMeaning(const char *userID, OFString& value); /** returns the certificate file name for the given user. * If absent in the config file, returns NULL. * @param userID user ID as returned by getUserID() * @return certificate file for the given user */ const char *getUserCertificate(const char *userID); /** returns the private key file name for the given user. * If absent in the config file, returns NULL. * @param userID user ID as returned by getUserID() * @return key file for the given user */ const char *getUserPrivateKey(const char *userID); /* Other settings */ /** sets a new log stream * @param stream new log stream, NULL for default logstream * @param verbMode verbose mode flag * @param dbgMode debug mode flag */ virtual void setLog(OFConsole *stream, OFBool verbMode, OFBool dbgMode);protected: /** output stream for error messages, never NULL */ OFConsole *logstream; /** flag indicating whether we're operating in verbose mode */ OFBool verboseMode; /** flag indicating whether we're operating in debug mode */ OFBool debugMode;private: /** private undefined copy constructor */ DVConfiguration(const DVConfiguration&); /** private undefined assignment operator */ DVConfiguration& operator=(const DVConfiguration&); /** returns the entry with the given keys. * @param l2_key level 2 key * @param l1_key level 1 key * @param l0_key level 0 key (entry name) * @return value assigned to the key if present, NULL otherwise. */ const char *getConfigEntry(const char *l2_key, const char *l1_key, const char *l0_key); /** returns the entry with the given keys as bool. * @param l2_key level 2 key * @param l1_key level 1 key * @param l0_key level 0 key (entry name) * @param deflt default to be returned if entry is not present or syntax error. * @return value assigned to the key if present, default otherwise. */ OFBool getConfigBoolEntry(const char *l2_key, const char *l1_key, const char *l0_key, OFBool deflt); /* member variables */ /** pointer to the configuration file data if the configuration file was found. * NULL otherwise. */ OFConfigFile *pConfig;};#endif/* * CVS/RCS Log: * $Log: dvpscf.h,v $ * Revision 1.32 2005/12/08 16:03:36 meichel * Changed include path schema for all DCMTK header files * * Revision 1.31 2003/04/29 10:13:56 meichel * Moved configuration file parser from module dcmpstat to ofstd and renamed * class to OFConfigFile. Cleaned up implementation (no more friend declarations). * * Revision 1.30 2002/11/29 13:16:31 meichel * Introduced new command line option --timeout for controlling the * connection request timeout. * * Revision 1.29 2002/11/25 18:27:39 meichel * Converted compile time option to leniently handle space padded UIDs * in the Storage Service Class into command line / config file option. * * Revision 1.28 2001/06/01 15:50:12 meichel * Updated copyright header * * Revision 1.27 2000/11/13 14:20:54 joergr * Updated comments. * * Revision 1.26 2000/11/13 11:52:41 meichel * Added support for user logins and certificates. * * Revision 1.25 2000/11/13 10:42:39 joergr * Added support for Structured Reporting "templates". * * Revision 1.24 2000/10/10 12:23:40 meichel * Added extensions for TLS encrypted communication * * Revision 1.23 2000/06/21 15:40:57 meichel * Added DICOMscope support for calling the Presentation State Checker. * * Revision 1.22 2000/06/07 14:16:21 joergr * Added configuration file entry "LogLevel" to filter log messages. * * Revision 1.21 2000/06/07 13:17:45 meichel * added binary and textual log facilities to Print SCP. * * Revision 1.20 2000/06/06 09:42:48 joergr * Moved configuration file entry "LogDirectory" from "[PRINT]" to new * (more general) section "[APPLICATION]". * * Revision 1.19 2000/06/05 16:22:27 joergr * Implemented log message methods. * * Revision 1.18 2000/06/02 16:00:43 meichel * Adapted all dcmpstat classes to use OFConsole for log and error output * * Revision 1.17 2000/06/02 13:53:54 joergr * Implemented start/terminatePrintServer methods. * * Revision 1.16 2000/06/02 12:41:51 joergr * Corrected wrong interface descriptions. * * Revision 1.15 2000/05/31 12:56:37 meichel * Added initial Print SCP support * * Revision 1.14 2000/05/30 13:40:02 joergr * Removed methods which were already marked as "retired". * Added new section to the config file describing the query/retrieve server * settings. * * Revision 1.13 2000/03/08 16:28:49 meichel * Updated copyright header. * * Revision 1.12 1999/11/03 13:05:32 meichel * Added support for transmitting annotations in the film session label. * Added support for dump tool launched from DVInterface. * * Revision 1.11 1999/10/20 10:47:14 joergr * Added support for a down-scaled preview image of the current DICOM image * (e.g. useful for online-windowing or print preview). * * Revision 1.10 1999/10/19 14:46:02 meichel * added support for the Basic Annotation Box SOP Class * as well as access methods for Max Density and Min Density. * * Revision 1.9 1999/10/13 14:11:56 meichel * Added config file entries and access methods * for user-defined VOI presets, log directory, verbatim logging * and an explicit list of image display formats for each printer. * * Revision 1.8 1999/10/07 17:21:46 meichel * Reworked management of Presentation LUTs in order to create tighter * coupling between Softcopy and Print. * * Revision 1.7 1999/10/01 13:32:36 joergr * Added new option to config file: AlwaysDeleteTerminateJobs. * * Revision 1.6 1999/09/24 15:24:29 meichel * Added support for CP 173 (Presentation LUT clarifications) * * Revision 1.5 1999/09/23 17:37:13 meichel * Added support for Basic Film Session options to dcmpstat print code. * * Revision 1.4 1999/09/15 17:43:26 meichel * Implemented print job dispatcher code for dcmpstat, adapted dcmprtsv * and dcmpsprt applications. * * Revision 1.3 1999/09/13 15:19:09 meichel * Added implementations for a number of further print API methods. * * Revision 1.2 1999/09/10 12:46:45 meichel * Added implementations for a number of print API methods. * * Revision 1.1 1999/09/08 16:42:02 meichel * Moved configuration file evaluation to separate class. * * */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -