Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | Related Pages

dcvrst.h

00001 /*
00002  *
00003  *  Copyright (C) 1994-2002, 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
00021  *
00022  *  Purpose: Interface of class DcmShortText
00023  *
00024  *  Last Update:      $Author: joergr $
00025  *  Update Date:      $Date: 2002/12/06 12:49:19 $
00026  *  Source File:      $Source: /share/dicom/cvs-depot/dcmtk/dcmdata/include/dcvrst.h,v $
00027  *  CVS/RCS Revision: $Revision: 1.11 $
00028  *  Status:           $State: Exp $
00029  *
00030  *  CVS/RCS Log at end of file
00031  *
00032  */
00033 
00034 
00035 #ifndef DCVRST_H
00036 #define DCVRST_H
00037 
00038 #include "osconfig.h"    /* make sure OS specific configuration is included first */
00039 
00040 #include "dcchrstr.h"
00041 
00042 
00045 class DcmShortText
00046   : public DcmCharString
00047 {
00048   public:
00049 
00055     DcmShortText(const DcmTag &tag,
00056                  const Uint32 len = 0);
00057 
00061     DcmShortText(const DcmShortText &old );
00062 
00065     virtual ~DcmShortText();
00066 
00071     DcmShortText &operator=(const DcmShortText &obj);
00072 
00076     virtual DcmEVR ident() const;
00077 
00083     virtual unsigned long getVM();
00084 
00091     virtual OFCondition getOFString(OFString &stringVal,
00092                                     const unsigned long pos,
00093                                     OFBool normalize = OFTrue);
00094 
00100     virtual OFCondition getOFStringArray(OFString &stringVal,
00101                                          OFBool normalize = OFTrue);
00102 };
00103 
00104 
00105 #endif // DCVRST_H
00106 
00107 /*
00108 ** CVS/RCS Log:
00109 ** $Log: dcvrst.h,v $
00110 ** Revision 1.11  2002/12/06 12:49:19  joergr
00111 ** Enhanced "print()" function by re-working the implementation and replacing
00112 ** the boolean "showFullData" parameter by a more general integer flag.
00113 ** Added doc++ documentation.
00114 ** Made source code formatting more consistent with other modules/files.
00115 **
00116 ** Revision 1.10  2001/09/25 17:19:34  meichel
00117 ** Adapted dcmdata to class OFCondition
00118 **
00119 ** Revision 1.9  2001/06/01 15:48:53  meichel
00120 ** Updated copyright header
00121 **
00122 ** Revision 1.8  2000/03/08 16:26:26  meichel
00123 ** Updated copyright header.
00124 **
00125 ** Revision 1.7  1999/03/31 09:25:08  meichel
00126 ** Updated copyright header in module dcmdata
00127 **
00128 ** Revision 1.6  1998/11/12 16:47:55  meichel
00129 ** Implemented operator= for all classes derived from DcmObject.
00130 **
00131 ** Revision 1.5  1997/09/11 15:13:17  hewett
00132 ** Modified getOFString method arguments by removing a default value
00133 ** for the pos argument.  By requiring the pos argument to be provided
00134 ** ensures that callers realise getOFString only gets one component of
00135 ** a multi-valued string.
00136 **
00137 ** Revision 1.4  1997/08/29 08:32:44  andreas
00138 ** - Added methods getOFString and getOFStringArray for all
00139 **   string VRs. These methods are able to normalise the value, i. e.
00140 **   to remove leading and trailing spaces. This will be done only if
00141 **   it is described in the standard that these spaces are not relevant.
00142 **   These methods do not test the strings for conformance, this means
00143 **   especially that they do not delete spaces where they are not allowed!
00144 **   getOFStringArray returns the string with all its parts separated by \
00145 **   and getOFString returns only one value of the string.
00146 **   CAUTION: Currently getString returns a string with trailing
00147 **   spaces removed (if dcmEnableAutomaticInputDataCorrection == OFTrue) and
00148 **   truncates the original string (since it is not copied!). If you rely on this
00149 **   behaviour please change your application now.
00150 **   Future changes will ensure that getString returns the original
00151 **   string from the DICOM object (NULL terminated) inclusive padding.
00152 **   Currently, if you call getOF... before calling getString without
00153 **   normalisation, you can get the original string read from the DICOM object.
00154 **
00155 ** Revision 1.3  1996/01/05 13:23:10  andreas
00156 ** - changed to support new streaming facilities
00157 ** - more cleanups
00158 ** - merged read / write methods for block and file transfer
00159 **
00160 */


Generated on 26 Apr 2005 for OFFIS DCMTK Version 3.5.3 by Doxygen 1.4.2