Class: TRecordShortField

Declaration: Record.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

TRecordField

Inherited By:

None.

Purpose:

This concrete class represents a database column of type short. To instantiate a field, clients typically use the memory surrogate class TRecordShortFieldHandle.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

None.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Other Considerations:

None.

Member Function: TRecordShortField::TRecordShortField

  1. TRecordShortField ()
  2. TRecordShortField (const short & value)
  3. TRecordShortField (const TRecordShortField &)

Interface Category:

API.

Purpose:

  1. Default constructor.
  2. Constructs a field with the specified initial value.
  3. Copy constructor.

Calling Context:

  1. Called by the stream-in operators and any other function that needs to construct an uninitialized object.
  2. Called to construct and initialize an object.
  3. Called 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: TRecordShortField::~TRecordShortField

virtual ~ TRecordShortField ()

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

TRecordShortField & operator =(const TRecordShortField & right)

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

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TRecordShortField::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: TRecordShortField::GetValue

  1. virtual const short & GetValue (short & target) const
  2. virtual short GetValue () const

Interface Category:

API.

Purpose:

  1. Fetches the field by reference.
  2. Fetches the field by value.

Calling Context:

  1. Call this function directly.
  2. Call this function directly.

Parameters:

Return Value:

A const reference to, or for the second variant, the value of, the field.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TRecordShortField::SetValue

virtual void SetValue (const short & value)

Interface Category:

API.

Purpose:

Sets the value of the field.

Calling Context:

Call this function directly.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TRecordShortField::TRecordFieldDeclarationsMacro

TRecordFieldDeclarationsMacro (TRecordShortField, TRecordField)

Interface Category:

API.

Purpose:

This macro is used to hide a lot of the repetitive coding required to derive from TRecordField. It ensures that the Name() and DescendsFrom() member functions work as specified for TRecordFieldŐs and TRecordFieldHandleŐs.

Calling Context:

Include this macro in this class directly.

Parameters:

Return Value:

Implicitly int.

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.