OFFIS DCMTK  Version 3.6.0
dccfpcmp.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 DcmPresentationContextItem
20  * class DcmPresentationContextMap
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 DCCFPCMP_H
32 #define DCCFPCMP_H
33 
34 #include "dcmtk/config/osconfig.h"
35 #include "dcmtk/ofstd/oflist.h" /* for class OFList<> */
36 #include "dcmtk/ofstd/ofstring.h" /* for class OFString */
37 #include "dcmtk/ofstd/ofcond.h" /* for class OFCondition */
38 #include "dcmtk/dcmnet/dcmsmap.h" /* for class DcmSimpleMap<> */
39 #include "dcmtk/dcmnet/dccfuidh.h" /* for class DcmUIDHandler */
40 
41 
46 {
47 public:
53  const DcmUIDHandler& abstractSyntax,
54  const OFString& xferSyntaxGroup );
55 
58 
61 
67  OFBool matches(const DcmUIDHandler& arg) const
68  {
69  return arg == uid_;
70  }
71 
75  const char *getAbstractSyntax() const
76  {
77  return uid_.c_str();
78  }
79 
84  const char *getTransferSyntaxKey() const
85  {
86  return xferSyntaxGroup_.c_str();
87  }
88 
93  OFBool operator==(const DcmPresentationContextItem& arg) const
94  {
95  return (uid_ == arg.uid_) && (xferSyntaxGroup_ == arg.xferSyntaxGroup_);
96  }
97 
98 private:
99 
102 
105 
108 };
109 
110 
115 
116 
121 {
122 public:
125 
128 
137  OFCondition add(
138  const char *key,
139  const char *abstractSyntaxUID,
140  const char *transferSyntaxKey);
141 
146  OFBool isKnownKey(const char *key) const;
147 
154  OFBool isKnownAbstractSyntax(const char *key, const DcmUIDHandler& abstractSyntax) const;
155 
160  const DcmPresentationContextList *getPresentationContextList(const char *key) const;
161 
162 private:
165 
168 
171 
172 };
173 
174 #endif
175 
176 /*
177  * CVS/RCS Log
178  * $Log: dccfpcmp.h,v $
179  * Revision 1.4 2010-10-14 13:17:22 joergr
180  * Updated copyright header. Added reference to COPYRIGHT file.
181  *
182  * Revision 1.3 2005/12/08 16:02:11 meichel
183  * Changed include path schema for all DCMTK header files
184  *
185  * Revision 1.2 2003/06/18 08:16:16 meichel
186  * Added comparison operators to keep MSVC5 compiler happy
187  *
188  * Revision 1.1 2003/06/10 14:27:33 meichel
189  * Initial release of class DcmAssociationConfiguration and support
190  * classes. This class maintains a list of association negotiation
191  * profiles that can be addressed by symbolic keys. The profiles may
192  * be read from a configuration file.
193  *
194  *
195  */
const char * getTransferSyntaxKey() const
returns the key for the list of transfer syntaxes maintained by this object
Definition: dccfpcmp.h:84
OFBool operator==(const DcmPresentationContextItem &arg) const
comparison operator.
Definition: dccfpcmp.h:93
OFBool matches(const DcmUIDHandler &arg) const
checks if the given argument matches the abstract syntax UID maintained by this object ...
Definition: dccfpcmp.h:67
this helper class is a presentation context list entry.
Definition: dccfpcmp.h:45
OFString xferSyntaxGroup_
key of the transfer syntax group
Definition: dccfpcmp.h:107
DcmSimpleMap< DcmPresentationContextList * > map_
map of presentation context lists
Definition: dccfpcmp.h:170
DcmPresentationContextItem & operator=(const DcmPresentationContextItem &arg)
private undefined copy assignment operator
const char * c_str() const
returns UID as C string
Definition: dccfuidh.h:95
DcmUIDHandler uid_
abstract syntax UID
Definition: dccfpcmp.h:104
this class implements a simple map of key-value pairs.
Definition: dcmsmap.h:120
helper class that manages a single DICOM UID.
Definition: dccfuidh.h:48
double linked list template class.
Definition: oflist.h:161
~DcmPresentationContextItem()
destructor
DcmPresentationContextItem(const DcmUIDHandler &abstractSyntax, const OFString &xferSyntaxGroup)
constructor
const char * getAbstractSyntax() const
returns the abstract syntax UID
Definition: dccfpcmp.h:75
this helper class maintains a map of presentation context lists.
Definition: dccfpcmp.h:120
a simple string class that implements a subset of std::string.
Definition: ofstring.h:86
const char * c_str() const
returns a pointer to the initial element of an array of length size()+1 whose first size() elements e...
Definition: ofstring.h:392
General purpose class for condition codes.
Definition: ofcond.h:305


Generated on Wed Dec 14 2016 for OFFIS DCMTK Version 3.6.0 by Doxygen 1.8.11