Class: TRecordHandle

Declaration: Record.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

MCollectible

Inherited By:

None.

Purpose:

This concrete class is the counted pointer memory management surrogate for TRecord and its derived classes. Clients should obtain record handles for records from classes such as TRecordSource.

Instantiation:

Always allocate on the stack.

Deriving Classes:

None.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Other Considerations:

None.

Member Function: TRecordHandle::TRecordHandle

  1. TRecordHandle ()
  2. TRecordHandle (const TRecordHandle &)
  3. TRecordHandle (TRecord * record)

Interface Category:

API.

Purpose:

  1. Default constructor.
  2. Copy constructor.
  3. Instantiates and initializes a handle.

Calling Context:

  1. Called by the stream-in operators and any other function that needs to construct an uninitialized object.
  2. Called to copy an object.
  3. Called to instantiate and initialize an object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TRecordHandle::~TRecordHandle

virtual ~ TRecordHandle ()

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: TRecordHandle::operator=

TRecordHandle & operator =(const TRecordHandle &)

Interface Category:

API.

Purpose:

Assignment operator.

Calling Context:

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

Member Function: TRecordHandle::GetField

virtual TRecordFieldHandle GetField (FieldPosition) const

Interface Category:

API.

Purpose:

Returns a handle to the field at the given position.

Calling Context:

Call this function directly.

Parameters:

Return Value:

A handle to the field at the given position.

Exceptions:

Throws an exception on invalid positions.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TRecordHandle::GetFieldCount

virtual FieldCount GetFieldCount () const

Interface Category:

API.

Purpose:

Returns the number of fields in the record.

Calling Context:

Call this function directly.

Parameters:

Return Value:

The number of fields in the record.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TRecordHandle::operator>>=

virtual TStream & operator >>=(TStream &) 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: TRecordHandle::operator<<=

virtual TStream & operator <<= (TStream &)

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 no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TRecordHandle::GetRecord

virtual const TRecord & GetRecord () const

Interface Category:

API.

Purpose:

Returns the record associated with the handle.

Calling Context:

Call this function directly.

Parameters:

Return Value:

The record associated with the handle.

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.