Qt IOC Container 3.5

qic::PropertyParser Class Reference

#include <PropertyParser.h>

Inheritance diagram for qic::PropertyParser:

Inheritance graph
List of all members.

Public Member Functions

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

Detailed Description

PropertyParser defines the Interface for property parser objects.

Property parser objects convert XML representation of properties to QVariant objects. Custom parsers must implement this interface.

Zhihong "John" Wang

Definition at line 20 of file PropertyParser.h.

Constructor & Destructor Documentation

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

Definition at line 23 of file PropertyParser.h.

Member Function Documentation

virtual QVariant qic::PropertyParser::parseProperty const QDomNode &  prop,
QHash< QString, QObject * > &  parser_map
[pure virtual]

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.

Implemented in qic::PropertyListParser, qic::PropertyMapParser, qic::PropertyNullParser, qic::PropertyRefParser, and qic::PropertyValueParser.

Referenced by qic::XmlObjectDefinitionReader::parseObjectPropertySubTag(), qic::PropertyValueParser::parseProperty(), and qic::PropertyListParser::parseProperty().

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