OFFIS DCMTK  Version 3.6.0
dcvras.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 DcmAgeString
19  *
20  * Last Update: $Author: joergr $
21  * Update Date: $Date: 2010-11-05 09:34:11 $
22  * CVS/RCS Revision: $Revision: 1.19 $
23  * Status: $State: Exp $
24  *
25  * CVS/RCS Log at end of file
26  *
27  */
28 
29 
30 #ifndef DCVRAS_H
31 #define DCVRAS_H
32 
33 #include "dcmtk/config/osconfig.h" /* make sure OS specific configuration is included first */
34 
35 #include "dcmtk/dcmdata/dcbytstr.h"
36 
37 
41  : public DcmByteString
42 {
43 
44  public:
45 
51  DcmAgeString(const DcmTag &tag,
52  const Uint32 len = 0);
53 
57  DcmAgeString(const DcmAgeString &old);
58 
61  virtual ~DcmAgeString(void);
62 
67  DcmAgeString &operator=(const DcmAgeString &obj);
68 
72  virtual DcmObject *clone() const
73  {
74  return new DcmAgeString(*this);
75  }
76 
89  virtual OFCondition copyFrom(const DcmObject& rhs);
90 
94  virtual DcmEVR ident(void) const;
95 
103  virtual OFCondition checkValue(const OFString &vm = "1-n",
104  const OFBool oldFormat = OFFalse);
105 
106  /* --- static helper functions --- */
107 
116  static OFCondition checkStringValue(const OFString &value,
117  const OFString &vm = "1-n");
118 };
119 
120 
121 #endif // DCVRAS_H
122 
123 
124 /*
125 ** CVS/RCS Log:
126 ** $Log: dcvras.h,v $
127 ** Revision 1.19 2010-11-05 09:34:11 joergr
128 ** Added support for checking the value multiplicity "9" (see Supplement 131).
129 **
130 ** Revision 1.18 2010-10-14 13:15:42 joergr
131 ** Updated copyright header. Added reference to COPYRIGHT file.
132 **
133 ** Revision 1.17 2010-04-23 15:26:12 joergr
134 ** Specify an appropriate default value for the "vm" parameter of checkValue().
135 **
136 ** Revision 1.16 2010-04-23 14:25:27 joergr
137 ** Added new method to all VR classes which checks whether the stored value
138 ** conforms to the VR definition and to the specified VM.
139 **
140 ** Revision 1.15 2010-04-22 09:31:30 joergr
141 ** Revised misleading parameter documentation for the checkValue() method.
142 **
143 ** Revision 1.14 2010-04-22 08:59:10 joergr
144 ** Added support for further VM values ("1-8", "1-99", "16", "32") to be checked.
145 **
146 ** Revision 1.13 2009-08-03 09:05:30 joergr
147 ** Added methods that check whether a given string value conforms to the VR and
148 ** VM definitions of the DICOM standards.
149 **
150 ** Revision 1.12 2008-07-17 11:19:49 onken
151 ** Updated copyFrom() documentation.
152 **
153 ** Revision 1.11 2008-07-17 10:30:23 onken
154 ** Implemented copyFrom() method for complete DcmObject class hierarchy, which
155 ** permits setting an instance's value from an existing object. Implemented
156 ** assignment operator where necessary.
157 **
158 ** Revision 1.10 2005-12-08 16:28:52 meichel
159 ** Changed include path schema for all DCMTK header files
160 **
161 ** Revision 1.9 2004/07/01 12:28:25 meichel
162 ** Introduced virtual clone method for DcmObject and derived classes.
163 **
164 ** Revision 1.8 2002/12/06 12:49:13 joergr
165 ** Enhanced "print()" function by re-working the implementation and replacing
166 ** the boolean "showFullData" parameter by a more general integer flag.
167 ** Added doc++ documentation.
168 ** Made source code formatting more consistent with other modules/files.
169 **
170 ** Revision 1.7 2001/06/01 15:48:48 meichel
171 ** Updated copyright header
172 **
173 ** Revision 1.6 2000/03/08 16:26:21 meichel
174 ** Updated copyright header.
175 **
176 ** Revision 1.5 1999/03/31 09:24:55 meichel
177 ** Updated copyright header in module dcmdata
178 **
179 ** Revision 1.4 1998/11/12 16:47:45 meichel
180 ** Implemented operator= for all classes derived from DcmObject.
181 **
182 ** Revision 1.3 1996/01/05 13:23:02 andreas
183 ** - changed to support new streaming facilities
184 ** - more cleanups
185 ** - merged read / write methods for block and file transfer
186 **
187 */


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