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
DcmPresentationContextMap Class Reference

this helper class maintains a map of presentation context lists. More...

Public Member Functions

 DcmPresentationContextMap ()
 constructor
 
 ~DcmPresentationContextMap ()
 destructor
 
void clear ()
 Resets DcmPresentationContextMap and frees any allocated memory.
 
 DcmPresentationContextMap (const DcmPresentationContextMap &arg)
 Copy constructor, creates deep copy.
 
DcmPresentationContextMapoperator= (const DcmPresentationContextMap &arg)
 Copy assignment operator, creates deep copy.
 
OFMap< OFString,
DcmPresentationContextList * >
::const_iterator 
begin ()
 const iterator pointing to start of presentation context map More...
 
OFMap< OFString,
DcmPresentationContextList * >
::const_iterator 
end ()
 const iterator pointing to end of presentation context map (behind last entry) More...
 
const DcmPresentationContextListgetPresentationContextList (const OFString &pcName)
 get list of presentation contexts given the corresponding symbolic name More...
 
OFCondition add (const OFString &key, const OFString &abstractSyntaxUID, const OFString &transferSyntaxKey)
 add new entry to list within map. More...
 
OFBool isKnownKey (const char *key) const
 checks if the key is known More...
 
OFBool isKnownAbstractSyntax (const char *key, const DcmUIDHandler &abstractSyntax) const
 checks if the given abstract syntax is contained in the list identified by the given key. More...
 
const DcmPresentationContextListgetPresentationContextList (const char *key) const
 returns the list of presentation contexts identified by the given key More...
 

Private Attributes

OFMap< OFString,
DcmPresentationContextList * > 
map_
 map of presentation context lists
 

Detailed Description

this helper class maintains a map of presentation context lists.

Not intended for use by the end user.

Member Function Documentation

OFCondition DcmPresentationContextMap::add ( const OFString key,
const OFString abstractSyntaxUID,
const OFString transferSyntaxKey 
)

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
transferSyntaxKeysymbolic name of transfer syntax UID list, not checked here.
Returns
EC_Normal if successful, an error code otherwise
OFMap<OFString, DcmPresentationContextList*>::const_iterator DcmPresentationContextMap::begin ( )

const iterator pointing to start of presentation context map

Returns
iterator to start of presentation context map
OFMap<OFString, DcmPresentationContextList*>::const_iterator DcmPresentationContextMap::end ( )

const iterator pointing to end of presentation context map (behind last entry)

Returns
iterator to end of presentation context map
const DcmPresentationContextList* DcmPresentationContextMap::getPresentationContextList ( const OFString pcName)

get list of presentation contexts given the corresponding symbolic name

Parameters
pcNamethe symbolic name of the pc list
Returns
the requested presentation context list (or NULL, if not existing)
const DcmPresentationContextList* DcmPresentationContextMap::getPresentationContextList ( const char *  key) const

returns the list of presentation contexts identified by the given key

Parameters
keypresentation context list to search
Returns
pointer to presentation context list if found, NULL otherwise
OFBool DcmPresentationContextMap::isKnownAbstractSyntax ( const char *  key,
const DcmUIDHandler abstractSyntax 
) const

checks if the given abstract syntax is contained in the list identified by the given key.

Parameters
keypresentation context list to search
abstractSyntaxabstract syntax UID to search
Returns
true if abstract syntax is in list, false otherwise
OFBool DcmPresentationContextMap::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