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

dcvrobow.h

00001 /*
00002  *
00003  *  Copyright (C) 1994-2003, 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 DcmOtherByteOtherWord
00023  *
00024  *  Last Update:      $Author: meichel $
00025  *  Update Date:      $Date: 2003/07/09 12:13:13 $
00026  *  Source File:      $Source: /share/dicom/cvs-depot/dcmtk/dcmdata/include/dcvrobow.h,v $
00027  *  CVS/RCS Revision: $Revision: 1.24 $
00028  *  Status:           $State: Exp $
00029  *
00030  *  CVS/RCS Log at end of file
00031  *
00032  */
00033 
00034 
00035 #ifndef DCVROBOW_H
00036 #define DCVROBOW_H
00037 
00038 #include "osconfig.h"    /* make sure OS specific configuration is included first */
00039 #include "dcelem.h"
00040 
00041 
00045 class DcmOtherByteOtherWord
00046   : public DcmElement
00047 {
00048 
00049  public:
00050 
00056     DcmOtherByteOtherWord(const DcmTag &tag,
00057                           const Uint32 len = 0);
00058 
00062     DcmOtherByteOtherWord(const DcmOtherByteOtherWord &old);
00063 
00066     virtual ~DcmOtherByteOtherWord();
00067 
00072     DcmOtherByteOtherWord &operator=(const DcmOtherByteOtherWord &obj);
00073 
00077     virtual DcmEVR ident() const;
00078 
00082     virtual unsigned long getVM();
00083 
00090     virtual OFCondition setVR(DcmEVR vr);
00091 
00101     virtual void print(ostream &out,
00102                        const size_t flags = 0,
00103                        const int level = 0,
00104                        const char *pixelFileName = NULL,
00105                        size_t *pixelCounter = NULL);
00106 
00112     virtual OFBool canWriteXfer(const E_TransferSyntax newXfer,
00113                                 const E_TransferSyntax oldXfer);
00114 
00121     virtual OFCondition write(DcmOutputStream &outStream,
00122                               const E_TransferSyntax oxfer,
00123                               const E_EncodingType enctype = EET_UndefinedLength);
00124 
00130     virtual OFCondition writeXML(ostream &out,
00131                                  const size_t flags = 0);
00132 
00139     virtual OFCondition writeSignatureFormat(DcmOutputStream &outStream,
00140                                              const E_TransferSyntax oxfer,
00141                                              const E_EncodingType enctype = EET_UndefinedLength);
00142 
00149     virtual OFCondition getUint8(Uint8 &byteVal,
00150                                  const unsigned long pos = 0);
00151 
00158     virtual OFCondition getUint16(Uint16 &wordVal,
00159                                   const unsigned long pos = 0);
00160 
00166     virtual OFCondition getUint8Array(Uint8 *&byteVals);
00167 
00173     virtual OFCondition getUint16Array(Uint16 *&wordVals);
00174 
00184     virtual OFCondition getOFString(OFString &stringVal,
00185                                     const unsigned long pos,
00186                                     OFBool normalize = OFTrue);
00187 
00197     virtual OFCondition getOFStringArray(OFString &stringVal,
00198                                          OFBool normalize = OFTrue);
00199 
00206     virtual OFCondition putUint8Array(const Uint8 *byteValue,
00207                                       const unsigned long numBytes);
00208 
00216     virtual OFCondition putUint16Array(const Uint16 *wordValue,
00217                                        const unsigned long numWords);
00218 
00226     virtual OFCondition putString(const char *stringVal);
00227 
00232     virtual OFCondition verify(const OFBool autocorrect = OFFalse);
00233 
00234 
00235  protected:
00236 
00240     virtual void postLoadValue();
00241 
00245     OFCondition alignValue();
00246 
00255     void printPixel(ostream &out,
00256                     const size_t flags,
00257                     const int level,
00258                     const char *pixelFileName,
00259                     size_t *pixelCounter);
00260 };
00261 
00262 
00263 #endif // DCVROBOW_H
00264 
00265 
00266 /*
00267 ** CVS/RCS Log:
00268 ** $Log: dcvrobow.h,v $
00269 ** Revision 1.24  2003/07/09 12:13:13  meichel
00270 ** Included dcmodify in MSVC build system, updated headers
00271 **
00272 ** Revision 1.23  2003/06/12 13:29:28  joergr
00273 ** Fixed inconsistent API documentation reported by Doxygen.
00274 **
00275 ** Revision 1.22  2002/12/06 12:49:17  joergr
00276 ** Enhanced "print()" function by re-working the implementation and replacing
00277 ** the boolean "showFullData" parameter by a more general integer flag.
00278 ** Added doc++ documentation.
00279 ** Made source code formatting more consistent with other modules/files.
00280 **
00281 ** Revision 1.21  2002/08/27 16:55:40  meichel
00282 ** Initial release of new DICOM I/O stream classes that add support for stream
00283 **   compression (deflated little endian explicit VR transfer syntax)
00284 **
00285 ** Revision 1.20  2002/04/25 10:03:45  joergr
00286 ** Added getOFString() implementation.
00287 ** Added/modified getOFStringArray() implementation.
00288 ** Added support for XML output of DICOM objects.
00289 **
00290 ** Revision 1.19  2001/10/02 11:47:34  joergr
00291 ** Added getUint8/16 routines to class DcmOtherByteOtherWord.
00292 **
00293 ** Revision 1.18  2001/09/25 17:19:32  meichel
00294 ** Adapted dcmdata to class OFCondition
00295 **
00296 ** Revision 1.17  2001/06/01 15:48:51  meichel
00297 ** Updated copyright header
00298 **
00299 ** Revision 1.16  2000/11/07 16:56:10  meichel
00300 ** Initial release of dcmsign module for DICOM Digital Signatures
00301 **
00302 ** Revision 1.15  2000/04/14 15:31:34  meichel
00303 ** Removed default value from output stream passed to print() method.
00304 **   Required for use in multi-thread environments.
00305 **
00306 ** Revision 1.14  2000/03/08 16:26:24  meichel
00307 ** Updated copyright header.
00308 **
00309 ** Revision 1.13  2000/03/03 14:05:27  meichel
00310 ** Implemented library support for redirecting error messages into memory
00311 **   instead of printing them to stdout/stderr for GUI applications.
00312 **
00313 ** Revision 1.12  2000/02/10 10:50:55  joergr
00314 ** Added new feature to dcmdump (enhanced print method of dcmdata): write
00315 ** pixel data/item value fields to raw files.
00316 **
00317 ** Revision 1.11  1999/03/31 09:25:03  meichel
00318 ** Updated copyright header in module dcmdata
00319 **
00320 ** Revision 1.10  1998/11/12 16:47:51  meichel
00321 ** Implemented operator= for all classes derived from DcmObject.
00322 **
00323 ** Revision 1.9  1997/07/21 08:25:15  andreas
00324 ** - Replace all boolean types (BOOLEAN, CTNBOOLEAN, DICOM_BOOL, BOOL)
00325 **   with one unique boolean type OFBool.
00326 **
00327 ** Revision 1.8  1997/05/27 13:48:30  andreas
00328 ** - Add method canWriteXfer to class DcmObject and all derived classes.
00329 **   This method checks whether it is possible to convert the original
00330 **   transfer syntax to an new transfer syntax. The check is used in the
00331 **   dcmconv utility to prohibit the change of a compressed transfer
00332 **   syntax to a uncompressed.
00333 **
00334 ** Revision 1.7  1997/05/16 08:31:20  andreas
00335 ** - Revised handling of GroupLength elements and support of
00336 **   DataSetTrailingPadding elements. The enumeratio E_GrpLenEncoding
00337 **   got additional enumeration values (for a description see dctypes.h).
00338 **   addGroupLength and removeGroupLength methods are replaced by
00339 **   computeGroupLengthAndPadding. To support Padding, the parameters of
00340 **   element and sequence write functions changed.
00341 **
00342 ** Revision 1.6  1997/04/18 08:13:31  andreas
00343 ** - The put/get-methods for all VRs did not conform to the C++-Standard
00344 **   draft. Some Compilers (e.g. SUN-C++ Compiler, Metroworks
00345 **   CodeWarrier, etc.) create many warnings concerning the hiding of
00346 **   overloaded get methods in all derived classes of DcmElement.
00347 **   So the interface of all value representation classes in the
00348 **   library are changed rapidly, e.g.
00349 **   OFCondition get(Uint16 & value, const unsigned long pos);
00350 **   becomes
00351 **   OFCondition getUint16(Uint16 & value, const unsigned long pos);
00352 **   All (retired) "returntype get(...)" methods are deleted.
00353 **   For more information see dcmdata/include/dcelem.h
00354 **
00355 ** Revision 1.5  1996/08/05 08:45:33  andreas
00356 ** new print routine with additional parameters:
00357 **         - print into files
00358 **         - fix output length for elements
00359 ** corrected error in search routine with parameter ESM_fromStackTop
00360 **
00361 ** Revision 1.4  1996/01/29 13:38:17  andreas
00362 ** - new put method for every VR to put value as a string
00363 ** - better and unique print methods
00364 **
00365 ** Revision 1.3  1996/01/05 13:23:07  andreas
00366 ** - changed to support new streaming facilities
00367 ** - more cleanups
00368 ** - merged read / write methods for block and file transfer
00369 **
00370 */


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