Class: TStandardServiceDefinition

Declaration: ServiceAccess.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

TServiceDefinition

Inherited By:

None.

Purpose:

Defines a standard Taligent service. TServiceDefinition is a wrapper for either a TLocalServiceDefinition or a TNetworkServiceDefinition.

Instantiation:

Always allocate on the heap. This class is reference counted and deletes itself when it becomes unreachable and, therefore, must be allocated on the heap.

Deriving Classes:

You should not derive any classes from TServiceDefinition.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Other Considerations:

None.

Member Function: TStandardServiceDefinition::TStandardServiceDefinition

  1. TStandardServiceDefinition ()
  2. TStandardServiceDefinition (const TLocalObjectName &)
  3. TStandardServiceDefinition (const TLocalObjectName &, const TQualityOfService &)

Interface Category:

API.

Purpose:

  1. Creates a local service definition, with an invented unique name.
  2. Creates a TLocalServiceDefinition with the specified local name.
  3. Creates a service definition with the specified name. If the quality of service argument is kSameHost, a TLocalServiceDefinition is created. If the quality of service argument is kNetwork, a TNetworkServiceDefinition is created.

Calling Context:

  1. Called to create a locally-visible service.
  2. Called to create a locally-visible service with a particular name.
  3. Called to create a service with a particular name and visibility.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

TStandardServiceDefinition that are unnamed are only visible on the host (machine) on which they are created.

Member Function: TStandardServiceDefinition::~TStandardServiceDefinition

virtual ~ TStandardServiceDefinition ()

Interface Category:

API.

Purpose:

Destructor.

Calling Context:

Called by the Unreachable() member function when the reference count indicates the object is no longer accessible.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

This member function should not be called directly.
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.