Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Version 4 and Version 5 of code/doc/ClassFactory


Ignore:
Timestamp:
Sep 29, 2008, 3:09:03 AM (16 years ago)
Author:
landauf
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • code/doc/ClassFactory

    v4 v5  
    44== Description ==
    55
    6 The [wiki:ClassFactory] [wiki:template] creates objects of a specific class. Every [wiki:Identifier] has a [wiki:ClassFactory] of the related class to create new objects with the fabricate() function.
     6The !ClassFactory is a template, creating objects of the specified template argument. Every class calling the '''CreateFactory('''''classname''''')''' macro from [wiki:CoreIncludes] has a !ClassFactory in its [wiki:Identifier] to create new objects with the fabricate() function.
     7
     8Additionally the !ClassFactory helps creating the class hierarchy. To generate the class tree, instances of the leaves of the tree have to be created. But only classes with an existing !ClassFactory can be created. Of course the class tree can be created on the fly, but the earlier an object gets created, the earlier informations like the name of the class are available in the Identifier. That's why the !ClassFactory plays an important role.