Class: TLicenseVendor

Declaration: LicenseProduct.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

MCollectible

Inherited By:

None.

Purpose:

The concrete class TLicenseVendor represents a software vendor. A vendor is identified by its unique identifier that is carried by this object. The identifier should be constructed using an algorithm that is guaranteed to make the identifier refer to only one vendor in this galaxy. The TLicenseProduct object also maintains vendor contact information that is meant to be human readable and localizable so that it can be presented to the user whenever necessary.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

Do not derive.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Member Function: TLicenseVendor::TLicenseVendor

  1. TLicenseVendor ()
  2. TLicenseVendor (const TLicenseVendor &)
  3. TLicenseVendor (const TLicenseVendorIdentifier & identifier, const TText & contactInfo)

Interface Category:

API.

Purpose:

  1. Default constructor.
  2. Copy constructor.
  3. Initializes internal data elements.

Calling Context:

  1. Called by the stream-in operators.
  2. Called to copy an object.
  3. Called by the product, Licensing framework, and providers.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TLicenseVendor::~TLicenseVendor

virtual ~ TLicenseVendor ()

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

TLicenseVendor & operator =(const TLicenseVendor & source)

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

virtual TStream & operator <<= (TStream & fromWhere)

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 TInvalidVersionException if the version of the object is not recognized.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TLicenseVendor::operator>>=

virtual TStream & operator >>=(TStream & toWhere) 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: TLicenseVendor::GetIdentifier

virtual void GetIdentifier (TLicenseVendorIdentifier & target) const

Interface Category:

API.

Purpose:

Gets the unique identifier for the vendor represented by the object.

Calling Context:

Called to query object for its vendor identifier.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TLicenseVendor::GetContactInfo

virtual void GetContactInfo (TText & target) const

Interface Category:

API.

Purpose:

Gets the contact information from the vendor object. The contact information is the human-readable vendor description that the vendor would like presented to the user. This object is not used for matching and should be localized.

Calling Context:

Called to query an object for its vendor contact information.

Parameters:

Return Value:

None.

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.