Class: TCursorToolSelectionState

Declaration: CursorToolSelectionState.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

MMomentaryControlState

Inherited By:

None.

Purpose:

TCursorToolSelectionState is used to select the current cursor tool.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

Do not derive any classes from TCursorToolSelectionState.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Other Considerations:

None.

Member Function: TCursorToolSelectionState::TCursorToolSelectionState

  1. TCursorToolSelectionState (TTool * adoptTool)
  2. TCursorToolSelectionState (const TCursorToolSelectionState &)
  3. TCursorToolSelectionState ()

Interface Category:

API.

Purpose:

  1. Creates a TCursorToolSelectionState and adopts the specified tool.
  2. Copy constructor.
  3. Default constructor.

Calling Context:

  1. Called to create a TCursorToolSelectionState with an adopted tool.
  2. Called to copy an object.
  3. Called to create a TCursorToolSelectionState suitable for streaming into.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TCursorToolSelectionState::~TCursorToolSelectionState

virtual ~ TCursorToolSelectionState ()

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

TCursorToolSelectionState & operator =(const TCursorToolSelectionState &)

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: TCursorToolSelectionState::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 to which the object streams itself.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TCursorToolSelectionState::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 from which the object streams itself.

Exceptions:

Throws TGlobalExceptionKludge(kStreamBadVersion) if not original version.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TCursorToolSelectionState::Select

virtual void Select ()

Interface Category:

API.

Purpose:

Calls TTool::SetCurrentTool with the adopted tool. The tool is copied by TTool, not adopted.

Calling Context:

Called when momentary control is selected.

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.