OFFIS DCMTK  Version 3.6.0
dcvrut.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: Andrew Hewett
17  *
18  * Purpose: Interface of class DcmUnlimitedText
19  * Value Representation UT is defined in Correction Proposal 101
20  *
21  * Last Update: $Author: joergr $
22  * Update Date: $Date: 2010-10-14 13:15:43 $
23  * CVS/RCS Revision: $Revision: 1.16 $
24  * Status: $State: Exp $
25  *
26  * CVS/RCS Log at end of file
27  *
28  */
29 
30 
31 #ifndef DCVRUT_H
32 #define DCVRUT_H
33 
34 #include "dcmtk/config/osconfig.h" /* make sure OS specific configuration is included first */
35 
36 #include "dcmtk/dcmdata/dctypes.h"
37 #include "dcmtk/dcmdata/dcchrstr.h"
38 
39 
43  : public DcmCharString
44 {
45 
46  public:
47 
52  DcmUnlimitedText(const DcmTag &tag,
53  const Uint32 len = 0);
54 
59 
61  virtual ~DcmUnlimitedText();
62 
67 
71  virtual DcmObject *clone() const
72  {
73  return new DcmUnlimitedText(*this);
74  }
75 
88  virtual OFCondition copyFrom(const DcmObject& rhs);
89 
96  virtual DcmEVR ident() const;
97 
103  virtual OFCondition checkValue(const OFString &vm = "",
104  const OFBool oldFormat = OFFalse);
105 
111  virtual unsigned long getVM();
112 
119  virtual OFCondition getOFString(OFString &stringVal,
120  const unsigned long pos,
121  OFBool normalize = OFTrue);
122 
128  virtual OFCondition getOFStringArray(OFString &stringVal,
129  OFBool normalize = OFTrue);
130 
131  /* --- static helper functions --- */
132 
137  static OFCondition checkStringValue(const OFString &value);
138 };
139 
140 
141 #endif // DCVRUT_H
142 
143 
144 /*
145 ** CVS/RCS Log:
146 ** $Log: dcvrut.h,v $
147 ** Revision 1.16 2010-10-14 13:15:43 joergr
148 ** Updated copyright header. Added reference to COPYRIGHT file.
149 **
150 ** Revision 1.15 2010-04-23 15:26:13 joergr
151 ** Specify an appropriate default value for the "vm" parameter of checkValue().
152 **
153 ** Revision 1.14 2010-04-23 14:25:27 joergr
154 ** Added new method to all VR classes which checks whether the stored value
155 ** conforms to the VR definition and to the specified VM.
156 **
157 ** Revision 1.13 2009-08-03 09:05:30 joergr
158 ** Added methods that check whether a given string value conforms to the VR and
159 ** VM definitions of the DICOM standards.
160 **
161 ** Revision 1.12 2008-07-17 11:19:49 onken
162 ** Updated copyFrom() documentation.
163 **
164 ** Revision 1.11 2008-07-17 10:30:24 onken
165 ** Implemented copyFrom() method for complete DcmObject class hierarchy, which
166 ** permits setting an instance's value from an existing object. Implemented
167 ** assignment operator where necessary.
168 **
169 ** Revision 1.10 2007-11-29 14:30:35 meichel
170 ** Updated doxygen API documentation
171 **
172 ** Revision 1.9 2005/12/08 16:29:16 meichel
173 ** Changed include path schema for all DCMTK header files
174 **
175 ** Revision 1.8 2004/07/01 12:28:25 meichel
176 ** Introduced virtual clone method for DcmObject and derived classes.
177 **
178 ** Revision 1.7 2002/12/06 12:49:21 joergr
179 ** Enhanced "print()" function by re-working the implementation and replacing
180 ** the boolean "showFullData" parameter by a more general integer flag.
181 ** Added doc++ documentation.
182 ** Made source code formatting more consistent with other modules/files.
183 **
184 ** Revision 1.6 2001/09/25 17:19:36 meichel
185 ** Adapted dcmdata to class OFCondition
186 **
187 ** Revision 1.5 2001/06/01 15:48:55 meichel
188 ** Updated copyright header
189 **
190 ** Revision 1.4 2000/03/08 16:26:28 meichel
191 ** Updated copyright header.
192 **
193 ** Revision 1.3 1999/03/31 09:25:12 meichel
194 ** Updated copyright header in module dcmdata
195 **
196 ** Revision 1.2 1998/11/12 16:47:58 meichel
197 ** Implemented operator= for all classes derived from DcmObject.
198 **
199 ** Revision 1.1 1998/01/19 13:19:40 hewett
200 ** Initial version.
201 **
202 */


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