Class: MScrapAcceptor

Declaration: ScrapNegotiator.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

None.

Inherited By:

MScrapNegotiator

Purpose:

MScrapAcceptor is a mixin class that provides the protocols necessary for accepting data from the clipboard.

Instantiation:

Abstract base class; do not allocate.

Deriving Classes:

Provided classes include MScrapNegotiator. Derived classes must override the pure virtual function AcceptData.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Member Function: MScrapAcceptor::~MScrapAcceptor

virtual ~ MScrapAcceptor ()

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: MScrapAcceptor::AcceptData

virtual bool AcceptData (const TTypeDescription & theType, const TScrapItem & theData)

Interface Category:

API.

Purpose:

Accepts the specified data of the specified type.

Calling Context:

You can call this function directly.

Parameters:

Return Value:

Returns true if this acceptor accepts the provided data.

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 MScrapAcceptor.

Member Function: MScrapAcceptor::MScrapAcceptor

MScrapAcceptor ()

Interface Category:

API.

Purpose:

Default constructor.

Calling Context:

Called by the stream-in operators.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

MScrapAcceptor 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.