Class: TSystemLayerSurrogate

Declaration: SystemWindow.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

TLayerableSurrogate

Inherited By:

None.

Purpose:

TSystemLayerSurrogate is a functional, heavyweight reference to a layer.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

You would not normally derive from this class. Instead derive from TLayerableSurrogate.

Concurrency: Not multithread safe.

Resource Use:

No special requirements.

Member Function: TSystemLayerSurrogate::TSystemLayerSurrogate

  1. TSystemLayerSurrogate (const TSystemLayerSurrogate & otherLayer)
  2. TSystemLayerSurrogate (const TLayerableReference & otherLayer)
  3. TSystemLayerSurrogate (const TSystemLayer & otherLayer)
  4. TSystemLayerSurrogate ()

Interface Category:

API.

Purpose:

  1. Copy constructor.
  2. Convert from a reference.
  3. Convert from a real layer.
  4. Default constructor.

Calling Context:

  1. Called to copy an object.
  2. Called to convert from a reference.
  3. Called to convert from a real layer.
  4. Called by the stream-in operators.

Parameters:

Return Value:

None.

Exceptions:

Throws TSystemWindowException(kReferenceToWrongLayerable) if otherLayer in constructor case (2) refers to a layer.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TSystemLayerSurrogate::~TSystemLayerSurrogate

virtual ~ TSystemLayerSurrogate ()

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:

Doesn't affect layer.

Member Function: TSystemLayerSurrogate::GetChildLayerFromName

bool GetChildLayerFromName (const TText & theName, TLayerableReference & theLayer) const

Interface Category:

API.

Purpose:

Gets a child layer by name.

Calling Context:

Called when the client needs a named layer that is a descendant of the clientÕs layer.

Parameters:

Return Value:

Returns true if a layer with theName is found.

Exceptions:

Throws TSystemWindowException(kThisLayerableNonexistant) if the layer referred to by this surrogate does not exist.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TSystemLayerSurrogate::GetContainedLayerables

void GetContainedLayerables (TDequeOf < TLayerableReference > & dequeToFill) const

Interface Category:

API.

Purpose:

Gets the list of windows and/or layers contained by this window or layer.

Calling Context:

Call this function directly.

Parameters:

Return Value:

None.

Exceptions:

Throws a TSystemWindowException(kThisLayerableNonexistant) if this window or layer does not exist.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TSystemLayerSurrogate::operator=

  1. const TSystemLayerSurrogate & operator =(const TSystemLayerSurrogate & otherLayer)
  2. const TSystemLayerSurrogate & operator =(const TLayerableReference & otherLayer)
  3. const TSystemLayerSurrogate & operator =(const TSystemLayer & otherLayer)

Interface Category:

API.

Purpose:

  1. Assignment operator.
  2. Convert from a reference.
  3. Convert from a real layer.

Calling Context:

  1. Called when an object is assigned to another compatible object.
  2. Called to convert from a reference.
  3. Called to convert from a real layer.

Parameters:

Return Value:

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

Exceptions:

Throws TSystemWindowException(kReferenceToWrongLayerable) if otherLayer in case (2) above refers to a layer.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TSystemLayerSurrogate::GetClipArea

void GetClipArea (TGArea & clipTo) const

Interface Category:

API.

Purpose:

Gets the clip area bounds.

Calling Context:

Call this function directly.

Parameters:

Return Value:

None.

Exceptions:

Throws a TSystemWindowException(kThisLayerableNonexistant) if this window or layer does not exist.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TSystemLayerSurrogate::operator<<=

virtual TStream & operator <<= (TStream &)

Interface Category:

API.

Purpose:

Stream-in operator.

Calling Context:

Called to stream in system layer surrogate objects.

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

virtual TStream & operator >>=(TStream &) const

Interface Category:

API.

Purpose:

Stream-out operator.

Calling Context:

Called to stream out system layer surrogate objects.

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

bool operator ==(const TSystemLayerSurrogate &) const

Interface Category:

API.

Purpose:

Tests for equality between this layer and the specified layer. Layers are equal if and only if their identifiers are equal.

Calling Context:

Call this function directly.

Parameters:

Return Value:

Returns true if the identifiers for the two layers are equal; otherwise, returns false.

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.