The TTilesModel interface
Finally, you need to know that TModel uses the TaligentTypeExtension facility and therefore TTilesModel must implement the required constructors, streaming operators, and assignment operator. In addition, model classes need to provide support for dynamic type-casting. You can easily provide this support for models by calling the macro ModelDeclarationsMacro
in your class header and the macro ModelDefinitionsMacro
in your class source. These macros define both the TaligentTypeExtension utilities and the functions that ensure safe, type-checked dynamic casts.
The minimal definition of TTilesModel requires:
- Default selection support by implementing CreateSelection
- Synchronized access to the data in the model
- TaligentTypeExtension support
This figure shows all the functions you need to implement for the
TTilesModel class:
[Contents]
[Previous]
[Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.
Generated with WebMaker