Class: TLocalObjectName

Declaration: LocalObjectName.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

None.

Inherited By:

TNewServiceName

Purpose:

The name of a service. It contains a type and may contain an instance. The type identifies the general kind of service, such as a printer or a file system. The instance identifies the particular instance of the service, if more than one service of this type exists.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

Do not derive any classes from TLocalObjectName.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Other Considerations:

None.

Member Function: TLocalObjectName::TLocalObjectName

  1. TLocalObjectName ()
  2. TLocalObjectName (const TLocalObjectName &)
  3. TLocalObjectName (const TLocalObjectType &)
  4. TLocalObjectName (const TLocalObjectType &, const TLocalObjectInstance &)

Interface Category:

API.

Purpose:

  1. Default constructor. The object created has a NIL type and an undefined instance.
  2. Copy constructor.
  3. Creates a TLocalObjectName with the specified type and an undefined instance.
  4. Creates a TLocalObjectName with a the specified type and instance.

Calling Context:

  1. Called by the stream-in operators and anywhere the definition of a TLocalObjectName is desired.
  2. Called to copy a TLocalObjectName.
  3. Called to create a TLocalObjectName with the specified instance field.
  4. Called to create a TLocalObjectName with the specified type and instance fields.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TLocalObjectName::operator=

TLocalObjectName & operator =(const TLocalObjectName &)

Interface Category:

API.

Purpose:

Assignment operator.

Calling Context:

Called when an object is assigned to another compatible object.

Parameters:

Return Value:

A reference to the left-hand side object.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TLocalObjectName::~TLocalObjectName

~ TLocalObjectName ()

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

TStream & operator <<= (TStream &)

Interface Category:

API.

Purpose:

Stream-in operator.

Calling Context:

Called to stream in data. Call this function directly.

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

TStream & operator >>=(TStream &) const

Interface Category:

API.

Purpose:

Stream-out operator.

Calling Context:

Called to stream out data. Call this function directly.

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

bool operator ==(const TLocalObjectName &) const

Interface Category:

API.

Purpose:

Returns true if the two TLocalObjectName objects on either side of the ==symbol have equal type and instance fields or if they have equal type fields and undefined instance fields.

Calling Context:

Called to test the equivalence of two objects. Call this function directly.

Parameters:

Return Value:

Returns true if both objects have equal type and instance fields or if they have equal type fields and undefined instance fields.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TLocalObjectName::Hash

long Hash () const

Interface Category:

API.

Purpose:

Returns a hash value for this TLocalObjectName.

Calling Context:

Called to obtain a hash value for this TLocalObjectName. Call this function directly.

Parameters:

Return Value:

A hash value for this TLocalObjectName.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

Note that TLocalObjectName objects that have the same hash value are not necessarily equal.

Member Function: TLocalObjectName::GetType

void GetType (TLocalObjectType &) const

Interface Category:

API.

Purpose:

Fills in the argument with the type field from this object.

Calling Context:

Called to obtain the type field associated with this object. Call this function directly.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TLocalObjectName::GetInstance

bool GetInstance (TLocalObjectInstance &) const

Interface Category:

API.

Purpose:

Fills in the argument with the instance part of this object and returns true. If the instance is undefined, the argument remains unchanged and false is returned.

Calling Context:

Called to determine if there is an instance field associated with this object and to obtain it. Call this function directly.

Parameters:

Return Value:

Returns true if the instance field was defined.

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.