Class: TPlacePresentationRegistry

Declaration: BasicPlaces.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

MCollectible

Inherited By:

None.

Purpose:

The TPlacePresentationRegistry family of classes provides the means by which document presentations can communicate state changes with the user environment in which they live.

Instantiation:

Abstract base class; do not allocate.

Deriving Classes:

Derive from this class to provide a concrete implementation of a place registry. Derived classes must override the pure virtual functions: RegisterDocumentPresentationOpened, RegisterDocumentPresentationClosed, CreateDocumentOpenedInterest, and CreateDocumentClosedInterest.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Member Function: TPlacePresentationRegistry::~TPlacePresentationRegistry

~ TPlacePresentationRegistry ()

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: TPlacePresentationRegistry::CopyPresentationRegistryFor

static TPlacePresentationRegistry * CopyPresentationRegistryFor (const TPlaceReference &)

Interface Category:

API.

Purpose:

Creates and returns a copy of the specified place's presentation registry.

Calling Context:

You can call this function directly.

Parameters:

Return Value:

Returns the copy.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TPlacePresentationRegistry::RegisterDocumentPresentationOpened

virtual void RegisterDocumentPresentationOpened (const TDocumentPresenterReference &)

Interface Category:

API.

Purpose:

Registers interest in the event of the specified document presenter being opened.

Calling Context:

You can call this function directly.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

This function is a pure virtual function and must be overridden by classes deriving from TPlacePresentationRegistry.

Member Function: TPlacePresentationRegistry::RegisterDocumentPresentationClosed

virtual void RegisterDocumentPresentationClosed (const TDocumentPresenterReference &)

Interface Category:

API.

Purpose:

Registers interest in the event of the specified document presenter being closed.

Calling Context:

You can call this function directly.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

This function is a pure virtual function and must be overridden by classes deriving from TPlacePresentationRegistry.

Member Function: TPlacePresentationRegistry::CreateDocumentOpenedInterest

virtual TInterest * CreateDocumentOpenedInterest () const

Interface Category:

API.

Purpose:

Creates and returns an interest object which is used to register interest in the event of a document being opened.

Calling Context:

You can call this function directly.

Parameters:

Return Value:

Returns the new interest object.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

This function is a pure virtual function and must be overridden by classes deriving from TPlacePresentationRegistry.

Member Function: TPlacePresentationRegistry::CreateDocumentClosedInterest

virtual TInterest * CreateDocumentClosedInterest () const

Interface Category:

API.

Purpose:

Creates and returns an interest object which is used to register interest in the event of a document being closed.

Calling Context:

You can call this function directly.

Parameters:

Return Value:

Returns the new interest object.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

This function is a pure virtual function and must be overridden by classes deriving from TPlacePresentationRegistry.

Member Function: TPlacePresentationRegistry::operator>>=

virtual TStream & operator >>=(TStream & towhere) const

Interface Category:

API.

Purpose:

Stream-out operator.

Calling Context:

Called to stream out data.

Parameters:

Return Value:

Returns a reference to the stream the object streams itself out to.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TPlacePresentationRegistry::operator<<=

virtual TStream & operator <<= (TStream & fromwhere)

Interface Category:

API.

Purpose:

Stream-in operator.

Calling Context:

Called to stream in data.

Parameters:

Return Value:

Returns a reference to the stream the object streams itself in from.

Exceptions:

Throws a TInvalidVersionError if the version of the object on the stream is unknown to the version of the shared library installed.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TPlacePresentationRegistry::TPlacePresentationRegistry

  1. TPlacePresentationRegistry ()
  2. TPlacePresentationRegistry (const TPlaceReference &)

Interface Category:

API.

Purpose:

  1. Default constructor.
  2. Create a polymorphic registry object for registering presentation events for the specified place.

Calling Context:

  1. Called by the stream-in operators.
  2. Derived class constructors can call this function directly.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

TPlacePresentationRegistry is an abstract base class--all the constructors are protected. Do not instantiate this class.
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.