OFFIS DCMTK
Version 3.6.0
Main Page
Related Pages
Classes
Files
File List
File Members
dcmnet
include
dcmtk
dcmnet
dccfrsmp.h
1
/*
2
*
3
* Copyright (C) 1994-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: dcmnet
15
*
16
* Author: Marco Eichelberg
17
*
18
* Purpose:
19
* class DcmRoleSelectionItem
20
* class DcmRoleSelectionMap
21
*
22
* Last Update: $Author: joergr $
23
* Update Date: $Date: 2010-10-14 13:17:22 $
24
* CVS/RCS Revision: $Revision: 1.4 $
25
* Status: $State: Exp $
26
*
27
* CVS/RCS Log at end of file
28
*
29
*/
30
31
#ifndef DCCFRSMP_H
32
#define DCCFRSMP_H
33
34
#include "dcmtk/config/osconfig.h"
35
#include "dcmtk/ofstd/oflist.h"
/* for class OFList<> */
36
#include "dcmtk/ofstd/ofcond.h"
/* for class OFCondition */
37
#include "dcmtk/dcmnet/dcmsmap.h"
/* for class DcmSimpleMap<> */
38
#include "dcmtk/dcmnet/dccfuidh.h"
/* for class DcmUIDHandler */
39
#include "dcmtk/dcmnet/assoc.h"
/* for T_ASC_SC_ROLE */
40
41
class
DcmPresentationContextMap
;
42
46
class
DcmRoleSelectionItem
47
{
48
public
:
53
DcmRoleSelectionItem
(
54
T_ASC_SC_ROLE role,
55
const
DcmUIDHandler
& abstractSyntax );
56
58
DcmRoleSelectionItem
(
const
DcmRoleSelectionItem
& arg);
59
61
~DcmRoleSelectionItem
();
62
68
OFBool
matches
(
const
DcmUIDHandler
& arg)
const
69
{
70
return
arg ==
uid_
;
71
}
72
77
const
DcmUIDHandler
&
getAbstractSyntax
()
const
78
{
79
return
uid_
;
80
}
81
84
T_ASC_SC_ROLE
getRole
()
const
85
{
86
return
role_
;
87
}
88
93
OFBool
operator==
(
const
DcmRoleSelectionItem
& arg)
const
94
{
95
return
(
role_
== arg.
role_
) && (
uid_
== arg.
uid_
);
96
}
97
98
private
:
99
101
DcmRoleSelectionItem
&
operator=
(
const
DcmRoleSelectionItem
& arg);
102
104
T_ASC_SC_ROLE
role_
;
105
107
DcmUIDHandler
uid_
;
108
};
109
110
114
typedef
OFList<DcmRoleSelectionItem>
DcmRoleSelectionList
;
115
119
class
DcmRoleSelectionMap
120
{
121
public
:
123
DcmRoleSelectionMap
();
124
126
~DcmRoleSelectionMap
();
127
136
OFCondition
add
(
137
const
char
*key,
138
const
char
*abstractSyntaxUID,
139
T_ASC_SC_ROLE role);
140
145
OFBool
isKnownKey
(
const
char
*key)
const
;
146
155
OFCondition
checkConsistency
(
156
const
char
*key,
157
const
DcmPresentationContextMap
& pclist,
158
const
char
*pckey)
const
;
159
164
const
DcmRoleSelectionList
*
getRoleSelectionList
(
const
char
*key)
const
;
165
166
private
:
168
DcmRoleSelectionMap
(
const
DcmRoleSelectionMap
& arg);
169
171
DcmRoleSelectionMap
&
operator=
(
const
DcmRoleSelectionMap
& arg);
172
174
DcmSimpleMap<DcmRoleSelectionList *>
map_
;
175
176
};
177
178
#endif
179
180
/*
181
* CVS/RCS Log
182
* $Log: dccfrsmp.h,v $
183
* Revision 1.4 2010-10-14 13:17:22 joergr
184
* Updated copyright header. Added reference to COPYRIGHT file.
185
*
186
* Revision 1.3 2005/12/08 16:02:13 meichel
187
* Changed include path schema for all DCMTK header files
188
*
189
* Revision 1.2 2003/06/18 08:16:16 meichel
190
* Added comparison operators to keep MSVC5 compiler happy
191
*
192
* Revision 1.1 2003/06/10 14:27:33 meichel
193
* Initial release of class DcmAssociationConfiguration and support
194
* classes. This class maintains a list of association negotiation
195
* profiles that can be addressed by symbolic keys. The profiles may
196
* be read from a configuration file.
197
*
198
*
199
*/
Generated on Thu Dec 20 2012 for
OFFIS DCMTK
Version 3.6.0 by
Doxygen
1.8.2