create wiki

go home go home
  1. about
  2. code
  3. wiki
  4. blog

Create Core

From Create Wiki

Jump to: navigation, search

The Create Core is the core of the framework. It does all of the heavy lifting for output composition.

There are two main parts: the Model and the View. Models hold the cross-output definition for any view, while the view knows how to implement that information.

The view to use for any given model is generated by a view factory, which is propagated down the view tree. The factory uses the string model type names from the models to determine which view to use (using RTTI, as much as it is hated, might be a better, higher-performance idea, and may be implemented in future).

A model has very few functions it must implement. Primarily, it needs to implement getTypeName, which returns a string containing the model type name, for use in factories.

Views currently write their output when their "commit" function is called.

Personal tools