📄 dsrtypes.h
字号:
* The value type (for DEBUG mode also the node ID) is added if the 'node' if specified. ** @param stream output stream to which the warning message is printed (no message if NULL) * @param action text describing the current action (e.g. 'Reading'), 'Processing' if NULL * @param result status used to print more information on the error (no message if EC_Normal) * @param node pointer to document tree node for which the message should be printed * @param location position of the affected content item (e.g. '1.2.3', not printed if NULL) */ static void printContentItemErrorMessage(OFConsole *stream, const char *action, const OFCondition &result, const DSRDocumentTreeNode *node, const char *location = NULL); /** print a warning message that an unknown/unsupported value has been determined ** @param stream output stream to which the warning message is printed (no message if NULL) * @param valueName name of the unknown/unsupported value * @param readValue value that has been read (optional) * @param action text describing the current action (default: 'Reading'), 'Processing' if NULL */ static void printUnknownValueWarningMessage(OFConsole *stream, const char *valueName, const char *readValue = NULL, const char *action = "Reading"); /** write string value to XML output stream. * The output looks like this: "<" tagName ">" stringValue "</" tagName ">" ** @param stream output stream to which the XML document is written * @param stringValue string value to be written * @param tagName name of the XML tag used to surround the string value * @param writeEmptyValue optional flag indicating whether an empty value should be written ** @return OFTrue if tag/value has been written, OFFalse otherwise */ static OFBool writeStringValueToXML(ostream &stream, const OFString &stringValue, const OFString &tagName, const OFBool writeEmptyValue = OFFalse); /** write string value from DICOM element to XML output stream. * The output looks like this: "<" tagName ">" stringValue "</" tagName ">" * For elements with DICOM VR=PN the function dicomToXMLPersonName() is used internally. ** @param stream output stream to which the XML document is written * @param delem reference to DICOM element from which the value is retrieved * @param tagName name of the XML tag used to surround the string value * @param writeEmptyValue optional flag indicating whether an empty value should be written ** @return OFTrue if tag/value has been written, OFFalse otherwise */ static OFBool writeStringFromElementToXML(ostream &stream, DcmElement &delem, const OFString &tagName, const OFBool writeEmptyValue = OFFalse); /** create an HTML annex entry with hyperlinks. * A reference text is added to the main document and a new annex entry to the document annex * with HTML hyperlinks between both. Example for a reference: '[for details see Annex 1]' ** @param docStream output stream used for the main document * @param annexStream output stream used for the document annex * @param referenceText optional text added to the main document (e.g. 'for details see') * @param annexNumber reference to the variable where the current annex number is stored. * Value is increased automatically by 1 after the new entry has been added. ** @return current annex number after the new entry has been added */ static size_t createHTMLAnnexEntry(ostream &docStream, ostream &annexStream, const OFString &referenceText, size_t &annexNumber); /** create an HTML footnote with hyperlinks ** @param docStream output stream used for the main document * @param footnoteStream output stream used for the footnote text * @param footnoteNumber reference to the variable where the current footnote number is stored. * Value is increased automatically by 1 after the new entry has been added. * @param nodeID unique numerical identifier of the current node for which this footnote * is created. Used to create a unique name for the hyperlink. ** @return current footnote number after the new entry has been added */ static size_t createHTMLFootnote(ostream &docStream, ostream &footnoteStream, size_t &footnoteNumber, const size_t nodeID); /** append one output stream to another. ** @param mainStream stream to which the other should be added * @param tempStream (string) stream to be added to the other * @param heading (optional) string which is added to the 'mainStream' before the 'tempStream'. * This string is only added if 'tempStream' is not empty. ** @return status, EC_Normal if stream has been added successfully, an error code otherwise */ static OFCondition appendStream(ostream &mainStream, OFOStringStream &tempStream, const char *heading = NULL);};#endif/* * CVS/RCS Log: * $Log: dsrtypes.h,v $ * Revision 1.46 2005/12/08 16:05:30 meichel * Changed include path schema for all DCMTK header files * * Revision 1.45 2005/11/30 12:00:24 joergr * Added support for X-Ray Radiation Dose SR documents. * * Revision 1.44 2004/11/29 17:11:01 joergr * Added warning message when character set is unknown, unsupported or cannot * be mapped to the output format. Fixed minor formatting issues. * * Revision 1.43 2004/11/22 16:35:38 meichel * Added helper methods to check strings and DICOM elements for presence of * extended (non-ASCII) characters * * Revision 1.42 2004/09/09 14:01:30 joergr * Added flags to control the way the template identification is encoded in * writeXML() and expected in readXML(). * * Revision 1.41 2004/01/20 15:35:54 joergr * Added new command line option which allows to write the item identifier "id" * (XML attribute) even if it is not required (because the item is not referenced * by any other item). Useful for debugging purposes. * * Revision 1.40 2004/01/05 14:36:02 joergr * Removed acknowledgements with e-mail addresses from CVS log. * * Revision 1.39 2003/12/01 15:46:18 joergr * Changed XML encoding of by-reference relationships if flag * XF_valueTypeAsAttribute is set. * * Revision 1.38 2003/10/30 17:51:00 joergr * Added new command line options which allow to print/write the template * identification of a content item. * * Revision 1.37 2003/10/09 12:53:12 joergr * Added support for Procedure Log. * * Revision 1.36 2003/10/06 09:52:58 joergr * Added new flag which allows to ignore content item errors when reading an SR * document (e.g. missing value type specific attributes). * * Revision 1.35 2003/09/15 14:18:54 joergr * Introduced new class to facilitate checking of SR IOD relationship content * constraints. Replaced old implementation distributed over numerous classes. * * Revision 1.34 2003/09/10 13:16:13 joergr * Replaced PrivateCodingSchemeUID by new CodingSchemeIdenticationSequence as * required by CP 324. * * Revision 1.33 2003/08/07 17:31:00 joergr * Removed libxml dependency from header files. Simplifies linking (MSVC). * * Revision 1.32 2003/08/07 13:05:26 joergr * Added readXML functionality. Added support for Chest CAD SR. * Added new option --add-schema-reference to command line tool dsr2xml. * Renamed parameters/variables "string" to avoid name clash with STL class. * * Revision 1.31 2003/04/17 18:57:38 joergr * Replace LF and CR by and in XML mode instead of ¶ (para). * * Revision 1.30 2003/04/01 14:59:13 joergr * Added support for XML namespaces. * * Revision 1.29 2002/08/02 12:38:32 joergr * Enhanced debug output of dcmsr::read() routines (e.g. add position string * of invalid content items to error messages). * * Revision 1.28 2002/07/22 14:21:20 joergr * Added new print flag to suppress the output of general document information. * * Revision 1.27 2002/05/14 08:14:51 joergr * Updated comments. * * Revision 1.26 2002/05/07 12:49:32 joergr * Added support for the Current Requested Procedure Evidence Sequence and the * Pertinent Other Evidence Sequence to the dcmsr module. * * Revision 1.25 2002/05/02 14:08:23 joergr * Added support for standard and non-standard string streams (which one is * supported is detected automatically via the configure mechanism). * * Revision 1.24 2002/04/16 13:50:52 joergr * Added configurable support for C++ ANSI standard includes (e.g. streams). * * Revision 1.23 2002/04/11 13:02:35 joergr * Corrected typo and/or enhanced documentation. * * Revision 1.22 2001/11/09 16:10:54 joergr * Added preliminary support for Mammography CAD SR. * * Revision 1.21 2001/10/10 15:28:04 joergr * Changed parameter DcmTagKey to DcmTag in DcmItem::putAndInsert... methods * to support elements which are not in the data dictionary (e.g. private * extensions). * * Revision 1.20 2001/10/02 12:05:46 joergr * Adapted module "dcmsr" to the new class OFCondition. Introduced module * specific error codes. * * Revision 1.19 2001/10/01 15:06:54 joergr * Introduced new general purpose functions to get/set person names, date, time * and date/time. * * Revision 1.18 2001/09/26 13:04:14 meichel * Adapted dcmsr to class OFCondition * * Revision 1.17 2001/06/20 15:03:00 joergr * Added minimal support for new SOP class Key Object Selection Document * (suppl. 59). * Added new debugging features (additional flags) to examine "corrupted" SR * documents. * * Revision 1.16 2001/04/03 08:24:00 joergr * Added new command line option: ignore relationship content constraints * specified for each SR document class. * * Revision 1.15 2001/02/13 16:36:05 joergr * Allow newline characters (encoded as ¶) in XML documents. * * Revision 1.14 2001/02/02 14:37:33 joergr * Added new option to dsr2xml allowing to specify whether value and/or * relationship type are to be encoded as XML attributes or elements. * * Revision 1.13 2001/01/25 11:47:43 joergr * Always remove signature sequences from certain dataset sequences (e.g. * VerifyingObserver or PredecessorDocuments). * * Revision 1.12 2001/01/18 15:52:11 joergr * Encode PN components in separate XML tags. * * Revision 1.11 2000/12/08 13:45:17 joergr * Removed optional fractional second part from time value. * * Revision 1.10 2000/11/09 20:32:08 joergr * Added support for non-ASCII characters in HTML 3.2 (use numeric value). * * Revision 1.9 2000/11/09 11:31:46 joergr * Reordered renderHTML flags (internal flags to the end). * * Revision 1.8 2000/11/07 18:14:05 joergr * Added new command line option allowing to choose code value or meaning to be * rendered as the numeric measurement unit. * Enhanced rendered HTML output of date, time, datetime and pname. * * Revision 1.7 2000/11/06 11:21:04 joergr * Changes structure of HTML hyperlinks to composite objects (now using pseudo * CGI script). * * Revision 1.6 2000/11/01 16:18:34 joergr * Added support for conversion to XML. * Added support for Cascading Style Sheet (CSS) used optionally for HTML * rendering. * Enhanced support for specific character sets. * * Revision 1.5 2000/10/26 14:22:09 joergr * Added support for "Comprehensive SR". * Added support for TCOORD content item. * Added new flag specifying whether to add a "dcmtk" footnote to the rendered * HTML document or not. * Added check routine for valid UID strings. * * Revision 1.4 2000/10/18 17:10:25 joergr * Added new method allowing to get and check string values from dataset. * * Revision 1.3 2000/10/16 16:31:09 joergr * Updated comments. * * Revision 1.2 2000/10/16 11:52:58 joergr * Added new options: number nested items instead of indenting them, print SOP * instance UID of referenced composite objects. * * Revision 1.1 2000/10/13 07:49:35 joergr * Added new module 'dcmsr' providing access to DICOM structured reporting * documents (supplement 23). Doc++ documentation not yet completed. * * */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -