Medical Imaging Interaction Toolkit
2024.06.00
Medical Imaging Interaction Toolkit
|
#include <berryIEvaluationContext.h>
Public Member Functions | |
berryObjectMacro (berry::IEvaluationContext) | |
~IEvaluationContext () override | |
virtual IEvaluationContext * | GetParent () const =0 |
virtual IEvaluationContext * | GetRoot () const =0 |
virtual void | SetAllowPluginActivation (bool value)=0 |
virtual bool | GetAllowPluginActivation () const =0 |
virtual Object::ConstPointer | GetDefaultVariable () const =0 |
virtual void | AddVariable (const QString &name, const Object::ConstPointer &value)=0 |
virtual Object::ConstPointer | RemoveVariable (const QString &name)=0 |
virtual Object::ConstPointer | GetVariable (const QString &name) const =0 |
virtual Object::ConstPointer | ResolveVariable (const QString &name, const QList< Object::Pointer > &args) const =0 |
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 QString | ToString () 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 |
Static Public Attributes | |
static Object::ConstPointer | UNDEFINED_VARIABLE |
Additional Inherited Members | |
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::Object | |
static const char * | GetStaticClassName () |
static Reflection::TypeInfo | GetStaticTypeInfo () |
static QList< Reflection::TypeInfo > | GetStaticSuperclasses () |
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 |
An evaluation context is used to manage a set of objects needed during XML expression evaluation. A context has a parent context, can manage a set of named variables and has a default variable. The default variable is used during XML expression evaluation if no explicit variable is referenced.
This interface is not intended to be implemented by clients. Clients are allowed to instantiate EvaluationContext
.
Definition at line 36 of file berryIEvaluationContext.h.
|
override |
|
pure virtual |
Adds a new named variable to this context. If a variable with the name already exists the new one overrides the existing one.
name | the variable's name |
value | the variable's value |
Implemented in berry::EvaluationContext.
berry::IEvaluationContext::berryObjectMacro | ( | berry::IEvaluationContext | ) |
|
pure virtual |
Returns whether this evaluation context supports plug-in activation. If not set via SetAllowPluginActivation the parent value is returned. If no parent is set false
is returned.
Implemented in berry::EvaluationContext.
|
pure virtual |
Returns the default variable.
null
if no default variable is managed. Implemented in berry::EvaluationContext.
|
pure virtual |
Returns the parent context or null
if this is the root of the evaluation context hierarchy.
null
Implemented in berry::EvaluationContext.
|
pure virtual |
Returns the root evaluation context.
Implemented in berry::EvaluationContext.
|
pure virtual |
Returns the variable managed under the given name.
name | the variable's name |
null
if the content doesn't manage a variable with the given name Implemented in berry::EvaluationContext.
|
pure virtual |
Removes the variable managed under the given name from this evaluation context.
name | the variable's name |
null
if the variable doesn't exist Implemented in berry::EvaluationContext.
|
pure virtual |
Resolves a variable for the given name and arguments. This method can be used to dynamically resolve variable such as plug-in descriptors, resources, etc. The method is used by the resolve
expression.
name | the variable to resolve |
args | an object array of arguments used to resolve the variable |
null
if no variable can be resolved for the given name and arguments CoreException | if an errors occurs while resolving the variable |
Implemented in berry::EvaluationContext.
|
pure virtual |
Specifies whether this evaluation context allows activation of plug-ins for testers used in the expression tree. To actual trigger the plug-in loading this flag has to be set to true
and the actual test expression must have the attribute forcePluginActivation
set to true
as well.
value | whether this evaluation context allows plug-in activation |
Implemented in berry::EvaluationContext.
|
static |
Represents the value used by variables that exist but are not defined in a evaluation context. When tested by the 'with' expression, false
will be returned.
Definition at line 46 of file berryIEvaluationContext.h.