Class: TGUIModelViewStationeryFor

Declaration: GUICompoundDocument.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

TDocumentComponentStationery

Inherited By:

None.

Purpose:

This template takes a model class and a view class as its arguments. The AView class must have a constructor taking a TGUIBundle*. For example, the AView( TGUIBundle* ) constructor will be called by HandleCreateMainView. The AModel class must have a public empty constructor. For example, the AModel constructor will be called by CreateModel. Uses TGUIPresenterStateFor<TGUIPresenterFor<AView> >in its implementation.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

Do not derive from this class; rather, derive from the basic TCompoundDocumentStationery instead.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Other Considerations:

None.

Member Function: TGUIModelViewStationeryFor::TGUIModelViewStationeryFor

  1. TGUIModelViewStationeryFor ()
  2. TGUIModelViewStationeryFor (const TGUIModelViewStationeryFor < AModel, AView >&)

Interface Category:

API.

Purpose:

  1. Default constructor.
  2. Creates a new GUI model view stationery for the model and view specified.

Calling Context:

  1. Called by the stream-in operators.
  2. Called by the Presentation framework.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TGUIModelViewStationeryFor::~TGUIModelViewStationeryFor

virtual ~ TGUIModelViewStationeryFor ()

Interface Category:

API.

Purpose:

Destructor.

Calling Context:

Called to destroy an object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TGUIModelViewStationeryFor::CreateComponent

  1. TDocumentComponent * CreateComponent ()
  2. TDocumentComponent * CreateComponent (AModel * theModelTemplateToAdopt)

Interface Category:

API.

Purpose:

  1. Creates a document component appropriate for this object's model and view.
  2. Creates a document component appropriate for this object's model and view.

Calling Context:

  1. Called by the Presentation framework.
  2. Called by the Presentation framework.

Parameters:

Return Value:

Returns the new document component.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TGUIModelViewStationeryFor::CreateModelPresenterState

virtual TModelPresenterState * CreateModelPresenterState ()

Interface Category:

API.

Purpose:

Creates a TModelPresenterState appropriate for this object's view.

Calling Context:

You can call this function directly.

Parameters:

Return Value:

Returns the new model presenter state.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TGUIModelViewStationeryFor::CreateModel

virtual TModel * CreateModel ()

Interface Category:

API.

Purpose:

Create the root model for the document to be created from this stationery.

Calling Context:

Called by TDocumentComponentStationery.

Parameters:

Return Value:

Returns the root model for the document.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.