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

CNotifier

Methods Index

Heritage
Description
Usage
Protected Data Members
Friends
Public Methods
Constuctor and Destructor Methods
"Wide Interface" Methods
Primary Controller Access for TDI
Acceptable TDI connections
TDI Request Methods
Protected Methods
TDI Messaging Methods

CNotifier


Heritage

Superclass: CObjectRWC

Subclasses: CBoss, CController, CDesktop, CEnvironment, CGlobalClassLib, CGlobalUser, CGlue, CMenu, CMenuBar, CModel, CPrintMgr, CResource, CResourceMgr, CUnits


Description

CNotifier is a base class that provides the "wide interface" to request model changes and update dependents of a model change. Every dependent and every provider is derived from CNotifier.


Usage

DoChangeModel (theId, this, CHANGEALLcmd, MyModel);


Protected Data Members

RWOrdered* itsProviderController The list of where this notifier is a provider.
RWOrdered* itsDependentController The list of where this notifier is a dependent.
CTdiController* itsController Controller used during TDI communcation
const CTdiValue* itsCurrentModel Currently processed model, kept for cyclical graph avoidance.

Friends

friend BOOLEAN CController::AddDependent(
TCNotifier* theDependent);
friend BOOLEAN CController::RemoveDependent(
CNotifier* theDependent);
friend BOOLEAN CController::AddProvider(
CNotifier* theProvider);
friend BOOLEAN CController::RemoveProvider(
CNotifier* theProvider);

These methods are required to update the itsProviderControllers, itsDependentsControllers data members.


Public Methods

Constuctor and Destructor Methods

CNotifier();
virtual ~CNotifier();
CNotifier(const CNotifier& theNotifier);
CNotifier& operator=(const CNotifier& theNotifier);

"Wide Interface" Methods

virtual void DoUpdateModel(long theControllerId,
long theCommand, const CModel* theModel);
virtual BOOLEAN DoChangeModel(long theControllerId,
const CNotifer* theProvider, long theCommand,
const CModel* theModel);

Primary Controller Access for TDI

virtual CTdiController* GetPrimaryController();
virtual void SetPrimaryController(CTdiController* controller);

Acceptable TDI Connections

const CTdiValue* GetCurrentTdiValue() const;
void SetCurrentTdiValue(const CTdiValue* theValue);

TDI Request Method

void TdiRequest(long theCommand,
CTdiValue* theData = NULL,
CNotifier* theProvider = NULL);

Protected Methods

BOOLEAN CreateDependentControllers(void);
BOOLEAN CreateProviderControllers(void);

TDI Messaging Methods

void TdiNotify(long theTDICommand, 
const CTdiValue& theData);
void TdiNotify(long theTDICommand, 
const CStringRW& theValue);
void TdiNotify(long theTDICommand,
BOOLEAN theValue);
void TdiNotify(long theTDICommand,
int theValue);
void TdiNotify(long theTDICommand,
UNITS theValue);
void TdiNotify(long theTDICommand,
long theCommand,
CTdiValue* theData);


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

support@xvt.com


Visit our online help desk for tech support

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