Medical Imaging Interaction Toolkit
2024.12.99-d991a09f
Medical Imaging Interaction Toolkit
|
#include <berryNamedHandleObjectWithState.h>
Public Member Functions | |
berryObjectMacro (berry::NamedHandleObjectWithState) | |
void | AddState (const QString &stateId, const SmartPointer< State > &state) override |
QString | GetDescription () const override |
QString | GetName () const override |
SmartPointer< State > | GetState (const QString &stateId) const override |
QList< QString > | GetStateIds () const override |
void | RemoveState (const QString &id) override |
![]() | |
berryObjectMacro (NamedHandleObject) | |
![]() | |
berryObjectMacro (HandleObject) | |
bool | operator== (const Object *object) const override |
QString | GetId () const |
uint | HashCode () const override |
bool | IsDefined () const |
virtual void | Undefine ()=0 |
![]() | |
virtual QString | GetClassName () const |
virtual Reflection::TypeInfo | GetTypeInfo () const |
virtual QList< Reflection::TypeInfo > | GetSuperclasses () const |
virtual void | Delete () |
QDebug | Print (QDebug os, Indent Indent=0) const |
virtual QString | ToString () const |
virtual bool | operator< (const Object *) const |
void | Register () const |
void | UnRegister (bool del=true) const |
int | GetReferenceCount () const |
void | SetReferenceCount (int) |
void | AddDestroyListener (const MessageAbstractDelegate<> &delegate) const |
void | RemoveDestroyListener (const MessageAbstractDelegate<> &delegate) const |
![]() | |
berryObjectMacro (berry::IObjectWithState) | |
Protected Member Functions | |
NamedHandleObjectWithState (const QString &id) | |
![]() | |
NamedHandleObject (const QString &id) | |
![]() | |
HandleObject (const QString &id) | |
![]() | |
Object () | |
virtual | ~Object () |
virtual QDebug | PrintSelf (QDebug os, Indent indent) const |
virtual QDebug | PrintHeader (QDebug os, Indent indent) const |
virtual QDebug | PrintTrailer (QDebug os, Indent indent) const |
Additional Inherited Members | |
![]() | |
typedef Object | Self |
typedef berry::SmartPointer< Self > | Pointer |
typedef berry::SmartPointer< const Self > | ConstPointer |
typedef berry::WeakPointer< Self > | WeakPtr |
typedef berry::WeakPointer< const Self > | ConstWeakPtr |
![]() | |
static const char * | GetStaticClassName () |
static Reflection::TypeInfo | GetStaticTypeInfo () |
static QList< Reflection::TypeInfo > | GetStaticSuperclasses () |
![]() | |
QString | description |
QString | name |
![]() | |
bool | defined |
const QString | id |
QString | str |
![]() | |
QAtomicInt | m_ReferenceCount |
QMutex | m_ReferenceCountLock |
A named handle object that can carry state with it. This state can be used to override the name or description.
Clients may neither instantiate nor extend this class.
Definition at line 32 of file berryNamedHandleObjectWithState.h.
|
protected |
Constructs a new instance of NamedHandleObjectWithState
.
id | The identifier for this handle; must not be empty. |
|
overridevirtual |
Adds state to this object.
id | The identifier indicating the type of state being added; must not be null . |
state | The new state to add to this object; must not be null . |
Implements berry::IObjectWithState.
berry::NamedHandleObjectWithState::berryObjectMacro | ( | berry::NamedHandleObjectWithState | ) |
|
overridevirtual |
Returns the description for this handle.
null
if there is no description. NotDefinedException | If the handle is not currently defined. |
Reimplemented from berry::NamedHandleObject.
|
overridevirtual |
Returns the name for this handle.
null
. NotDefinedException | If the handle is not currently defined. |
Reimplemented from berry::NamedHandleObject.
|
overridevirtual |
Gets the state with the given id.
stateId | The identifier of the state to retrieve; must not be null . |
null
if there is no state with the given id. Implements berry::IObjectWithState.
|
overridevirtual |
Gets the identifiers for all of the state associated with this object.
null
. Implements berry::IObjectWithState.
|
overridevirtual |
Removes state from this object.
stateId | The id of the state to remove from this object; must not be null . |
Implements berry::IObjectWithState.