OFFIS DCMTK  Version 3.6.0
wldsfs.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: Class for connecting to a file-based data source.
19  *
20  * Last Update: $Author: joergr $
21  * Update Date: $Date: 2010-10-14 13:16:39 $
22  * CVS/RCS Revision: $Revision: 1.17 $
23  * Status: $State: Exp $
24  *
25  * CVS/RCS Log at end of file
26  *
27  */
28 
29 #ifndef WlmDataSourceFileSystem_h
30 #define WlmDataSourceFileSystem_h
31 
32 #include "dcmtk/config/osconfig.h"
33 #include "dcmtk/dcmwlm/wlds.h"
34 #include "dcmtk/dcmwlm/wlfsim.h"
35 
36 //class WlmFileSystemInteractionManager;
37 class DcmItem;
38 class DcmDataset;
39 class OFCondition;
40 class DcmElement;
41 class DcmItem;
42 
47 {
48  protected:
57 
62  OFBool SetReadlock();
63 
67  OFBool ReleaseReadlock();
68 
78  void HandleNonSequenceElementInResultDataset( DcmElement *element, unsigned long idx );
79 
89  void HandleSequenceElementInResultDataset( DcmElement *element, unsigned long idx );
90 
95 
101 
102 
103  public:
107 
111 
116 
121 
125  void SetDfPath( const OFString& value );
126 
130  void SetEnableRejectionOfIncompleteWlFiles( OFBool value );
131 
140 
157  void HandleExistentButEmptyDescriptionAndCodeSequenceAttributes( DcmItem *dataset, const DcmTagKey &descriptionTagKey, const DcmTagKey &codeSequenceTagKey );
158 
171 
184  WlmDataSourceStatusType StartFindRequest( const DcmDataset &findRequestIdentifiers );
185 
196  DcmDataset *NextFindResponse( WlmDataSourceStatusType &rStatus );
197 };
198 
199 #endif
200 
201 /*
202 ** CVS Log
203 ** $Log: wldsfs.h,v $
204 ** Revision 1.17 2010-10-14 13:16:39 joergr
205 ** Updated copyright header. Added reference to COPYRIGHT file.
206 **
207 ** Revision 1.16 2006/12/15 14:49:21 onken
208 ** Removed excessive use char* and C-array in favour of OFString and
209 ** OFList. Simplified some implementation details.
210 **
211 ** Revision 1.15 2005/12/08 16:05:41 meichel
212 ** Changed include path schema for all DCMTK header files
213 **
214 ** Revision 1.14 2005/05/04 11:33:17 wilkens
215 ** Modified handling of the attributes ScheduledProcedureStepDescription/
216 ** ScheduledProtocolCodeSequence and RequestedProcedureDescription/
217 ** RequestedProcedureCodeSequence in wlmscpfs: in case one of the two attributes
218 ** does not contain any information in a C-Find RSP message which is about to be
219 ** sent to an SCU, the empty attribute will be removed from the C-Find RSP message
220 ** before the message is sent, in order not to send an invalid RSP message.
221 ** Added two command line options --enable-file-reject (default) and
222 ** --disable-file-reject to wlmscpfs: these options can be used to enable or
223 ** disable a file rejection mechanism which makes sure only complete worklist files
224 ** will be used during the matching process. A worklist file is considered to be
225 ** complete if it contains all necessary type 1 information which the SCP might
226 ** have to return to an SCU in a C-Find response message.
227 **
228 ** Revision 1.13 2004/05/26 10:36:53 meichel
229 ** Fixed minor bug in worklist server regarding failed read locks.
230 **
231 ** Revision 1.12 2004/01/07 08:32:28 wilkens
232 ** Added new sequence type return key attributes to wlmscpfs. Fixed bug that for
233 ** equally named attributes in sequences always the same value will be returned.
234 ** Added functionality that also more than one item will be returned in sequence
235 ** type return key attributes.
236 **
237 ** Revision 1.11 2003/08/21 13:38:55 wilkens
238 ** Moved declaration and initialization of member variables matchingDatasets and
239 ** NumOfMatchingDatasets to base class.
240 **
241 ** Revision 1.10 2003/07/02 09:17:55 wilkens
242 ** Updated documentation to get rid of doxygen warnings.
243 **
244 ** Revision 1.9 2002/12/16 11:08:34 wilkens
245 ** Added missing #include "osconfig.h" to certain files.
246 **
247 ** Revision 1.8 2002/12/09 13:40:49 joergr
248 ** Renamed parameter to avoid name clash with global function index().
249 **
250 ** Revision 1.7 2002/08/12 10:56:08 wilkens
251 ** Made some modifications in in order to be able to create a new application
252 ** which contains both wlmscpdb and ppsscpdb and another application which
253 ** contains both wlmscpfs and ppsscpfs.
254 **
255 ** Revision 1.6 2002/08/05 09:09:57 wilkens
256 ** Modfified the project's structure in order to be able to create a new
257 ** application which contains both wlmscpdb and ppsscpdb.
258 **
259 ** Revision 1.4 2002/07/17 13:10:17 wilkens
260 ** Corrected some minor logical errors in the wlmscpdb sources and completely
261 ** updated the wlmscpfs so that it does not use the original wlistctn sources
262 ** any more but standard wlm sources which are now used by all three variants
263 ** of wlmscps.
264 **
265 ** Revision 1.3 2002/06/10 11:24:54 wilkens
266 ** Made some corrections to keep gcc 2.95.3 quiet.
267 **
268 ** Revision 1.2 2002/04/18 14:19:53 wilkens
269 ** Modified Makefiles. Updated latest changes again. These are the latest
270 ** sources. Added configure file.
271 **
272 ** Revision 1.3 2002/01/08 17:45:34 joergr
273 ** Reformatted source files (replaced Windows newlines by Unix ones, replaced
274 ** tabulator characters by spaces, etc.)
275 **
276 ** Revision 1.2 2002/01/08 16:47:53 joergr
277 ** Added preliminary database support using OTL interface library (modified by
278 ** MC/JR on 2001-12-21).
279 **
280 ** Revision 1.1 2002/01/08 16:30:59 joergr
281 ** Added new module "dcmwlm" developed by Thomas Wilkens (initial release for
282 ** Windows, dated 2001-12-20).
283 **
284 **
285 */


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