Class: TTextRepresentationWriteEntry

Declaration: TextRepresentation.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

None.

Inherited By:

None.

Purpose:

TTextRepresentationWriteEntry is a friend of MTextRepresentation and provides protected, synchronized access to the text data store. Clients who wish to write the text data should instantiate a TTextRepresentationWriteEntry, then call GetTextForWriting.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

This class is designed to be used directly.

Concurrency:

Multithread safe.

Resource Use:

No special requirements.

Other Considerations:

None.

Member Function: TTextRepresentationWriteEntry::TTextRepresentationWriteEntry

  1. TTextRepresentationWriteEntry (MTextRepresentation * textToReadOrWrite)
  2. TTextRepresentationWriteEntry (MTextSelection * textSelection)
  3. TTextRepresentationWriteEntry ()
  4. TTextRepresentationWriteEntry (const TTextRepresentationWriteEntry &)

Interface Category:

API.

Purpose:

  1. Constructs a TTextRepresentationWriteEntry object for the specified representation, and establishes a write lock on the text.
  2. Constructs a TTextRepresentationWriteEntry object for the representation associated with the specified selection, and establishes a write lock on the text.
  3. Default constructor.
  4. Copy constructor.

Calling Context:

  1. Called, via construction by client, to establish a write lock on the text of the specified representation.
  2. Called to establish a write lock on the text of the representation associated with the specified selection.
  3. Can't be called.
  4. Called to copy an object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TTextRepresentationWriteEntry::~TTextRepresentationWriteEntry

virtual ~ TTextRepresentationWriteEntry ()

Interface Category:

API.

Purpose:

Destructor.

Calling Context:

Typically not called directly by clients.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TTextRepresentationWriteEntry::operator=

TTextRepresentationWriteEntry & operator =(const TTextRepresentationWriteEntry &)

Interface Category:

API.

Purpose:

Assignment operator.

Calling Context:

May be called directly by clients.

Parameters:

Return Value:

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

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

This function is protected.

Member Function: TTextRepresentationWriteEntry::GetTextForWriting

TText * GetTextForWriting ()

Interface Category:

API.

Purpose:

Returns a pointer to the TText object contained by this representation.

Calling Context:

Clients can call this function to obtain the TText pointer with write access, then use TText API to write the text.

Parameters:

Return Value:

A pointer to the TText object contained by this representation.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

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.