[Classes] [Prev] [Next] [Methods]

CTdiIndexConnection

Methods Index

Heritage
Description
Usage
Protected Data Members
Public Methods
Private Methods
Override

CTdiIndexConnection


Heritage

Superclass: CTdiConnection

Subclasses: None

Helper Class: CTdiTableFactory


Description

CTdiIndexConnection specializes the services provided by CTdiConnection for the creation of connections to index-like data.


Usage

See CTdiConnection for general usage.

CTdiIndexConnection creates special TDI connections to providers of data with associated index values. The connection is setup so that only the index of a given TDI value is sent to the dependent.

CTdiIndexConnection relies on a factory object, derived from CTdiTableFactory, for the actual instantiation of the CTdiValue prototypes capable of making the necessary filtering and translation. You need to ensure that the connection classes are using an appropriate factory object that can create the correct prototypes for the type of data the provider sends.

There are two ways of parameterizing the connection classes with a connection factory object. One is to pass a pointer to the factory in the construction of the connection. The second is to register a default factory object with the Power++ global CFactoryMgr under the ID CTdiTableFactoryID. This default factory is then used whenever the the constructor of the connection classes is not provided a specific factory.


Protected Data Members

CTdiTableFactory* itsFactory; Creates internal connection prototypes


Public Methods

CTdiIndexConnection(
CNotifier* theProvider,
CNotifier* theDependent,
long theContext = NULLcmd,
BOOLEAN autoConnect = TRUE,
CTdiTableFactory* theFactory = NULL);

Private Methods

CTdiIndexConnection(
const CTdiIndexConnection& theCopy);
CTdiIndexConnection& operator=(
const CTdiIndexConnection& theCopy);

Override

See CTdiTableConnection.




[Classes] [Prev] [Next] [Methods]

support@xvt.com


Visit our online help desk for tech support

Copyright © 2009, Providence Software Solutions Inc. All rights reserved.