dcmpstat/include/dcmtk/dcmpstat/dvpshlp.h

00001 /*
00002  *
00003  *  Copyright (C) 1998-2010, OFFIS e.V.
00004  *  All rights reserved.  See COPYRIGHT file for details.
00005  *
00006  *  This software and supporting documentation were developed by
00007  *
00008  *    OFFIS e.V.
00009  *    R&D Division Health
00010  *    Escherweg 2
00011  *    D-26121 Oldenburg, Germany
00012  *
00013  *
00014  *  Module: dcmpstat
00015  *
00016  *  Author: Marco Eichelberg, Joerg Riesmeier
00017  *
00018  *  Purpose:
00019  *    classes: DVPSHelper
00020  *
00021  *  Last Update:      $Author: joergr $
00022  *  Update Date:      $Date: 2010-10-14 13:16:36 $
00023  *  CVS/RCS Revision: $Revision: 1.9 $
00024  *  Status:           $State: Exp $
00025  *
00026  *  CVS/RCS Log at end of file
00027  *
00028  */
00029 
00030  
00031 #ifndef DVPSHLP_H
00032 #define DVPSHLP_H
00033 
00034 #include "dcmtk/config/osconfig.h"   /* make sure OS specific configuration is included first */
00035 #include "dcmtk/dcmdata/dcsequen.h"
00036 
00037 class DcmFileFormat;
00038 
00041 class DVPSHelper
00042 { 
00043  public:
00050     static OFCondition loadFileFormat(const char *filename, DcmFileFormat *&fileformat);
00051 
00059     static OFCondition saveFileFormat(const char *filename,
00060                                       DcmFileFormat *fileformat,
00061                                       OFBool explicitVR);
00062 
00072     static OFCondition putStringValue(DcmItem *item, DcmTagKey tag, const char *value=NULL);
00073 
00082     static OFCondition putUint16Value(DcmItem *item, DcmTagKey tag, Uint16 value);
00083 
00087     static void cleanChildren();
00088 
00092     static void currentDate(OFString &str);
00093 
00097     static void currentTime(OFString &str);
00098 
00105     static void setDefault(OFCondition& result, DcmElement& a_name, const char *a_value);
00106 
00113     static OFBool haveReferencedUIDItem(DcmSequenceOfItems& seq, const char *uid);
00114 
00121     static OFCondition addReferencedUIDItem(DcmSequenceOfItems& seq, const char *uid);
00122 
00123 };
00124 
00125 
00126 #endif
00127 
00128 
00129 /*
00130  *  CVS/RCS Log:
00131  *  $Log: dvpshlp.h,v $
00132  *  Revision 1.9  2010-10-14 13:16:36  joergr
00133  *  Updated copyright header. Added reference to COPYRIGHT file.
00134  *
00135  *  Revision 1.8  2009-11-24 14:12:57  uli
00136  *  Switched to logging mechanism provided by the "new" oflog module.
00137  *
00138  *  Revision 1.7  2009-09-30 10:42:38  uli
00139  *  Make dcmpstat's include headers self-sufficient by including all
00140  *  needed headers directly and stop using dctk.h
00141  *
00142  *  Revision 1.6  2005-12-08 16:03:49  meichel
00143  *  Changed include path schema for all DCMTK header files
00144  *
00145  *  Revision 1.5  2001/09/26 15:36:12  meichel
00146  *  Adapted dcmpstat to class OFCondition
00147  *
00148  *  Revision 1.4  2001/06/01 15:50:17  meichel
00149  *  Updated copyright header
00150  *
00151  *  Revision 1.3  2000/06/02 16:00:47  meichel
00152  *  Adapted all dcmpstat classes to use OFConsole for log and error output
00153  *
00154  *  Revision 1.2  2000/03/08 16:28:53  meichel
00155  *  Updated copyright header.
00156  *
00157  *  Revision 1.1  1999/09/17 14:28:00  meichel
00158  *  Moved static helper functions to new class DVPSHelper, removed some unused code.
00159  *
00160  *
00161  */


Generated on 6 Jan 2011 for OFFIS DCMTK Version 3.6.0 by Doxygen 1.5.1