OFFIS DCMTK  Version 3.6.0
dvpshlp.h
1 /*
2  *
3  * Copyright (C) 1998-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: dcmpstat
15  *
16  * Author: Marco Eichelberg, Joerg Riesmeier
17  *
18  * Purpose:
19  * classes: DVPSHelper
20  *
21  * Last Update: $Author: joergr $
22  * Update Date: $Date: 2010-10-14 13:16:36 $
23  * CVS/RCS Revision: $Revision: 1.9 $
24  * Status: $State: Exp $
25  *
26  * CVS/RCS Log at end of file
27  *
28  */
29 
30 
31 #ifndef DVPSHLP_H
32 #define DVPSHLP_H
33 
34 #include "dcmtk/config/osconfig.h" /* make sure OS specific configuration is included first */
35 #include "dcmtk/dcmdata/dcsequen.h"
36 
37 class DcmFileFormat;
38 
42 {
43  public:
50  static OFCondition loadFileFormat(const char *filename, DcmFileFormat *&fileformat);
51 
59  static OFCondition saveFileFormat(const char *filename,
60  DcmFileFormat *fileformat,
61  OFBool explicitVR);
62 
72  static OFCondition putStringValue(DcmItem *item, DcmTagKey tag, const char *value=NULL);
73 
82  static OFCondition putUint16Value(DcmItem *item, DcmTagKey tag, Uint16 value);
83 
87  static void cleanChildren();
88 
92  static void currentDate(OFString &str);
93 
97  static void currentTime(OFString &str);
98 
105  static void setDefault(OFCondition& result, DcmElement& a_name, const char *a_value);
106 
113  static OFBool haveReferencedUIDItem(DcmSequenceOfItems& seq, const char *uid);
114 
121  static OFCondition addReferencedUIDItem(DcmSequenceOfItems& seq, const char *uid);
122 
123 };
124 
125 
126 #endif
127 
128 
129 /*
130  * CVS/RCS Log:
131  * $Log: dvpshlp.h,v $
132  * Revision 1.9 2010-10-14 13:16:36 joergr
133  * Updated copyright header. Added reference to COPYRIGHT file.
134  *
135  * Revision 1.8 2009-11-24 14:12:57 uli
136  * Switched to logging mechanism provided by the "new" oflog module.
137  *
138  * Revision 1.7 2009-09-30 10:42:38 uli
139  * Make dcmpstat's include headers self-sufficient by including all
140  * needed headers directly and stop using dctk.h
141  *
142  * Revision 1.6 2005-12-08 16:03:49 meichel
143  * Changed include path schema for all DCMTK header files
144  *
145  * Revision 1.5 2001/09/26 15:36:12 meichel
146  * Adapted dcmpstat to class OFCondition
147  *
148  * Revision 1.4 2001/06/01 15:50:17 meichel
149  * Updated copyright header
150  *
151  * Revision 1.3 2000/06/02 16:00:47 meichel
152  * Adapted all dcmpstat classes to use OFConsole for log and error output
153  *
154  * Revision 1.2 2000/03/08 16:28:53 meichel
155  * Updated copyright header.
156  *
157  * Revision 1.1 1999/09/17 14:28:00 meichel
158  * Moved static helper functions to new class DVPSHelper, removed some unused code.
159  *
160  *
161  */


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