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 DcmLongText 00023 * 00024 * Last Update: $Author: meichel $ 00025 * Update Date: $Date: 2005/12/08 16:29:02 $ 00026 * Source File: $Source: /share/dicom/cvs-depot/dcmtk/dcmdata/include/dcmtk/dcmdata/dcvrlt.h,v $ 00027 * CVS/RCS Revision: $Revision: 1.13 $ 00028 * Status: $State: Exp $ 00029 * 00030 * CVS/RCS Log at end of file 00031 * 00032 */ 00033 00034 #ifndef DCVRLT_H 00035 #define DCVRLT_H 00036 00037 #include "dcmtk/config/osconfig.h" /* make sure OS specific configuration is included first */ 00038 00039 #include "dcmtk/dcmdata/dctypes.h" 00040 #include "dcmtk/dcmdata/dcchrstr.h" 00041 00042 00045 class DcmLongText 00046 : public DcmCharString 00047 { 00048 public: 00049 00055 DcmLongText(const DcmTag &tag, 00056 const Uint32 len = 0); 00057 00061 DcmLongText(const DcmLongText &old); 00062 00065 virtual ~DcmLongText(); 00066 00071 DcmLongText &operator=(const DcmLongText &obj); 00072 00076 virtual DcmObject *clone() const 00077 { 00078 return new DcmLongText(*this); 00079 } 00080 00084 virtual DcmEVR ident() const; 00085 00091 virtual unsigned long getVM(); 00092 00099 virtual OFCondition getOFString(OFString &stringVal, 00100 const unsigned long pos, 00101 OFBool normalize = OFTrue); 00102 00108 virtual OFCondition getOFStringArray(OFString &stringVal, 00109 OFBool normalize = OFTrue); 00110 }; 00111 00112 00113 #endif // DCVRLT_H 00114 00115 00116 /* 00117 ** CVS/RCS Log: 00118 ** $Log: dcvrlt.h,v $ 00119 ** Revision 1.13 2005/12/08 16:29:02 meichel 00120 ** Changed include path schema for all DCMTK header files 00121 ** 00122 ** Revision 1.12 2004/07/01 12:28:25 meichel 00123 ** Introduced virtual clone method for DcmObject and derived classes. 00124 ** 00125 ** Revision 1.11 2002/12/06 12:49:17 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.10 2001/09/25 17:19:32 meichel 00132 ** Adapted dcmdata to class OFCondition 00133 ** 00134 ** Revision 1.9 2001/06/01 15:48:51 meichel 00135 ** Updated copyright header 00136 ** 00137 ** Revision 1.8 2000/03/08 16:26:24 meichel 00138 ** Updated copyright header. 00139 ** 00140 ** Revision 1.7 1999/03/31 09:25:03 meichel 00141 ** Updated copyright header in module dcmdata 00142 ** 00143 ** Revision 1.6 1998/11/12 16:47:51 meichel 00144 ** Implemented operator= for all classes derived from DcmObject. 00145 ** 00146 ** Revision 1.5 1997/09/11 15:13:15 hewett 00147 ** Modified getOFString method arguments by removing a default value 00148 ** for the pos argument. By requiring the pos argument to be provided 00149 ** ensures that callers realise getOFString only gets one component of 00150 ** a multi-valued string. 00151 ** 00152 ** Revision 1.4 1997/08/29 08:32:43 andreas 00153 ** - Added methods getOFString and getOFStringArray for all 00154 ** string VRs. These methods are able to normalise the value, i. e. 00155 ** to remove leading and trailing spaces. This will be done only if 00156 ** it is described in the standard that these spaces are not relevant. 00157 ** These methods do not test the strings for conformance, this means 00158 ** especially that they do not delete spaces where they are not allowed! 00159 ** getOFStringArray returns the string with all its parts separated by \ 00160 ** and getOFString returns only one value of the string. 00161 ** CAUTION: Currently getString returns a string with trailing 00162 ** spaces removed (if dcmEnableAutomaticInputDataCorrection == OFTrue) and 00163 ** truncates the original string (since it is not copied!). If you rely on this 00164 ** behaviour please change your application now. 00165 ** Future changes will ensure that getString returns the original 00166 ** string from the DICOM object (NULL terminated) inclusive padding. 00167 ** Currently, if you call getOF... before calling getString without 00168 ** normalisation, you can get the original string read from the DICOM object. 00169 ** 00170 ** Revision 1.3 1996/01/05 13:23:07 andreas 00171 ** - changed to support new streaming facilities 00172 ** - more cleanups 00173 ** - merged read / write methods for block and file transfer 00174 ** 00175 */