DCMTK  Version 3.6.1 20170228
OFFIS DICOM Toolkit
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Private Attributes | List of all members
DcmExtendedNegotiationMap Class Reference

this helper class maintains a map of extended negotiation lists. More...

Public Member Functions

 DcmExtendedNegotiationMap ()
 constructor
 
 ~DcmExtendedNegotiationMap ()
 destructor
 
 DcmExtendedNegotiationMap (const DcmExtendedNegotiationMap &arg)
 Copy constructor, performs deep copy.
 
DcmExtendedNegotiationMapoperator= (const DcmExtendedNegotiationMap &arg)
 Copy assignment operator, performs deep copy.
 
void clear ()
 Resets DcmExtendedNegotiationMap and frees any allocated memory.
 
OFCondition add (const char *key, const char *abstractSyntaxUID, const unsigned char *rawData, Uint32 length)
 add new entry to list within map. More...
 
OFBool isKnownKey (const char *key) const
 checks if the key is known More...
 
OFCondition checkConsistency (const char *key, const DcmPresentationContextMap &pclist, const char *pckey) const
 checks if each abstract syntax in the extended negotiation list identified by key is also contained in the presentation context list identified by pckey and maintained by pclist. More...
 
const DcmExtendedNegotiationListgetExtendedNegotiationList (const char *key) const
 returns the list of extended negotiation items identified by the given key More...
 

Private Attributes

OFMap< OFString,
DcmExtendedNegotiationList * > 
map_
 map of extended negotiation lists
 

Detailed Description

this helper class maintains a map of extended negotiation lists.

Not intended for use by the end user.

Member Function Documentation

OFCondition DcmExtendedNegotiationMap::add ( const char *  key,
const char *  abstractSyntaxUID,
const unsigned char *  rawData,
Uint32  length 
)

add new entry to list within map.

If key is new, new list is created. Otherwise value is appended to existing list.

Parameters
keymap key
abstractSyntaxUIDabstract syntax UID
rawDatapointer to raw data, must not be NULL
lengthlength of data block pointed to by data, in bytes
Returns
EC_Normal if successful, an error code otherwise
OFCondition DcmExtendedNegotiationMap::checkConsistency ( const char *  key,
const DcmPresentationContextMap pclist,
const char *  pckey 
) const

checks if each abstract syntax in the extended negotiation list identified by key is also contained in the presentation context list identified by pckey and maintained by pclist.

Parameters
keyextended negotiation key to check
pclistmap of presentation context lists
pckeypresentation context list key to check against
Returns
EC_Normal if consistent, an error code otherwise
const DcmExtendedNegotiationList* DcmExtendedNegotiationMap::getExtendedNegotiationList ( const char *  key) const

returns the list of extended negotiation items identified by the given key

Parameters
keyextended negotiation list to search
Returns
pointer to extended negotiation list if found, NULL otherwise
OFBool DcmExtendedNegotiationMap::isKnownKey ( const char *  key) const

checks if the key is known

Parameters
keykey name, must not be NULL
Returns
true if key is known, false otherwise

The documentation for this class was generated from the following file:


Generated on Tue Feb 28 2017 for DCMTK Version 3.6.1 20170228 by Doxygen 1.8.8