Changes between Version 7 and Version 8 of code/doc/Factory
- Timestamp:
- Apr 12, 2017, 11:08:08 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
code/doc/Factory
v7 v8 1 1 = Factory = 2 [[TracNav(TracNav/TOC_Development)]]3 2 4 3 == Description == 5 4 6 The Factory is a [wiki: singleton] that maps [wiki:Identifier Identifiers] with their name and their network ID. The Factory is used by the !CreateFactory(classname) macro to add new entries. The ClassByString("classname") and ClassByID(network ID) macros use the Factory to retrieve an [wiki:Identifier] with a given classname or a given network ID respectively. See [wiki:CoreIncludes] for more information.5 The Factory is a [wiki:Singleton] that maps [wiki:Identifier Identifiers] with their name and their network ID. The Factory is used by the !CreateFactory(classname) macro to add new entries. The ClassByString("classname") and ClassByID(network ID) macros use the Factory to retrieve an [wiki:Identifier] with a given classname or a given network ID respectively. See [wiki:CoreIncludes] for more information. 7 6 8 7 The ClassByString and ClassByID macros are an abbreviation of the static function Factory::getIdentifier("name" or ID). The Factory also handles the change of a network ID to avoid conflicts with ambiguous map-entries.