Class: TToolCommandBinding

Declaration: CursorTools.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

TCommandBinding

Inherited By:

TToolCommandBindingTo

Purpose:

TToolCommandBinding polymorphically binds a command to a target. TToolCommandBinding allows tool interactors to pass commands to target without having to know the type of the command or the target.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

Do not derive any classes from TToolCommandBinding.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Other Considerations:

None.

Member Function: TToolCommandBinding::TToolCommandBinding

  1. TToolCommandBinding ()
  2. TToolCommandBinding (const TToolCommandBinding &)

Interface Category:

API.

Purpose:

  1. Default constructor.
  2. Copy constructor.

Calling Context:

  1. Called to create a TToolCommandBinding suitable for streaming into.
  2. 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: TToolCommandBinding::~TToolCommandBinding

virtual ~ TToolCommandBinding ()

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

TToolCommandBinding & operator =(const TToolCommandBinding &)

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: TToolCommandBinding::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: TToolCommandBinding::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 the version if the object streamed in is not the original version.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TToolCommandBinding::AdoptToolTarget

void AdoptToolTarget (MToolTarget *)

Interface Category:

API.

Purpose:

Adopts the specified tool target.

Calling Context:

Called to adopt a tool target.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TToolCommandBinding::GetToolTarget

  1. MToolTarget * GetToolTarget ()
  2. const MToolTarget * GetToolTarget () const

Interface Category:

API.

Purpose:

Returns a reference to the current tool target.

Calling Context:

  1. Called to obtain a reference to the current tool target.
  2. Called to obtain a const reference to the current tool target.

Parameters:

Return Value:

  1. Returns a reference to the current tool target.
  2. Returns a const reference to the current tool target.

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.