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

CTdiCommandTranslator

Methods Index

Heritage
Description
Usage
Protected Data Members
Public Methods
Constructor and Destructor Methods
Translation Methods

CTdiCommandTranslator


Heritage

Superclass: CNotifier

Subclasses: None


Description

CTdiCommandTranslator can be used as a prototype in a TDI connection to translate commands from the TDI provider to a different set of commands for the TDI dependent. This technique is useful, for example, to use a standard text provider (which supplies TDIClearCmd, TDIReplaceCmd, and TDIAppendCmd) to populate a list view (which expects TDIOptionClearCmd, TDIOptionReplaceCmd, and TDIOptionAppendCmd).


Usage

CTdiCommandTranslator* aTranslator = new 
CTdiCommandTranslator(aList);
aTranslator -> AddListPopulationTranslations();
CTdiConnection aConnection(
aTextSource,
aList,
aTranslator
);
See also CTdiConnection usage.


Protected Data Members

RWGOrderedVector(long) itsFromCommands;
RWGOrderedVector(long) itsToCommands;
CNotifier* itsTarget;


Public Methods

Constructor and Destructor Methods

CTdiCommandTranslator(CNotifier* theTarget);
CTdiCommandTranslator(
const CTdiCommandTranslator& theTranslator);
const CTdiCommandTranslator& operator=(
const CTdiCommandTranslator& theTranslator);
virtual ~CTdiCommandTranslator();

Translation Methods

virtual void DoUpdateModel(
long theControllerId,
long theCommand,
const CModel* theModel);
void AddTranslation(
long theFromCommand, long theToCommand);
The following methods build command translation tables.

void AddListPopulationTranslations();
void AddListSelectionTranslations();


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

support@xvt.com


Visit our online help desk for tech support

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