Class: TStreamContextWrapper

Declaration: StreamContextWrapper.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

None.

Inherited By:

None.

Purpose:

Provides a safe way of managing contexts for a TStream. The TStreamContextWrapper will create a TContext for a TStream, and delete it when the TStreamContextWrapper is destroyed. If the TStream already has a context, it doesn't create another one and doesn't destroy the one on the TStream.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

Do not derive any classes from TStreamContextWrapper.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Other Considerations:

None.

Member Function: TStreamContextWrapper::TStreamContextWrapper

TStreamContextWrapper (TStream * stream)

Interface Category:

API.

Purpose:

Constructor.

Calling Context:

Call this function directly to construct a TStreamContextWrapper object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TStreamContextWrapper::~TStreamContextWrapper

~ TStreamContextWrapper ()

Interface Category:

API.

Purpose:

Destructor. If this TStreamContextWrapper created a context when it was constructed, it destroys it at this time.

Calling Context:

Call this function directly to destroy an object.

Parameters:

Return Value:

None.

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.