Qt IOC Container 3.5


qic::PropertyMapInjector Class Reference

#include <PropertyMapInjector.h>

Inheritance diagram for qic::PropertyMapInjector:

Inheritance graph
[legend]
Collaboration diagram for qic::PropertyMapInjector:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual ~PropertyMapInjector ()
virtual QVariant injectReference (QVariant &prop, ReferenceResolver *resolver, QHash< QString, QObject * > &injector_map)

Detailed Description

PropertyMapInjector converts the ReferenceDefinition within QVariantMap to actual object reference as a QVariant object.

Author:
Zhihong "John" Wang

Definition at line 21 of file PropertyMapInjector.h.


Constructor & Destructor Documentation

virtual qic::PropertyMapInjector::~PropertyMapInjector  )  [inline, virtual]
 

Definition at line 27 of file PropertyMapInjector.h.


Member Function Documentation

QVariant PropertyMapInjector::injectReference QVariant &  prop,
ReferenceResolver resolver,
QHash< QString, QObject * > &  injector_map
[virtual]
 

Replace the ReferenceDefinition structs in property value with the actual object reference.

injector_map is provided for recursive injection of object references.

Parameters:
prop property value as QVariant.
injector_map all the injectors registered in the system.
Returns:
QVariant after reference injection.

Implements qic::ReferenceInjector.

Definition at line 11 of file PropertyMapInjector.cpp.

References qic::ReferenceInjector::injectReference().


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