00001 /* 00002 * 00003 * Copyright (C) 1994-2005, 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: meichel $ 00025 * Update Date: $Date: 2005/12/08 16:29:12 $ 00026 * Source File: $Source: /share/dicom/cvs-depot/dcmtk/dcmdata/include/dcmtk/dcmdata/dcvrui.h,v $ 00027 * CVS/RCS Revision: $Revision: 1.20 $ 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 "dcmtk/config/osconfig.h" /* make sure OS specific configuration is included first */ 00038 00039 #include "dcmtk/dcmdata/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 DcmObject *clone() const 00077 { 00078 return new DcmUniqueIdentifier(*this); 00079 } 00080 00084 virtual DcmEVR ident() const; 00085 00098 virtual void print(ostream &out, 00099 const size_t flags = 0, 00100 const int level = 0, 00101 const char *pixelFileName = NULL, 00102 size_t *pixelCounter = NULL); 00103 00112 virtual OFCondition putString(const char *stringVal); 00113 00114 00115 protected: 00116 00123 virtual OFCondition makeMachineByteString(); 00124 }; 00125 00126 00127 #endif // DCVRUI_H 00128 00129 00130 /* 00131 ** CVS/RCS Log: 00132 ** $Log: dcvrui.h,v $ 00133 ** Revision 1.20 2005/12/08 16:29:12 meichel 00134 ** Changed include path schema for all DCMTK header files 00135 ** 00136 ** Revision 1.19 2004/07/01 12:28:25 meichel 00137 ** Introduced virtual clone method for DcmObject and derived classes. 00138 ** 00139 ** Revision 1.18 2002/12/06 12:49:19 joergr 00140 ** Enhanced "print()" function by re-working the implementation and replacing 00141 ** the boolean "showFullData" parameter by a more general integer flag. 00142 ** Added doc++ documentation. 00143 ** Made source code formatting more consistent with other modules/files. 00144 ** 00145 ** Revision 1.17 2002/04/25 10:01:21 joergr 00146 ** Made makeMachineByteString() virtual to avoid ambiguities. 00147 ** 00148 ** Revision 1.16 2001/09/25 17:19:35 meichel 00149 ** Adapted dcmdata to class OFCondition 00150 ** 00151 ** Revision 1.15 2001/06/01 15:48:53 meichel 00152 ** Updated copyright header 00153 ** 00154 ** Revision 1.14 2000/04/14 15:31:35 meichel 00155 ** Removed default value from output stream passed to print() method. 00156 ** Required for use in multi-thread environments. 00157 ** 00158 ** Revision 1.13 2000/03/08 16:26:27 meichel 00159 ** Updated copyright header. 00160 ** 00161 ** Revision 1.12 2000/03/03 14:05:28 meichel 00162 ** Implemented library support for redirecting error messages into memory 00163 ** instead of printing them to stdout/stderr for GUI applications. 00164 ** 00165 ** Revision 1.11 2000/02/10 10:50:56 joergr 00166 ** Added new feature to dcmdump (enhanced print method of dcmdata): write 00167 ** pixel data/item value fields to raw files. 00168 ** 00169 ** Revision 1.10 1999/03/31 09:25:09 meichel 00170 ** Updated copyright header in module dcmdata 00171 ** 00172 ** Revision 1.9 1998/11/12 16:47:56 meichel 00173 ** Implemented operator= for all classes derived from DcmObject. 00174 ** 00175 ** Revision 1.8 1997/07/21 08:25:16 andreas 00176 ** - Replace all boolean types (BOOLEAN, CTNBOOLEAN, DICOM_BOOL, BOOL) 00177 ** with one unique boolean type OFBool. 00178 ** 00179 ** Revision 1.7 1997/04/18 08:13:33 andreas 00180 ** - The put/get-methods for all VRs did not conform to the C++-Standard 00181 ** draft. Some Compilers (e.g. SUN-C++ Compiler, Metroworks 00182 ** CodeWarrier, etc.) create many warnings concerning the hiding of 00183 ** overloaded get methods in all derived classes of DcmElement. 00184 ** So the interface of all value representation classes in the 00185 ** library are changed rapidly, e.g. 00186 ** OFCondition get(Uint16 & value, const unsigned long pos); 00187 ** becomes 00188 ** OFCondition getUint16(Uint16 & value, const unsigned long pos); 00189 ** All (retired) "returntype get(...)" methods are deleted. 00190 ** For more information see dcmdata/include/dcelem.h 00191 ** 00192 ** Revision 1.6 1996/08/05 08:45:38 andreas 00193 ** new print routine with additional parameters: 00194 ** - print into files 00195 ** - fix output length for elements 00196 ** corrected error in search routine with parameter ESM_fromStackTop 00197 ** 00198 ** Revision 1.5 1996/05/30 17:19:22 hewett 00199 ** Added a makeMachineByteString() method to strip and trailing whitespace 00200 ** from a UID. 00201 ** 00202 ** Revision 1.4 1996/01/29 13:38:18 andreas 00203 ** - new put method for every VR to put value as a string 00204 ** - better and unique print methods 00205 ** 00206 ** Revision 1.3 1996/01/05 13:23:10 andreas 00207 ** - changed to support new streaming facilities 00208 ** - more cleanups 00209 ** - merged read / write methods for block and file transfer 00210 ** 00211 ** 00212 ** 00213 */ 00214