DCMTK  Version 3.6.1 20120515
OFFIS DICOM Toolkit
Public Member Functions | Private Member Functions | Private Attributes
DcmRoleSelectionMap Class Reference

this helper class maintains a map of role selection lists. More...

List of all members.

Public Member Functions

 DcmRoleSelectionMap ()
 constructor
 ~DcmRoleSelectionMap ()
 destructor
OFCondition add (const char *key, const char *abstractSyntaxUID, T_ASC_SC_ROLE role)
 add new entry to list within map.
OFBool isKnownKey (const char *key) const
 checks if the key is known
OFCondition checkConsistency (const char *key, const DcmPresentationContextMap &pclist, const char *pckey) const
 checks if each abstract syntax in the role selection list identified by key is also contained in the presentation context list identified by pckey and maintained by pclist.
const DcmRoleSelectionListgetRoleSelectionList (const char *key) const
 returns the list of role selection items identified by the given key

Private Member Functions

 DcmRoleSelectionMap (const DcmRoleSelectionMap &arg)
 private undefined copy constructor
DcmRoleSelectionMapoperator= (const DcmRoleSelectionMap &arg)
 private undefined copy assignment operator

Private Attributes

DcmSimpleMap
< DcmRoleSelectionList * > 
map_
 map of role selection lists

Detailed Description

this helper class maintains a map of role selection lists.

Not intended for use by the end user.


Member Function Documentation

OFCondition DcmRoleSelectionMap::add ( const char *  key,
const char *  abstractSyntaxUID,
T_ASC_SC_ROLE  role 
)

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
roleSCP/SCU role
Returns:
EC_Normal if successful, an error code otherwise
OFCondition DcmRoleSelectionMap::checkConsistency ( const char *  key,
const DcmPresentationContextMap pclist,
const char *  pckey 
) const

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

Parameters:
keyrole selection key to check
pclistmap of presentation context lists
pckeypresentation context list key to check against
Returns:
EC_Normal if consistent, an error code otherwise

returns the list of role selection items identified by the given key

Parameters:
keyrole selection list to search
Returns:
pointer to role selection list if found, NULL otherwise
OFBool DcmRoleSelectionMap::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 May 15 2012 for DCMTK Version 3.6.1 20120515 by Doxygen 1.7.5.1-20111027