imagectn/include/dbstore.h

00001 /* 00002 * 00003 * Copyright (C) 1998-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: imagectn 00019 * 00020 * Author: Lutz Vorwerk 00021 * 00022 * Purpose: 00023 * enables access to functions of dbstore.cc 00024 * 00025 * Last Update: $Author: joergr $ 00026 * Update Date: $Date: 2003/12/05 10:40:35 $ 00027 * CVS/RCS Revision: $Revision: 1.10 $ 00028 * Status: $State: Exp $ 00029 * 00030 * CVS/RCS Log at end of file 00031 * 00032 */ 00033 00034 00035 #ifndef DBSTORE_H 00036 #define DBSTORE_H 00037 00038 00039 #include "osconfig.h" /* make sure OS specific configuration is included first */ 00040 00041 #define INCLUDE_CSTDLIB 00042 #define INCLUDE_CSTDIO 00043 #define INCLUDE_CERRNO 00044 #define INCLUDE_CTIME 00045 #include "ofstdinc.h" 00046 00047 BEGIN_EXTERN_C 00048 #ifdef HAVE_SYS_TYPES_H 00049 #include <sys/types.h> 00050 #endif 00051 #ifdef HAVE_SYS_FILE_H 00052 #include <sys/file.h> 00053 #endif 00054 #ifdef HAVE_SYS_TIME_H 00055 #include <sys/time.h> 00056 #endif 00057 #ifdef HAVE_SYS_STAT_H 00058 #include <sys/stat.h> 00059 #endif 00060 #ifdef HAVE_FCNTL_H 00061 #include <fcntl.h> 00062 #endif 00063 END_EXTERN_C 00064 00065 #include "dcompat.h" 00066 #include "imagedb.h" 00067 #include "dbpriv.h" 00068 #include "dcfilefo.h" 00069 #include "dimse.h" 00070 00071 00075 OFCondition DB_deleteImageFile(char* imgFile); 00076 00080 extern int 00081 DB_DeleteOldestStudy(DB_Private_Handle *phandle, StudyDescRecord *pStudyDesc); 00082 00086 OFCondition 00087 DB_DeleteOldestImages(DB_Private_Handle *phandle, StudyDescRecord *pStudyDesc, int StudyNum, char *StudyUID, long RequiredSize); 00088 00092 extern int 00093 DB_MatchStudyUIDInStudyDesc (StudyDescRecord *pStudyDesc, char *StudyUID, int maxStudiesAllowed); 00094 00098 OFCondition 00099 DB_CheckupinStudyDesc(DB_Private_Handle *phandle, StudyDescRecord *pStudyDesc, char *StudyUID, long imageSize); 00100 00101 00106 OFCondition DB_removeDuplicateImage(DB_Private_Handle *phandle, 00107 const char *SOPInstanceUID, const char *StudyInstanceUID, 00108 StudyDescRecord *pStudyDesc, const char *newImageFileName); 00109 00110 00114 OFCondition 00115 DB_storeRequest ( 00116 DB_Handle *handle, 00117 const char *SOPClassUID, 00118 const char * /*SOPInstanceUID*/, 00119 const char *imageFileName, 00120 DB_Status *status, 00121 OFBool isNew); 00122 00123 00127 OFCondition DB_pruneInvalidRecords(DB_Handle *dbHandle); 00128 #endif 00129 00130 /* 00131 * $Log: dbstore.h,v $ 00132 * Revision 1.10 2003/12/05 10:40:35 joergr 00133 * Removed leading underscore characters from preprocessor symbols (reserved 00134 * symbols). Updated copyright date where appropriate. 00135 * 00136 * Revision 1.9 2002/11/27 13:27:52 meichel 00137 * Adapted module imagectn to use of new header file ofstdinc.h 00138 * 00139 * Revision 1.8 2001/10/12 12:43:07 meichel 00140 * Adapted imagectn to OFCondition based dcmnet module (supports strict mode). 00141 * 00142 * Revision 1.7 2001/06/01 15:51:26 meichel 00143 * Updated copyright header 00144 * 00145 * Revision 1.6 2000/11/23 17:02:14 joergr 00146 * Removed default value for parameter to avoid compiler warnings (MSVC5). 00147 * 00148 * Revision 1.5 2000/11/23 16:40:52 joergr 00149 * Added new command line option to dbregimg allowing to specify whether 00150 * instance reviewed status of newly registered objects should be set to 'new' 00151 * or 'not new'. 00152 * 00153 * Revision 1.4 2000/03/08 16:41:07 meichel 00154 * Updated copyright header. 00155 * 00156 * Revision 1.3 2000/02/23 15:13:23 meichel 00157 * Corrected macro for Borland C++ Builder 4 workaround. 00158 * 00159 * Revision 1.2 2000/02/01 11:43:44 meichel 00160 * Avoiding to include <stdlib.h> as extern "C" on Borland C++ Builder 4, 00161 * workaround for bug in compiler header files. 00162 * 00163 * Revision 1.1 1998/12/22 15:25:34 vorwerk 00164 * added for access of functions from imagectn/libsrc/dbstore.cc 00165 * 00166 * 00167 */


Generated on 4 Nov 2004 for OFFIS DCMTK Version 3.5.3 by Doxygen 1.3.8