OFFIS DCMTK  Version 3.6.0
wltypdef.h
1 /*
2  *
3  * Copyright (C) 1996-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: dcmwlm
15  *
16  * Author: Thomas Wilkens
17  *
18  * Purpose: Type definitions and macros for dcmwlm project.
19  *
20  * Last Update: $Author: joergr $
21  * Update Date: $Date: 2010-10-14 13:16:39 $
22  * CVS/RCS Revision: $Revision: 1.15 $
23  * Status: $State: Exp $
24  *
25  * CVS/RCS Log at end of file
26  *
27  */
28 
29 #ifndef WlmTypeDefinitions_h
30 #define WlmTypeDefinitions_h
31 
32 #include "dcmtk/config/osconfig.h"
33 #include "dcmtk/dcmdata/dctagkey.h"
34 #include "dcmtk/dcmnet/dicom.h" /* for DIC_AE and DIC_NODENAME */
35 
37 enum WlmDataSourceStatusType
38 {
39  WLM_REFUSED_OUT_OF_RESOURCES = 0xa700,
40  WLM_FAILED_IDENTIFIER_DOES_NOT_MATCH_SOP_CLASS = 0xa900,
41  WLM_FAILED_UNABLE_TO_PROCESS = 0xc000,
42  WLM_CANCEL = 0xfe00,
43  WLM_SUCCESS = 0x0000,
44  WLM_PENDING = 0xff00,
45  WLM_PENDING_WARNING = 0xff01
46 };
47 
49 enum WlmDataSourceType
50 {
51  DATA_SOURCE_IS_DATABASE,
52  DATA_SOURCE_IS_DATA_FILES,
53  DATA_SOURCE_IS_PKI_FILE
54 };
55 
57 enum WlmDatabaseType
58 {
59  WLM_DATABASE_TYPE_UNKNOWN,
60  WLM_DATABASE_ORACLE
61 };
62 
64 enum WlmReturnedCharacterSetType
65 {
66  RETURN_NO_CHARACTER_SET,
67  RETURN_CHARACTER_SET_ISO_IR_100,
68  RETURN_CHARACTER_SET_FROM_FILE
69 };
70 
72 #define LOCKFILENAME "lockfile"
73 
76 {
78  DIC_NODENAME peerName;
82  DIC_AE calledAETitle;
84  int processId;
86  time_t startTime;
89 };
90 
92 enum WlmRefuseReasonType
93 {
94  WLM_TOO_MANY_ASSOCIATIONS,
95  WLM_CANNOT_FORK,
96  WLM_BAD_APP_CONTEXT,
97  WLM_BAD_AE_SERVICE,
98  WLM_FORCED,
99  WLM_NO_IC_UID
100 };
101 
103 const OFConditionConst WLM_ECC_InsufficientPortPrivileges ( OFM_dcmwlm, 1, OF_error, "Insufficient privileges to listen to port.");
104 const OFConditionConst WLM_ECC_InitializationOfNetworkConnectionFailed ( OFM_dcmwlm, 2, OF_error, "Initialization of network connection failed.");
105 const OFConditionConst WLM_ECC_TerminationOfNetworkConnectionFailed ( OFM_dcmwlm, 3, OF_error, "Termination of network connection failed.");
106 const OFConditionConst WLM_ECC_DatabaseStatementConfigFilesNotExistent ( OFM_dcmwlm, 4, OF_error, "Database statement configuration files not existent.");
107 const OFConditionConst WLM_ECC_CannotConnectToDataSource ( OFM_dcmwlm, 5, OF_error, "Cannot connect to data source.");
108 
110 const OFCondition WLM_EC_InsufficientPortPrivileges ( WLM_ECC_InsufficientPortPrivileges );
111 
113 const OFCondition WLM_EC_InitializationOfNetworkConnectionFailed ( WLM_ECC_InitializationOfNetworkConnectionFailed );
114 
116 const OFCondition WLM_EC_TerminationOfNetworkConnectionFailed ( WLM_ECC_TerminationOfNetworkConnectionFailed );
117 
119 const OFCondition WLM_EC_DatabaseStatementConfigFilesNotExistent ( WLM_ECC_DatabaseStatementConfigFilesNotExistent );
120 
122 const OFCondition WLM_EC_CannotConnectToDataSource ( WLM_ECC_CannotConnectToDataSource );
123 
125 #define NUMBER_OF_SUPPORTED_MATCHING_KEY_ATTRIBUTES 15
126 
129 {
133  unsigned long numOfItems;
135  unsigned long currentItem;
136 };
137 
138 
139 #endif
140 
141 /*
142 ** CVS Log
143 ** $Log: wltypdef.h,v $
144 ** Revision 1.15 2010-10-14 13:16:39 joergr
145 ** Updated copyright header. Added reference to COPYRIGHT file.
146 **
147 ** Revision 1.14 2009-09-30 08:40:34 uli
148 ** Make dcmwlm's include headers self-sufficient by including all
149 ** needed headers directly.
150 **
151 ** Revision 1.13 2007-08-10 14:25:21 meichel
152 ** Added new command line option --keep-char-set that returns
153 ** any specific character set as encoded in the worklist file.
154 **
155 ** Revision 1.12 2006/12/15 14:49:22 onken
156 ** Removed excessive use char* and C-array in favour of OFString and
157 ** OFList. Simplified some implementation details.
158 **
159 ** Revision 1.11 2005/12/08 16:05:44 meichel
160 ** Changed include path schema for all DCMTK header files
161 **
162 ** Revision 1.10 2005/09/23 12:56:40 wilkens
163 ** Added attribute PatientsBirthDate as a matching key attribute to wlmscpfs.
164 ** Thanks to Andre M. Descombes <andre@descombes.info> for the code template.
165 **
166 ** Revision 1.9 2004/01/07 08:32:28 wilkens
167 ** Added new sequence type return key attributes to wlmscpfs. Fixed bug that for
168 ** equally named attributes in sequences always the same value will be returned.
169 ** Added functionality that also more than one item will be returned in sequence
170 ** type return key attributes.
171 **
172 ** Revision 1.8 2003/12/23 13:04:36 wilkens
173 ** Integrated new matching key attributes into wlmscpfs.
174 **
175 ** Revision 1.7 2003/07/02 09:17:55 wilkens
176 ** Updated documentation to get rid of doxygen warnings.
177 **
178 ** Revision 1.6 2002/12/16 11:08:36 wilkens
179 ** Added missing #include "osconfig.h" to certain files.
180 **
181 ** Revision 1.5 2002/08/12 10:56:09 wilkens
182 ** Made some modifications in in order to be able to create a new application
183 ** which contains both wlmscpdb and ppsscpdb and another application which
184 ** contains both wlmscpfs and ppsscpfs.
185 **
186 ** Revision 1.4 2002/07/17 13:10:37 wilkens
187 ** Corrected some minor logical errors in the wlmscpdb sources and completely
188 ** updated the wlmscpfs so that it does not use the original wlistctn sources
189 ** any more but standard wlm sources which are now used by all three variants
190 ** of wlmscps.
191 **
192 ** Revision 1.3 2002/04/18 14:20:09 wilkens
193 ** Modified Makefiles. Updated latest changes again. These are the latest
194 ** sources. Added configure file.
195 **
196 **
197 **
198 */


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