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

CTdiController

Methods Index

Heritage
Description
Enum
Friend
Protected Data Members
Public Methods
Constructor, Destructor, and Operator Methods
Updating Methods
Provider/Dependent Management Methods
Private Methods

CTdiController


Heritage

Superclass: CController

Subclasses: None


Description

This class is specialized for use only as an embedded controller in a CNotifier for TDI. It is a controller implementation designed to be lightweight and efficient for TDI. CTdiController has the following characteristics:


Enum

{ kID = 0L }; Unique ID signifying a TDI controller. All TDI controllers share this ID.


Friend

friend class CNotifier;


Protected Data Members

RWGOrderedVector(
CTdiControllerDependentNode)
itsDependentsAndModels; List of dependents and associated models
short itsSuspendCount; Semaphore for suspend/resume
CNotifier* itsActiveDependent; Restrict notification to one dependent (used for TdiRequests)


Public Methods

Constructor, Destructor, and Operator Methods

CTdiController();
virtual ~CTdiController();
CTdiController(const CTdiController& theController);
CTdiController& operator=(
const CTdiController& theController);

Updating Methods

virtual BOOLEAN DoChange(
const CNotifier* theProvider,
long theCommand,
const CTdiValue* theModel);
virtual BOOLEAN DoChange(
const CNotifier* theProvider,
long theCommand,
const CModel* theModel);
virtual BOOLEAN AssociateModel(
CNotifier* theDependent,
CTdiValue* thePrototype);

Provider/Dependent Management Methods

virtual BOOLEAN AddDependent(
CNotifier* theDependent,
CTdiValue* thePrototype);
virtual BOOLEAN AddDependent(
CNotifier* theDependent);
virtual BOOLEAN RemoveDependent(
CNotifier* theDependent,
CTdiValue*& thePrototype);
virtual BOOLEAN RemoveDependent(
CNotifier* theDependent);
virtual BOOLEAN AddProvider(
CNotifier* theProvider);
virtual const RWOrdered* GetDependents() const;
virtual BOOLEAN IsDependent(
const CNotifier* theDependent) const;
virtual void Suspend();
virtual void Resume();
void SetActiveDependent(CNotifier* theDependent);
CNotifier* GetActiveDependent() const;

Private Methods

BOOLEAN IsOriginator(
const CTdiValue* theModel,
const CNotifier* theNotifier);


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

support@xvt.com


Visit our online help desk for tech support

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