dcmdata/include/dcvrui.h

00001 /* 00002 * 00003 * Copyright (C) 1994-2002, OFFIS 00004 * 00005 * This software and supporting documentation were developed by 00006 * 00007 * Kuratorium OFFIS e.V. 00008 * Healthcare Information and Communication Systems 00009 * Escherweg 2 00010 * D-26121 Oldenburg, Germany 00011 * 00012 * THIS SOFTWARE IS MADE AVAILABLE, AS IS, AND OFFIS MAKES NO WARRANTY 00013 * REGARDING THE SOFTWARE, ITS PERFORMANCE, ITS MERCHANTABILITY OR 00014 * FITNESS FOR ANY PARTICULAR USE, FREEDOM FROM ANY COMPUTER DISEASES OR 00015 * ITS CONFORMITY TO ANY SPECIFICATION. THE ENTIRE RISK AS TO QUALITY AND 00016 * PERFORMANCE OF THE SOFTWARE IS WITH THE USER. 00017 * 00018 * Module: dcmdata 00019 * 00020 * Author: Gerd Ehlers, Andreas Barth 00021 * 00022 * Purpose: Interface of class DcmUniqueIdentifier 00023 * 00024 * Last Update: $Author: joergr $ 00025 * Update Date: $Date: 2002/12/06 12:49:19 $ 00026 * Source File: $Source: /share/dicom/cvs-depot/dcmtk/dcmdata/include/dcvrui.h,v $ 00027 * CVS/RCS Revision: $Revision: 1.18 $ 00028 * Status: $State: Exp $ 00029 * 00030 * CVS/RCS Log at end of file 00031 * 00032 */ 00033 00034 #ifndef DCVRUI_H 00035 #define DCVRUI_H 00036 00037 #include "osconfig.h" /* make sure OS specific configuration is included first */ 00038 00039 #include "dcbytstr.h" 00040 00041 00044 class DcmUniqueIdentifier 00045 : public DcmByteString 00046 { 00047 00048 public: 00049 00055 DcmUniqueIdentifier(const DcmTag &tag, 00056 const Uint32 len = 0); 00057 00061 DcmUniqueIdentifier(const DcmUniqueIdentifier &old); 00062 00065 virtual ~DcmUniqueIdentifier(); 00066 00071 DcmUniqueIdentifier &operator=(const DcmUniqueIdentifier &obj); 00072 00076 virtual DcmEVR ident() const; 00077 00090 virtual void print(ostream &out, 00091 const size_t flags = 0, 00092 const int level = 0, 00093 const char *pixelFileName = NULL, 00094 size_t *pixelCounter = NULL); 00095 00104 virtual OFCondition putString(const char *stringVal); 00105 00106 00107 protected: 00108 00115 virtual OFCondition makeMachineByteString(); 00116 }; 00117 00118 00119 #endif // DCVRUI_H 00120 00121 00122 /* 00123 ** CVS/RCS Log: 00124 ** $Log: dcvrui.h,v $ 00125 ** Revision 1.18 2002/12/06 12:49:19 joergr 00126 ** Enhanced "print()" function by re-working the implementation and replacing 00127 ** the boolean "showFullData" parameter by a more general integer flag. 00128 ** Added doc++ documentation. 00129 ** Made source code formatting more consistent with other modules/files. 00130 ** 00131 ** Revision 1.17 2002/04/25 10:01:21 joergr 00132 ** Made makeMachineByteString() virtual to avoid ambiguities. 00133 ** 00134 ** Revision 1.16 2001/09/25 17:19:35 meichel 00135 ** Adapted dcmdata to class OFCondition 00136 ** 00137 ** Revision 1.15 2001/06/01 15:48:53 meichel 00138 ** Updated copyright header 00139 ** 00140 ** Revision 1.14 2000/04/14 15:31:35 meichel 00141 ** Removed default value from output stream passed to print() method. 00142 ** Required for use in multi-thread environments. 00143 ** 00144 ** Revision 1.13 2000/03/08 16:26:27 meichel 00145 ** Updated copyright header. 00146 ** 00147 ** Revision 1.12 2000/03/03 14:05:28 meichel 00148 ** Implemented library support for redirecting error messages into memory 00149 ** instead of printing them to stdout/stderr for GUI applications. 00150 ** 00151 ** Revision 1.11 2000/02/10 10:50:56 joergr 00152 ** Added new feature to dcmdump (enhanced print method of dcmdata): write 00153 ** pixel data/item value fields to raw files. 00154 ** 00155 ** Revision 1.10 1999/03/31 09:25:09 meichel 00156 ** Updated copyright header in module dcmdata 00157 ** 00158 ** Revision 1.9 1998/11/12 16:47:56 meichel 00159 ** Implemented operator= for all classes derived from DcmObject. 00160 ** 00161 ** Revision 1.8 1997/07/21 08:25:16 andreas 00162 ** - Replace all boolean types (BOOLEAN, CTNBOOLEAN, DICOM_BOOL, BOOL) 00163 ** with one unique boolean type OFBool. 00164 ** 00165 ** Revision 1.7 1997/04/18 08:13:33 andreas 00166 ** - The put/get-methods for all VRs did not conform to the C++-Standard 00167 ** draft. Some Compilers (e.g. SUN-C++ Compiler, Metroworks 00168 ** CodeWarrier, etc.) create many warnings concerning the hiding of 00169 ** overloaded get methods in all derived classes of DcmElement. 00170 ** So the interface of all value representation classes in the 00171 ** library are changed rapidly, e.g. 00172 ** OFCondition get(Uint16 & value, const unsigned long pos); 00173 ** becomes 00174 ** OFCondition getUint16(Uint16 & value, const unsigned long pos); 00175 ** All (retired) "returntype get(...)" methods are deleted. 00176 ** For more information see dcmdata/include/dcelem.h 00177 ** 00178 ** Revision 1.6 1996/08/05 08:45:38 andreas 00179 ** new print routine with additional parameters: 00180 ** - print into files 00181 ** - fix output length for elements 00182 ** corrected error in search routine with parameter ESM_fromStackTop 00183 ** 00184 ** Revision 1.5 1996/05/30 17:19:22 hewett 00185 ** Added a makeMachineByteString() method to strip and trailing whitespace 00186 ** from a UID. 00187 ** 00188 ** Revision 1.4 1996/01/29 13:38:18 andreas 00189 ** - new put method for every VR to put value as a string 00190 ** - better and unique print methods 00191 ** 00192 ** Revision 1.3 1996/01/05 13:23:10 andreas 00193 ** - changed to support new streaming facilities 00194 ** - more cleanups 00195 ** - merged read / write methods for block and file transfer 00196 ** 00197 ** 00198 ** 00199 */ 00200


Generated on 4 Nov 2004 for OFFIS DCMTK Version 3.5.3 by Doxygen 1.3.8