OFFIS DCMTK  Version 3.6.0
dsrwavch.h
1 /*
2  *
3  * Copyright (C) 2000-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: dcmsr
15  *
16  * Author: Joerg Riesmeier
17  *
18  * Purpose:
19  * classes: DSRWaveformChannelItem, DSRWaveformChannelList
20  *
21  * Last Update: $Author: joergr $
22  * Update Date: $Date: 2010-10-14 13:16:33 $
23  * CVS/RCS Revision: $Revision: 1.16 $
24  * Status: $State: Exp $
25  *
26  * CVS/RCS Log at end of file
27  *
28  */
29 
30 
31 #ifndef DSRWAVCH_H
32 #define DSRWAVCH_H
33 
34 #include "dcmtk/config/osconfig.h" /* make sure OS specific configuration is included first */
35 
36 #include "dcmtk/dcmsr/dsrtypes.h"
37 #include "dcmtk/dcmsr/dsrtlist.h"
38 
39 
40 /*---------------------*
41  * class declaration *
42  *---------------------*/
43 
47 {
48  public:
49 
54  DSRWaveformChannelItem(const Uint16 multiplexGroupNumber = 0,
55  const Uint16 channelNumber = 0)
56  : MultiplexGroupNumber(multiplexGroupNumber),
57  ChannelNumber(channelNumber)
58  {
59  }
60 
65  inline OFBool operator==(const DSRWaveformChannelItem &item) const
66  {
68  }
69 
74  inline OFBool operator!=(const DSRWaveformChannelItem &item) const
75  {
77  }
78 
83  inline OFBool operator<(const DSRWaveformChannelItem &item) const
84  {
86  }
87 
92  inline OFBool operator>(const DSRWaveformChannelItem &item) const
93  {
95  }
96 
97  /* copy constructor and assignment operator are defined implicitly */
98 
103 };
104 
105 
109  : public DSRListOfItems<DSRWaveformChannelItem>
110 {
111 
112  public:
113 
117 
122 
125  virtual ~DSRWaveformChannelList();
126 
132 
141  OFCondition print(STD_NAMESPACE ostream &stream,
142  const size_t flags = 0,
143  const char pairSeparator = '/',
144  const char itemSeparator = ',') const;
145 
150  OFCondition read(DcmItem &dataset);
151 
156  OFCondition write(DcmItem &dataset) const;
157 
163  OFBool isElement(const Uint16 multiplexGroupNumber,
164  const Uint16 channelNumber) const;
165 
172  OFCondition getItem(const size_t idx,
173  Uint16 &multiplexGroupNumber,
174  Uint16 &channelNumber) const;
175 
180  void addItem(const Uint16 multiplexGroupNumber,
181  const Uint16 channelNumber);
182 
189  OFCondition putString(const char *stringValue);
190 };
191 
192 
193 #endif
194 
195 
196 /*
197  * CVS/RCS Log:
198  * $Log: dsrwavch.h,v $
199  * Revision 1.16 2010-10-14 13:16:33 joergr
200  * Updated copyright header. Added reference to COPYRIGHT file.
201  *
202  * Revision 1.15 2009-10-13 14:57:50 uli
203  * Switched to logging mechanism provided by the "new" oflog module.
204  *
205  * Revision 1.14 2007-11-15 16:33:19 joergr
206  * Fixed coding style to be more consistent.
207  *
208  * Revision 1.13 2006/08/15 16:40:03 meichel
209  * Updated the code in module dcmsr to correctly compile when
210  * all standard C++ classes remain in namespace std.
211  *
212  * Revision 1.12 2005/12/08 16:05:32 meichel
213  * Changed include path schema for all DCMTK header files
214  *
215  * Revision 1.11 2003/08/07 13:06:29 joergr
216  * Added new putString() method.
217  *
218  * Revision 1.10 2003/06/04 12:33:13 meichel
219  * Added comparison operators, needed by MSVC5 with STL
220  *
221  * Revision 1.9 2003/06/03 10:16:44 meichel
222  * Renamed local variables to avoid name clashes with STL
223  *
224  * Revision 1.8 2001/09/26 13:04:15 meichel
225  * Adapted dcmsr to class OFCondition
226  *
227  * Revision 1.7 2001/05/07 16:13:24 joergr
228  * Updated CVS header.
229  *
230  * Revision 1.6 2001/01/25 11:48:44 joergr
231  * Corrected typos / enhanced comments.
232  *
233  * Revision 1.5 2000/11/06 11:21:26 joergr
234  * Added parameter to print() method specifying the item separator character.
235  *
236  * Revision 1.4 2000/11/01 16:22:57 joergr
237  * Updated comments/formatting.
238  *
239  * Revision 1.3 2000/10/18 17:10:51 joergr
240  * Added doc++ comments.
241  *
242  * Revision 1.2 2000/10/16 11:52:29 joergr
243  * Added new method checking whether a waveform content item applies to a
244  * certain channel.
245  *
246  * Revision 1.1 2000/10/13 07:49:36 joergr
247  * Added new module 'dcmsr' providing access to DICOM structured reporting
248  * documents (supplement 23). Doc++ documentation not yet completed.
249  *
250  *
251  */


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