Medical Imaging Interaction Toolkit  2018.4.99-12ad79a3
Medical Imaging Interaction Toolkit
berry::HandleObjectManager Class Reference

#include <berryHandleObjectManager.h>

Inheritance diagram for berry::HandleObjectManager:

Protected Types

typedef QSet< SmartPointer< HandleObject > > HandleObjectsSet
 
typedef QHash< QString, SmartPointer< HandleObject > > HandleObjectsByIdMap
 

Protected Member Functions

void CheckId (const QString &id) const
 
QSet< QString > GetDefinedHandleObjectIds () const
 

Protected Attributes

HandleObjectsSet definedHandleObjects
 
HandleObjectsByIdMap handleObjectsById
 

Detailed Description

A manager of HandleObject instances. This has some common behaviour which is shared between all such managers.

Clients may extend.

Definition at line 37 of file berryHandleObjectManager.h.

Member Typedef Documentation

◆ HandleObjectsByIdMap

Definition at line 43 of file berryHandleObjectManager.h.

◆ HandleObjectsSet

Member Function Documentation

◆ CheckId()

void berry::HandleObjectManager::CheckId ( const QString &  id) const
protected

Verifies that the identifier is valid. Exceptions will be thrown if the identifier is invalid in some way.

Parameters
idThe identifier to validate; may be anything.

Definition at line 20 of file berryHandleObjectManager.cpp.

Referenced by berry::CommandManager::GetCategory(), berry::CommandManager::GetCommand(), and berry::CommandManager::GetParameterType().

◆ GetDefinedHandleObjectIds()

QSet< QString > berry::HandleObjectManager::GetDefinedHandleObjectIds ( ) const
protected

Returns the set of identifiers for those handle objects that are defined.

Returns
The set of defined handle object identifiers; this value may be empty, but it is never null.

Definition at line 29 of file berryHandleObjectManager.cpp.

References definedHandleObjects.

Referenced by berry::CommandManager::GetDefinedCommandIds().

Member Data Documentation

◆ definedHandleObjects

HandleObjectsSet berry::HandleObjectManager::definedHandleObjects
protected

The set of handle objects that are defined. This value may be empty, but it is never null.

Definition at line 49 of file berryHandleObjectManager.h.

Referenced by berry::CommandManager::GetDefinedCommands(), and GetDefinedHandleObjectIds().

◆ handleObjectsById

HandleObjectsByIdMap berry::HandleObjectManager::handleObjectsById
protected

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