Class: TTieredText

Declaration: TieredText.h

Taxonomy Categories:

Member Functions:


Interface Category:

Developer Tool Programmer Interface.

Inherits From:

TStandardText

Inherited By:

None.

Purpose:

A derived class of TStandardText that adds tier information. This tier information indicates the relative importance of each piece of text.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

Most clients do not derive from TTieredText unless you want to override its default behavior. If deriving, override the assignment, the stream-in, and the stream-out operators. Do not override the SetTier and GetTier functions.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Member Function: TTieredText::TTieredText

  1. TTieredText ()
  2. TTieredText (const TText &, ETier tier =kNormal)
  3. TTieredText (const TTieredText & source)

Interface Category:

Developer Tool Programmer Interface.

Purpose:

  1. Default constructor.
  2. Constructor that takes the text and the optional tier.
  3. Copy constructor.

Calling Context:

  1. Called by the stream-in operators and TTieredTextBuffer.
  2. Called by TTieredTextBuffer.
  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: TTieredText::~TTieredText

virtual ~ TTieredText ()

Interface Category:

Developer Tool Programmer Interface.

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

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

Interface Category:

Developer Tool Programmer Interface.

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

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

Interface Category:

Developer Tool Programmer Interface.

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: TTieredText::SetTier

virtual ETier SetTier (ETier)

Interface Category:

Developer Tool Programmer Interface.

Purpose:

Sets the tier of this TTieredText object to the given tier.

Calling Context:

Called by Test framework or directly.

Parameters:

Return Value:

Returns the old tier before the set.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TTieredText::GetTier

ETier GetTier () const

Interface Category:

Developer Tool Programmer Interface.

Purpose:

Returns the tier for this TTieredText.

Calling Context:

Called by Test framework or directly.

Parameters:

Return Value:

Returns the tier for this TTieredText.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TTieredText::operator=

  1. TTieredText & operator =(const TTieredText & source)
  2. TText & operator =(const TText & source)
  3. TStandardText & operator =(const TStandardText & source)

Interface Category:

Developer Tool Programmer Interface.

Purpose:

  1. Assignment operator.
  2. Assignment operator.
  3. Assignment operator.

Calling Context:

  1. Called when an object is assigned to another compatible object.
  2. Called when a TText object is assigned to this object.
  3. Called when a TStandardText object is assigned to this 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.