Models in detail

One of the problems of managing objects in a heterogeneous environment is that it is not always possible to know how to display and edit all types of data that an end user might want to use.

The CommonPoint application system anticipates that end users do not want to have their documents limited to data such as simple text and graphics. They want to have audio and full-motion video.

In the CommonPoint application system, models can hold either text or graphics. Many components can be used within the same document to provide a sophisticated presentation.

Types of models

The Compound Document framework provides two different types of models:

Types of data within a model

A model such as a
simple text model (TTextModel) contains only its native data types (TText). Models that support embedding (such as TEmbedderTextModel) will also be able to manage document components that contain foreign data as well as their own native data.

Storing data from a model

Models are told by the document when it is time to commit their data to persistent storage. The model is asked to stream out its data only if the data is changed.

In the CommonPoint application system persistent data is streamed in from storage media, operated upon during a document session, and then streamed out to the storage media again.

Editing data in a model

The model classes define member functions that permit access to the data within the model. Depending on how these functions are written (or overridden) you can add, delete, or change the information contained in the model.


[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