|
Medical Imaging Interaction Toolkit
2025.08.00
Medical Imaging Interaction Toolkit
|
#include <berryMultiStatus.h>


Public Member Functions | |
| MultiStatus (const QString &pluginId, int code, const QList< IStatus::Pointer > &newChildren, const QString &message, const SourceLocation &sl) | |
| MultiStatus (const QString &pluginId, int code, const QList< IStatus::Pointer > &newChildren, const QString &message, const ctkException &exception, const SourceLocation &sl) | |
| MultiStatus (const QString &pluginId, int code, const QString &message, const SourceLocation &sl) | |
| MultiStatus (const QString &pluginId, int code, const QString &message, const ctkException &exception, const SourceLocation &sl) | |
| void | Add (IStatus::Pointer status) |
| void | AddAll (IStatus::Pointer status) |
| QList< IStatus::Pointer > | GetChildren () const override |
| bool | IsMultiStatus () const override |
| void | Merge (const IStatus::Pointer &status) |
| QString | ToString () const override |
Public Member Functions inherited from berry::Status | |
| Status (const Severity &severity, const QString &pluginId, int code, const QString &message, const SourceLocation &sl) | |
| Status (const Severity &severity, const QString &pluginId, int code, const QString &message, const ctkException &exc, const SourceLocation &sl) | |
| Status (const Severity &severity, const QString &pluginId, const QString &message, const SourceLocation &sl) | |
| Status (const Severity &severity, const QString &pluginId, const QString &message, const ctkException &exc, const SourceLocation &sl) | |
| QList< IStatus::Pointer > | GetChildren () const override |
| int | GetCode () const override |
| const ctkException * | GetException () const override |
| QString | GetMessage () const override |
| QString | GetPlugin () const override |
| Severity | GetSeverity () const override |
| bool | IsMultiStatus () const override |
| bool | IsOK () const override |
| bool | Matches (const Severities &severityMask) const override |
| QString | GetFileName () const override |
| QString | GetMethodName () const override |
| int | GetLineNumber () const override |
| QString | ToString () const override |
Public Member Functions inherited from berry::IStatus | |
| berryObjectMacro (berry::IStatus) | |
Public Member Functions inherited from berry::Object | |
| 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 uint | HashCode () 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 |
| virtual bool | operator== (const Object *) const |
Public Attributes | |
| berryObjectMacro1 | |
Additional Inherited Members | |
Public Types inherited from berry::IStatus | |
| enum | Severity { OK_TYPE, INFO_TYPE, WARNING_TYPE, ERROR_TYPE, CANCEL_TYPE } |
Public Types inherited from berry::Object | |
| 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 Public Member Functions inherited from berry::Status | |
| static const IStatus::Pointer | OK_STATUS (const SourceLocation &sl) |
| static const IStatus::Pointer | CANCEL_STATUS (const SourceLocation &sl) |
Static Public Member Functions inherited from berry::Object | |
| static const char * | GetStaticClassName () |
| static Reflection::TypeInfo | GetStaticTypeInfo () |
| static QList< Reflection::TypeInfo > | GetStaticSuperclasses () |
Protected Member Functions inherited from berry::Status | |
| virtual void | SetCode (int code) |
| virtual void | SetException (const ctkException &exception) |
| virtual void | SetMessage (const QString &message) |
| virtual void | SetPlugin (const QString &pluginId) |
| virtual void | SetSeverity (const Severity &severity) |
Protected Member Functions inherited from berry::Object | |
| 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 |
Protected Attributes inherited from berry::Object | |
| QAtomicInt | m_ReferenceCount |
| QMutex | m_ReferenceCountLock |
A concrete multi-status implementation, suitable either for instantiating or subclassing.
This class can be used without OSGi running.
Definition at line 30 of file berryMultiStatus.h.
| berry::MultiStatus::MultiStatus | ( | const QString & | pluginId, |
| int | code, | ||
| const QList< IStatus::Pointer > & | newChildren, | ||
| const QString & | message, | ||
| const SourceLocation & | sl | ||
| ) |
Creates and returns a new multi-status object with the given children.
| pluginId | the unique identifier of the relevant plug-in |
| code | the plug-in-specific status code |
| newChildren | the list of children status objects |
| message | a human-readable message, localized to the current locale |
| sl |
| berry::MultiStatus::MultiStatus | ( | const QString & | pluginId, |
| int | code, | ||
| const QList< IStatus::Pointer > & | newChildren, | ||
| const QString & | message, | ||
| const ctkException & | exception, | ||
| const SourceLocation & | sl | ||
| ) |
Creates and returns a new multi-status object with the given children.
| pluginId | the unique identifier of the relevant plug-in |
| code | the plug-in-specific status code |
| newChildren | the list of children status objects |
| message | a human-readable message, localized to the current locale |
| exception | a low-level exception. |
| sl |
| berry::MultiStatus::MultiStatus | ( | const QString & | pluginId, |
| int | code, | ||
| const QString & | message, | ||
| const SourceLocation & | sl | ||
| ) |
Creates and returns a new multi-status object with no children.
| pluginId | the unique identifier of the relevant plug-in |
| code | the plug-in-specific status code |
| message | a human-readable message, localized to the current locale |
| sl |
| berry::MultiStatus::MultiStatus | ( | const QString & | pluginId, |
| int | code, | ||
| const QString & | message, | ||
| const ctkException & | exception, | ||
| const SourceLocation & | sl | ||
| ) |
Creates and returns a new multi-status object with no children.
| pluginId | the unique identifier of the relevant plug-in |
| code | the plug-in-specific status code |
| message | a human-readable message, localized to the current locale |
| exception | a low-level exception, or null if not applicable |
| sl |
| void berry::MultiStatus::Add | ( | IStatus::Pointer | status | ) |
Adds the given status to this multi-status.
| status | the new child status |
| void berry::MultiStatus::AddAll | ( | IStatus::Pointer | status | ) |
Adds all of the children of the given status to this multi-status. Does nothing if the given status has no children (which includes the case where it is not a multi-status).
| status | the status whose children are to be added to this one |
|
overridevirtual |
Returns a list of status object immediately contained in this multi-status, or an empty list if this is not a multi-status.
Implements berry::IStatus.
|
overridevirtual |
Returns whether this status is a multi-status. A multi-status describes the outcome of an operation involving multiple operands.
The severity of a multi-status is derived from the severities of its children; a multi-status with no children is OK_TYPE by definition. A multi-status carries a plug-in identifier, a status code, a message, and an optional exception. Clients may treat multi-status objects in a multi-status unaware way.
true for a multi-status, false otherwise Implements berry::IStatus.
| void berry::MultiStatus::Merge | ( | const IStatus::Pointer & | status | ) |
Merges the given status into this multi-status. Equivalent to Add(status) if the given status is not a multi-status. Equivalent to AddAll(status) if the given status is a multi-status.
| status | the status to merge into this one |
|
overridevirtual |
Returns a string representation of the status, suitable for debugging purposes only.
Reimplemented from berry::Object.
| berry::MultiStatus::berryObjectMacro1 |
Definition at line 43 of file berryMultiStatus.h.