SourcePro® API Reference Guide

 
Loading...
Searching...
No Matches
RWModelClient Class Referenceabstract

Implements the "View" leg of a Model-View-Controller architecture. More...

#include <rw/model.h>

Inheritance diagram for RWModelClient:
RWCollectable

Public Member Functions

virtual void updateFrom (RWModel *p, void *d)=0
 
- Public Member Functions inherited from RWCollectable
virtual ~RWCollectable ()
 
virtual RWspace binaryStoreSize () const
 
virtual int compareTo (const RWCollectable *) const
 
virtual RWCollectablecopy () const
 
virtual unsigned hash () const
 
virtual RWClassID isA () const
 
virtual bool isEqual (const RWCollectable *t) const
 
virtual RWCollectablenewSpecies () const
 
RWspace recursiveStoreSize () const
 
virtual void restoreGuts (RWFile &)
 
virtual void restoreGuts (RWvistream &)
 
virtual void saveGuts (RWFile &) const
 
virtual void saveGuts (RWvostream &) const
 
RWStringID stringID () const
 

Additional Inherited Members

- Static Public Member Functions inherited from RWCollectable
static RWClassID classID (const RWStringID &name)
 
static RWClassID classIsA ()
 
static bool isAtom (RWClassID id)
 
static RWspace nilStoreSize ()
 

Detailed Description

This abstract base class has been designed to implement the "View" leg of a Model-View-Controller architecture. Class RWModel, supplies the "Model" leg. See class RWModel for details.

Synopsis
#include <rw/model.h>
(abstract base class)
Persistence
None

Member Function Documentation

◆ updateFrom()

virtual void RWModelClient::updateFrom ( RWModel * p,
void * d )
pure virtual

Deriving classes should supply an appropriate definition for this pure virtual function. The overall semantics of the definition should be to update self from the data presented by the object pointed to by p. That is, self is considered a dependent of the object pointed to by p. The pointer d is available to pass client data.

Note
Changes to the client list must not happen during a call to updateFrom().

Copyright © 2024 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved.