CTdiIndexConnectionspecializes the services provided by
CTdiConnectionfor the creation of connections to index-like data.
CTdiConnectionfor general usage.
CTdiIndexConnectioncreates 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.
CTdiIndexConnectionrelies on a factory object, derived from
CTdiTableFactory, for the actual instantiation of the
CTdiValueprototypes 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
CFactoryMgrunder the ID
CTdiTableFactoryID. This default factory is then used whenever the the constructor of the connection classes is not provided a specific factory.
||Creates internal connection prototypes|
long theContext = NULLcmd,
BOOLEAN autoConnect = TRUE,
CTdiTableFactory* theFactory = NULL);
TRUE, the connection is not established until
The actual creation of the connection's internals is delegated to a factory object of type
CTdiTableFactory. If such an object is not passed in, the connection searches for one stored in the Power++ factory manager.
const CTdiIndexConnection& theCopy); CTdiIndexConnection& operator=(
const CTdiIndexConnection& theCopy);