dvpshlp.h

00001 /*
00002  *
00003  *  Copyright (C) 1998-2005, 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: dcmpstat
00019  *
00020  *  Author: Marco Eichelberg, Joerg Riesmeier
00021  *
00022  *  Purpose:
00023  *    classes: DVPSHelper
00024  *
00025  *  Last Update:      $Author: meichel $
00026  *  Update Date:      $Date: 2005/12/08 16:03:49 $
00027  *  CVS/RCS Revision: $Revision: 1.6 $
00028  *  Status:           $State: Exp $
00029  *
00030  *  CVS/RCS Log at end of file
00031  *
00032  */
00033 
00034  
00035 #ifndef DVPSHLP_H
00036 #define DVPSHLP_H
00037 
00038 #include "dcmtk/config/osconfig.h"   /* make sure OS specific configuration is included first */
00039 #include "dcmtk/dcmdata/dctk.h"
00040 #include "dcmtk/ofstd/ofstring.h"   /* for class OFString */
00041 
00044 class DVPSHelper
00045 { 
00046  public:
00053     static OFCondition loadFileFormat(const char *filename, DcmFileFormat *&fileformat);
00054 
00062     static OFCondition saveFileFormat(const char *filename,
00063                                       DcmFileFormat *fileformat,
00064                                       OFBool explicitVR);
00065 
00075     static OFCondition putStringValue(DcmItem *item, DcmTagKey tag, const char *value=NULL);
00076 
00085     static OFCondition putUint16Value(DcmItem *item, DcmTagKey tag, Uint16 value);
00086 
00091     static void cleanChildren(OFConsole *logconsole=NULL);
00092 
00096     static void currentDate(OFString &str);
00097 
00101     static void currentTime(OFString &str);
00102 
00109     static void setDefault(OFCondition& result, DcmElement& a_name, const char *a_value);
00110 
00117     static OFBool haveReferencedUIDItem(DcmSequenceOfItems& seq, const char *uid);
00118 
00125     static OFCondition addReferencedUIDItem(DcmSequenceOfItems& seq, const char *uid);
00126 
00127 };
00128 
00129 
00130 #endif
00131 
00132 
00133 /*
00134  *  CVS/RCS Log:
00135  *  $Log: dvpshlp.h,v $
00136  *  Revision 1.6  2005/12/08 16:03:49  meichel
00137  *  Changed include path schema for all DCMTK header files
00138  *
00139  *  Revision 1.5  2001/09/26 15:36:12  meichel
00140  *  Adapted dcmpstat to class OFCondition
00141  *
00142  *  Revision 1.4  2001/06/01 15:50:17  meichel
00143  *  Updated copyright header
00144  *
00145  *  Revision 1.3  2000/06/02 16:00:47  meichel
00146  *  Adapted all dcmpstat classes to use OFConsole for log and error output
00147  *
00148  *  Revision 1.2  2000/03/08 16:28:53  meichel
00149  *  Updated copyright header.
00150  *
00151  *  Revision 1.1  1999/09/17 14:28:00  meichel
00152  *  Moved static helper functions to new class DVPSHelper, removed some unused code.
00153  *
00154  *
00155  */


Generated on 20 Dec 2005 for OFFIS DCMTK Version 3.5.4 by Doxygen 1.4.5