Class: TFormattableText

Declaration: TextFormatter.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

TFormattable

Inherited By:

None.

Purpose:

Derived from TFormattable, this class encapsulates a TText object, allowing it to be formatted by TFormatter classes.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

TFormattableText is a concrete class designed to be used directly.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Member Function: TFormattableText::TFormattableText

  1. TFormattableText ()
  2. TFormattableText (const TFormattableText & toCopy)
  3. TFormattableText (const TText & newFormat)

Interface Category:

API.

Purpose:

  1. Default constructor.
  2. Copy constructor.
  3. Constructs a Formattable that encapsulates the specified text object.

Calling Context:

  1. Called by the stream-in operators.
  2. Called to copy an object.
  3. Called to construct a Formattable with a particular text string.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TFormattableText::~TFormattableText

~ TFormattableText ()

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

  1. virtual TFormattableText & operator =(const TFormattableText & toCopy)
  2. virtual TFormattable & operator =(const TFormattable & toCopy)

Interface Category:

API.

Purpose:

  1. Assignment operator.
  2. Assignment operator.

Calling Context:

  1. Called when an object is assigned to another compatible object.
  2. 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: TFormattableText::Hash

virtual long Hash () const

Interface Category:

API.

Purpose:

Generates a hash value.

Calling Context:

Called to generate a hash value.

Parameters:

Return Value:

The numeric value of the hash.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TFormattableText::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: TFormattableText::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: TFormattableText::GetText

virtual const TText * GetText () const

Interface Category:

API.

Purpose:

Returns the text object encapsulated by this Formattable.

Calling Context:

Called to get the value of this Formattable.

Parameters:

Return Value:

The text object encapsulated by this Formattable.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TFormattableText::SetText

virtual void SetText (const TText & value)

Interface Category:

API.

Purpose:

Specifies the text object to be encapsulated by this Formattable.

Calling Context:

Called to set the text value of this Formattable after construction.

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.