OFFIS DCMTK  Version 3.6.0
dccfenmp.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 DcmExtendedNegotiationItem
20  * class DcmExtendedNegotiationMap
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 DCCFENMP_H
32 #define DCCFENMP_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 
41 
46 {
47 public:
54  const DcmUIDHandler& abstractSyntax,
55  const unsigned char *data,
56  Uint32 length);
57 
60 
63 
69  OFBool matches(const DcmUIDHandler& arg) const
70  {
71  return arg == uid_;
72  }
73 
79  {
80  return uid_;
81  }
82 
87  const char *getAbstractSyntaxC() const
88  {
89  return uid_.c_str();
90  }
91 
94  Uint32 getLength() const
95  {
96  return length_;
97  }
98 
101  const unsigned char *getRaw() const
102  {
103  return raw_;
104  }
105 
110  OFBool operator==(const DcmExtendedNegotiationItem& arg) const;
111 
112 private:
113 
116 
118  unsigned char *raw_;
119 
121  Uint32 length_;
122 
125 };
126 
127 
132 
137 {
138 public:
141 
144 
154  OFCondition add(
155  const char *key,
156  const char *abstractSyntaxUID,
157  const unsigned char *rawData,
158  Uint32 length);
159 
164  OFBool isKnownKey(const char *key) const;
165 
174  OFCondition checkConsistency(
175  const char *key,
176  const DcmPresentationContextMap& pclist,
177  const char *pckey) const;
178 
183  const DcmExtendedNegotiationList *getExtendedNegotiationList(const char *key) const;
184 
185 private:
188 
191 
194 
195 };
196 
197 
198 #endif
199 
200 /*
201  * CVS/RCS Log
202  * $Log: dccfenmp.h,v $
203  * Revision 1.4 2010-10-14 13:17:22 joergr
204  * Updated copyright header. Added reference to COPYRIGHT file.
205  *
206  * Revision 1.3 2005/12/08 16:02:10 meichel
207  * Changed include path schema for all DCMTK header files
208  *
209  * Revision 1.2 2003/06/18 08:16:16 meichel
210  * Added comparison operators to keep MSVC5 compiler happy
211  *
212  * Revision 1.1 2003/06/10 14:27:33 meichel
213  * Initial release of class DcmAssociationConfiguration and support
214  * classes. This class maintains a list of association negotiation
215  * profiles that can be addressed by symbolic keys. The profiles may
216  * be read from a configuration file.
217  *
218  *
219  */
const char * getAbstractSyntaxC() const
returns the abstract syntax UID maintained by this object as a C string
Definition: dccfenmp.h:87
this helper class is a extended negotiation list entry.
Definition: dccfenmp.h:45
OFBool operator==(const DcmExtendedNegotiationItem &arg) const
comparison operator.
const char * c_str() const
returns UID as C string
Definition: dccfuidh.h:95
DcmSimpleMap< DcmExtendedNegotiationList * > map_
map of extended negotiation lists
Definition: dccfenmp.h:193
DcmExtendedNegotiationItem & operator=(const DcmExtendedNegotiationItem &arg)
private undefined copy assignment operator
this class implements a simple map of key-value pairs.
Definition: dcmsmap.h:120
~DcmExtendedNegotiationItem()
destructor
helper class that manages a single DICOM UID.
Definition: dccfuidh.h:48
double linked list template class.
Definition: oflist.h:161
const unsigned char * getRaw() const
returns a pointer to the raw data block
Definition: dccfenmp.h:101
this helper class maintains a map of extended negotiation lists.
Definition: dccfenmp.h:136
const DcmUIDHandler & getAbstractSyntax() const
returns a const reference to the abstract syntax UID maintained by this object
Definition: dccfenmp.h:78
this helper class maintains a map of presentation context lists.
Definition: dccfpcmp.h:120
Uint32 length_
length of raw data block, in bytes
Definition: dccfenmp.h:121
OFBool matches(const DcmUIDHandler &arg) const
checks if the given argument matches the abstract syntax UID maintained by this object ...
Definition: dccfenmp.h:69
Uint32 getLength() const
returns the length of the raw data block in bytes
Definition: dccfenmp.h:94
unsigned char * raw_
pointer to raw data block
Definition: dccfenmp.h:118
DcmUIDHandler uid_
abstract syntax UID
Definition: dccfenmp.h:124
General purpose class for condition codes.
Definition: ofcond.h:305
DcmExtendedNegotiationItem(const DcmUIDHandler &abstractSyntax, const unsigned char *data, Uint32 length)
constructor.


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