Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
#include <berryElementHandler.h>
Public Member Functions | |
berryObjectMacro (ElementHandler) | |
~ElementHandler () | |
virtual SmartPointer< Expression > | Create (ExpressionConverter *converter, SmartPointer< IConfigurationElement > config)=0 |
virtual SmartPointer< Expression > | Create (ExpressionConverter *converter, Poco::XML::Element *element) |
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 Member Functions | |
static ElementHandler::Pointer | GetDefault () |
Static Public Member Functions inherited from berry::Object | |
static const char * | GetStaticClassName () |
static Reflection::TypeInfo | GetStaticTypeInfo () |
static QList< Reflection::TypeInfo > | GetStaticSuperclasses () |
Protected Member Functions | |
virtual void | ProcessChildren (ExpressionConverter *converter, SmartPointer< IConfigurationElement > element, SmartPointer< CompositeExpression > expression) |
virtual void | ProcessChildren (ExpressionConverter *converter, Poco::XML::Element *element, SmartPointer< CompositeExpression > expression) |
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 |
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 |
Protected Attributes inherited from berry::Object | |
QAtomicInt | m_ReferenceCount |
QMutex | m_ReferenceCountLock |
An element handler converts an IConfigurationElement into a corresponding expression object.
The class should be subclassed by clients wishing to provide an element handler for special expressions.
Definition at line 47 of file berryElementHandler.h.
berry::ElementHandler::~ElementHandler | ( | ) |
Definition at line 31 of file berryElementHandler.cpp.
berry::ElementHandler::berryObjectMacro | ( | ElementHandler | ) |
|
pure virtual |
Creates the corresponding expression for the given configuration element.
converter | the expression converter used to initiate the conversion process |
config | the configuration element to convert |
CoreException | if the conversion failed |
|
virtual |
Creates the corresponding expression for the given DOM element. This is an optional operation that is only required if the handler supports conversion of DOM elements.
converter | the expression converter used to initiate the conversion process |
element | the DOM element to convert |
CoreException | if the conversion failed |
Definition at line 44 of file berryElementHandler.cpp.
|
static |
The default element handler which can cope with all XML expression elements defined by the common expression language.
Definition at line 36 of file berryElementHandler.cpp.
Referenced by berry::ExpressionConverter::GetDefault().
|
protectedvirtual |
Converts the children of the given configuration element and adds them to the given composite expression.
Note this is an internal method and should not be called by clients.
converter | the converter used to do the actual conversion |
element | the configuration element for which the children are to be processed |
expression | the composite expression representing the result of the conversion |
CoreException | if the conversion failed |
|
protectedvirtual |
Converts the children of the given DOM element and adds them to the given composite expression.
Note this is an internal method and should not be called by clients.
converter | the converter used to do the actual conversion |
element | the DOM element for which the children are to be processed |
expression | the composite expression representing the result of the conversion |
CoreException | if the conversion failed |