Class: TAbstractStreamer

Declaration: Streamer.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

MCollectible

Inherited By:

TStreamer

Purpose:

Abstract class that implements the protocol for streaming operations in a streamer object.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

Do not derive classes from TAbstractStreamer.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Other Considerations:

None.

Member Function: TAbstractStreamer::TAbstractStreamer

  1. TAbstractStreamer ()
  2. TAbstractStreamer (const TAbstractStreamer &)

Interface Category:

API.

Purpose:

  1. Default constructor.
  2. Copy constructor.

Calling Context:

  1. Call this function directly anytime that creation of a TAbstractStreamer is desired.
  2. Call this function directly to copy an object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TAbstractStreamer::~TAbstractStreamer

virtual ~ TAbstractStreamer ()

Interface Category:

API.

Purpose:

Destructor.

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.

Member Function: TAbstractStreamer::operator>>=

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

Interface Category:

API.

Purpose:

Stream-out operator.

Calling Context:

Call this function directly 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: TAbstractStreamer::operator<<=

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

Interface Category:

API.

Purpose:

Stream-in operator.

Calling Context:

Call this function directly to stream in data.

Parameters:

Return Value:

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

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TAbstractStreamer::TypeSafeStreamOut

virtual TStream & TypeSafeStreamOut (void * obj, TStream & stream) const

Interface Category:

API.

Purpose:

Pure virtual operation for polymorphically stream out an object.

Calling Context:

Call this function directly to stream out an object.

Parameters:

Return Value:

A reference to the stream.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

Derived classes need to override this operation.

Member Function: TAbstractStreamer::TypeSafeStreamIn

virtual void * TypeSafeStreamIn (TStream & stream) const

Interface Category:

API.

Purpose:

Pure virtual operation for polymorphically stream out an object.

Calling Context:

Call this function directly to stream in an object.

Parameters:

Return Value:

A reference to the stream.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

Derived classes need to override this operation.

Member Function: TAbstractStreamer::operator=

const TAbstractStreamer & operator =(const TAbstractStreamer &)

Interface Category:

API.

Purpose:

Assignment operator.

Calling Context:

Call this function directly when an object is assigned to another compatible object.

Parameters:

Return Value:

A non-const reference to the left-hand side object.

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.