Class: TDocumentComponentCommandBindingTo

Declaration: CompoundDocumentCommand.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

TDocumentComponentCommandBinding

Inherited By:

TGUIDocumentComponentCommandBindingTo

Purpose:

Provides a type safe binding of a model, or presenter state command to a compatible selection. The following member functions all delegate to the corresponding function of the bound command, passing the appropriate target as a parameter: Do, DoBegin, DoIncrement, DoEnd, Undo, Redo, CanDo, CanUndo, CanRedo, and Commit. The following member functions provide type safe access to the bound target: GetCommand, and GetTarget.

Instantiation:

Always allocate on the heap. Ownership of the command binding is handed off to the document for execution.

Deriving Classes:

This class template is not usually derived from.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Invariants:

Interface Category:

API.

Purpose:

  1. Constructor used to bind command to a model or presenter state selection.
  2. Constructor used to bind command to a model anchor.
  3. Copy constructor.
  4. Default constructor.

Calling Context:

  1. Call this function directly.
  2. Call this function directly.
  3. Call this function directly.
  4. Only for internal use by Resurrect. Developers should treat as internal.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

Preconditions:

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

TDocumentComponentCommandBindingTo<ATarget> & operator =(const TDocumentComponentCommandBindingTo < ATarget > &)

Interface Category:

API.

Purpose:

Assigns one object to another like object.

Calling Context:

Called for assignment.

Parameters:

Return Value:

Returns a reference to left hand side object.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TDocumentComponentCommandBindingTo::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 the object streams itself out to.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

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

Exceptions:

Throws a TInvalidVersionError if the version of the object on the stream is unknown to the version of the shared library installed.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TDocumentComponentCommandBindingTo::GetCommand

  1. TCommandOn < ATarget > * GetCommand ()
  2. const TCommandOn < ATarget > * GetCommand () const

Interface Category:

API.

Purpose:

  1. Provides access to bound command.
  2. Provides access to const bound command.

Calling Context:

  1. Call this function directly.
  2. Call this function directly.

Parameters:

Return Value:

Returns the command bound by this binding.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TDocumentComponentCommandBindingTo::GetTarget

  1. ATarget * GetTarget ()
  2. const ATarget * GetTarget () const

Interface Category:

API.

Purpose:

  1. Provides access to bound target.
  2. Provide access to const bound target.

Calling Context:

  1. Call this function directly.
  2. Call this function directly.

Parameters:

Return Value:

Returns the target bound to this command.

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.