Overview
Examples
Screenshots
Comparisons
Applications
Download
Manual
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Language
English











SourceForge.net Logo



WithFactory and PolyXML templates

 

WithFactory is a generic class-factory template.

It allows registering classes derived from it and provide many useful functions on them :

 

Object creation by class name

Query of class name from object

Association of some fields to class types, as an icon, a group, a description and so on

Query of above fields given any object belonging to the class hierarchy

Get a list of registered classes belonging to hierarchy

 

WithPolyXML template, derived from WithFactory one, provides the necessary behaviour to handle XML streaming of classes belong to hierarchy.

All classes derived from WithPolyXML template can be inserted into any of following containers :

 

PolyXMLArray            A polymorphic Array

PolyXMLArrayMap        A polymorphic ArrayMap

PolyXMLArrayMapOne        A polymorphic ArrayMap containing One<T>

 

The containers will manage automatically the XML in and out streaming; on loading the correct objects will be created and put into the array.

 

Please see the PolyXMLTest example application for usage details.

 

Last edit by micio on 10/21/2011. Do you want to contribute?. T++