OFFIS DCMTK  Version 3.6.0
dcvrlt.h
1 /*
2  *
3  * Copyright (C) 1994-2010, OFFIS e.V.
4  * All rights reserved. See COPYRIGHT file for details.
5  *
6  * This software and supporting documentation were developed by
7  *
8  * OFFIS e.V.
9  * R&D Division Health
10  * Escherweg 2
11  * D-26121 Oldenburg, Germany
12  *
13  *
14  * Module: dcmdata
15  *
16  * Author: Gerd Ehlers, Andreas Barth
17  *
18  * Purpose: Interface of class DcmLongText
19  *
20  * Last Update: $Author: joergr $
21  * Update Date: $Date: 2010-10-14 13:15:43 $
22  * CVS/RCS Revision: $Revision: 1.20 $
23  * Status: $State: Exp $
24  *
25  * CVS/RCS Log at end of file
26  *
27  */
28 
29 #ifndef DCVRLT_H
30 #define DCVRLT_H
31 
32 #include "dcmtk/config/osconfig.h" /* make sure OS specific configuration is included first */
33 
34 #include "dcmtk/dcmdata/dcchrstr.h"
35 
36 
40  : public DcmCharString
41 {
42  public:
43 
49  DcmLongText(const DcmTag &tag,
50  const Uint32 len = 0);
51 
55  DcmLongText(const DcmLongText &old);
56 
59  virtual ~DcmLongText();
60 
65  DcmLongText &operator=(const DcmLongText &obj);
66 
70  virtual DcmObject *clone() const
71  {
72  return new DcmLongText(*this);
73  }
74 
87  virtual OFCondition copyFrom(const DcmObject& rhs);
88 
92  virtual DcmEVR ident() const;
93 
99  virtual OFCondition checkValue(const OFString &vm = "",
100  const OFBool oldFormat = OFFalse);
101 
107  virtual unsigned long getVM();
108 
115  virtual OFCondition getOFString(OFString &stringVal,
116  const unsigned long pos,
117  OFBool normalize = OFTrue);
118 
124  virtual OFCondition getOFStringArray(OFString &stringVal,
125  OFBool normalize = OFTrue);
126 
127  /* --- static helper functions --- */
128 
133  static OFCondition checkStringValue(const OFString &value);
134 };
135 
136 
137 #endif // DCVRLT_H
138 
139 
140 /*
141 ** CVS/RCS Log:
142 ** $Log: dcvrlt.h,v $
143 ** Revision 1.20 2010-10-14 13:15:43 joergr
144 ** Updated copyright header. Added reference to COPYRIGHT file.
145 **
146 ** Revision 1.19 2010-04-23 15:26:13 joergr
147 ** Specify an appropriate default value for the "vm" parameter of checkValue().
148 **
149 ** Revision 1.18 2010-04-23 14:25:27 joergr
150 ** Added new method to all VR classes which checks whether the stored value
151 ** conforms to the VR definition and to the specified VM.
152 **
153 ** Revision 1.17 2010-03-01 09:08:45 uli
154 ** Removed some unnecessary include directives in the headers.
155 **
156 ** Revision 1.16 2009-08-03 09:05:30 joergr
157 ** Added methods that check whether a given string value conforms to the VR and
158 ** VM definitions of the DICOM standards.
159 **
160 ** Revision 1.15 2008-07-17 11:19:49 onken
161 ** Updated copyFrom() documentation.
162 **
163 ** Revision 1.14 2008-07-17 10:30:23 onken
164 ** Implemented copyFrom() method for complete DcmObject class hierarchy, which
165 ** permits setting an instance's value from an existing object. Implemented
166 ** assignment operator where necessary.
167 **
168 ** Revision 1.13 2005-12-08 16:29:02 meichel
169 ** Changed include path schema for all DCMTK header files
170 **
171 ** Revision 1.12 2004/07/01 12:28:25 meichel
172 ** Introduced virtual clone method for DcmObject and derived classes.
173 **
174 ** Revision 1.11 2002/12/06 12:49:17 joergr
175 ** Enhanced "print()" function by re-working the implementation and replacing
176 ** the boolean "showFullData" parameter by a more general integer flag.
177 ** Added doc++ documentation.
178 ** Made source code formatting more consistent with other modules/files.
179 **
180 ** Revision 1.10 2001/09/25 17:19:32 meichel
181 ** Adapted dcmdata to class OFCondition
182 **
183 ** Revision 1.9 2001/06/01 15:48:51 meichel
184 ** Updated copyright header
185 **
186 ** Revision 1.8 2000/03/08 16:26:24 meichel
187 ** Updated copyright header.
188 **
189 ** Revision 1.7 1999/03/31 09:25:03 meichel
190 ** Updated copyright header in module dcmdata
191 **
192 ** Revision 1.6 1998/11/12 16:47:51 meichel
193 ** Implemented operator= for all classes derived from DcmObject.
194 **
195 ** Revision 1.5 1997/09/11 15:13:15 hewett
196 ** Modified getOFString method arguments by removing a default value
197 ** for the pos argument. By requiring the pos argument to be provided
198 ** ensures that callers realise getOFString only gets one component of
199 ** a multi-valued string.
200 **
201 ** Revision 1.4 1997/08/29 08:32:43 andreas
202 ** - Added methods getOFString and getOFStringArray for all
203 ** string VRs. These methods are able to normalise the value, i. e.
204 ** to remove leading and trailing spaces. This will be done only if
205 ** it is described in the standard that these spaces are not relevant.
206 ** These methods do not test the strings for conformance, this means
207 ** especially that they do not delete spaces where they are not allowed!
208 ** getOFStringArray returns the string with all its parts separated by \
209 ** and getOFString returns only one value of the string.
210 ** CAUTION: Currently getString returns a string with trailing
211 ** spaces removed (if dcmEnableAutomaticInputDataCorrection == OFTrue) and
212 ** truncates the original string (since it is not copied!). If you rely on this
213 ** behaviour please change your application now.
214 ** Future changes will ensure that getString returns the original
215 ** string from the DICOM object (NULL terminated) inclusive padding.
216 ** Currently, if you call getOF... before calling getString without
217 ** normalisation, you can get the original string read from the DICOM object.
218 **
219 ** Revision 1.3 1996/01/05 13:23:07 andreas
220 ** - changed to support new streaming facilities
221 ** - more cleanups
222 ** - merged read / write methods for block and file transfer
223 **
224 */


Generated on Thu Dec 20 2012 for OFFIS DCMTK Version 3.6.0 by Doxygen 1.8.2