Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berry::IVariableResolver Struct Referenceabstract

#include <berryIVariableResolver.h>

Public Member Functions

virtual ~IVariableResolver ()
 
virtual Object::Pointer Resolve (const QString &name, const QList< Object::Pointer > &args)=0
 

Detailed Description

A variable resolver can be used to add additional variable resolving strategies to an EvaluationContext.

See also
EvaluationContext::ResolveVariable(String, Object[])

Definition at line 34 of file berryIVariableResolver.h.

Constructor & Destructor Documentation

berry::IVariableResolver::~IVariableResolver ( )
virtual

Definition at line 21 of file berryIVariableResolver.cpp.

Member Function Documentation

virtual Object::Pointer berry::IVariableResolver::Resolve ( const QString &  name,
const QList< Object::Pointer > &  args 
)
pure virtual

Resolves a variable for the given name and arguments. The handler is allowed to return null to indicate that it is not able to resolve the requested variable.

Parameters
namethe variable to resolve
argsan object array of arguments used to resolve the variable
Returns
the variable's value or null if no variable could be resolved
Exceptions
CoreExceptionif an errors occurs while resolving the variable

Referenced by berry::EvaluationContext::ResolveVariable().


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