📄 diutil.h
字号:
/*** Copyright (C) 1993/1994, OFFIS, Oldenburg University and CERIUM** ** This software and supporting documentation were** developed by ** ** Institut OFFIS** Bereich Kommunikationssysteme** Westerstr. 10-12** 26121 Oldenburg, Germany** ** Fachbereich Informatik** Abteilung Prozessinformatik** Carl von Ossietzky Universitaet Oldenburg ** Ammerlaender Heerstr. 114-118** 26111 Oldenburg, Germany** ** CERIUM** Laboratoire SIM** Faculte de Medecine** 2 Avenue du Pr. Leon Bernard** 35043 Rennes Cedex, France** ** for CEN/TC251/WG4 as a contribution to the Radiological ** Society of North America (RSNA) 1993 Digital Imaging and ** Communications in Medicine (DICOM) Demonstration.** ** THIS SOFTWARE IS MADE AVAILABLE, AS IS, AND NEITHER OFFIS,** OLDENBURG UNIVERSITY NOR CERIUM MAKE ANY WARRANTY REGARDING ** THE SOFTWARE, ITS PERFORMANCE, ITS MERCHANTABILITY OR ** FITNESS FOR ANY PARTICULAR USE, FREEDOM FROM ANY COMPUTER ** DISEASES OR ITS CONFORMITY TO ANY SPECIFICATION. THE ** ENTIRE RISK AS TO QUALITY AND PERFORMANCE OF THE SOFTWARE ** IS WITH THE USER. ** ** Copyright of the software and supporting documentation** is, unless otherwise stated, jointly owned by OFFIS,** Oldenburg University and CERIUM and free access is hereby** granted as a license to use this software, copy this** software and prepare derivative works based upon this** software. However, any distribution of this software** source code or supporting documentation or derivative** works (source code and supporting documentation) must** include the three paragraphs of this copyright notice. ** *//***** Author: Andrew Hewett Created: 11-08-93** ** Module: diutil**** Purpose: ** This file contains the interface to ** some general useful dicom utility routines**** Module Prefix: DU_****** Last Update: $Author: meichel $** Update Date: $Date: 2005/12/08 16:02:22 $** Source File: $Source: /share/dicom/cvs-depot/dcmtk/dcmnet/include/dcmtk/dcmnet/diutil.h,v $** CVS/RCS Revision: $Revision: 1.7 $** Status: $State: Exp $**** CVS/RCS Log at end of file*/#ifndef DIUTIL_H#define DIUTIL_H#include "dcmtk/config/osconfig.h" /* make sure OS specific configuration is included first */#include "dcmtk/dcmnet/dicom.h"#include "dcmtk/dcmdata/dcdatset.h"#include "dcmtk/dcmnet/dimse.h"char* DU_stripTrailingSpaces(char *s);char* DU_stripLeadingSpaces(char *s);char* DU_stripLeadingAndTrailingSpaces(char *s);OFBool DU_getStringDOElement(DcmItem *obj, DcmTagKey t, char *s);OFBool DU_putStringDOElement(DcmItem *obj, DcmTagKey t, const char *s);OFBool DU_getShortDOElement(DcmItem *obj, DcmTagKey t, Uint16 *us);OFBool DU_putShortDOElement(DcmItem *obj, DcmTagKey t, Uint16 us);OFBool DU_findSOPClassAndInstanceInDataSet( DcmItem *obj, char* sopClass, char* sopInstance, OFBool tolerateSpacePaddedUIDs = OFFalse);OFBool DU_findSOPClassAndInstanceInFile( const char *fname, char* sopClass, char* sopInstance, OFBool tolerateSpacePaddedUIDs = OFFalse); unsigned long DU_fileSize(const char *fname);const char *DU_cstoreStatusString(Uint16 statusCode);const char *DU_cfindStatusString(Uint16 statusCode);const char *DU_cmoveStatusString(Uint16 statusCode);const char *DU_cgetStatusString(Uint16 statusCode);#endif/*** CVS Log** $Log: diutil.h,v $** Revision 1.7 2005/12/08 16:02:22 meichel** Changed include path schema for all DCMTK header files**** Revision 1.6 2002/11/25 18:00:37 meichel** Converted compile time option to leniently handle space padded UIDs** in the Storage Service Class into command line / config file option.**** Revision 1.5 2000/02/03 11:50:11 meichel** Moved UID related functions from dcmnet (diutil.h) to dcmdata (dcuid.h)** where they belong. Renamed access functions to dcmSOPClassUIDToModality** and dcmGuessModalityBytes.**** Revision 1.4 1999/06/10 10:56:35 meichel** Adapted imagectn to new command line option scheme.** Added support for Patient/Study Only Q/R model and C-GET (experimental).**** Revision 1.3 1998/01/14 14:37:06 hewett** Added basic support for the Structured Reporting (SR) SOP Classes.**** Revision 1.2 1997/07/21 08:40:11 andreas** - Replace all boolean types (BOOLEAN, CTNBOOLEAN, DICOM_BOOL, BOOL)** with one unique boolean type OFBool.**** Revision 1.1.1.1 1996/03/26 18:38:45 hewett** Initial Release.*****/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -