Qt IOC Container 3.5

qic::PropertyRefParser Class Reference

#include <PropertyRefParser.h>

Inheritance diagram for qic::PropertyRefParser:

Inheritance graph
Collaboration diagram for qic::PropertyRefParser:

Collaboration graph
List of all members.

Public Member Functions

virtual ~PropertyRefParser ()
virtual QVariant parseProperty (const QDomNode &prop, QHash< QString, QObject * > &parser_map)

Static Protected Attributes

static const char * PROPERTY_REF_OBJECT_ATTR = "object"
static const char * PROPERTY_REF_TAG = "ref"
static const char * PROPERTY_REF_WEAK_ATTR = "weak"

Detailed Description

PropertyRefParser parses <ref></ref> element of the properties and convert it to a ReferenceDefinition as a QVariant object.

Zhihong "John" Wang

Definition at line 20 of file PropertyRefParser.h.

Constructor & Destructor Documentation

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

Definition at line 26 of file PropertyRefParser.h.

Member Function Documentation

QVariant PropertyRefParser::parseProperty const QDomNode &  prop,
QHash< QString, QObject * > &  parser_map

Construct QVariant objects from property in XML format.

parser_map is provided for recursive parsing of the XML fragement.

prop property value as DOM sub-tree.
parser_map all the parsers registered in the system.

Implements qic::PropertyParser.

Definition at line 19 of file PropertyRefParser.cpp.


Member Data Documentation

const char * PropertyRefParser::PROPERTY_REF_OBJECT_ATTR = "object" [static, protected]

Definition at line 31 of file PropertyRefParser.h.

Referenced by parseProperty().

const char * PropertyRefParser::PROPERTY_REF_TAG = "ref" [static, protected]

Definition at line 32 of file PropertyRefParser.h.

Referenced by parseProperty().

const char * PropertyRefParser::PROPERTY_REF_WEAK_ATTR = "weak" [static, protected]

Definition at line 33 of file PropertyRefParser.h.

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