DD::Image::OpMessageObserver Class Reference

Inherited by DD::Image::OpTreeMsgObserver.

List of all members.

Public Types

enum  MessageChange { kMC_Set, kMC_Cleared, kMC_ChildrenChanged }

Public Member Functions

virtual void notify (const OpMessage &lrMessage, MessageChange lMsgChange, Op *lpSourceOp, const std::vector< OpTree * > &lrAffectedTrees)=0
 The op passed into this function will never be NULL.

Protected Member Functions

 OpMessageObserver ()
 Protected constructor: only create from child classes.
virtual ~OpMessageObserver ()

Detailed Description

Classes can inherit this and add themselves to the op message observers list to be notified when an op message is set or cleared, or when an op's children have changed so the message's effects may do so too.


Member Enumeration Documentation

Enumerator:
kMC_Set 

Sent after a message is set.

kMC_Cleared 

Sent after a message is cleared.

kMC_ChildrenChanged 

Sent with a blank message after an op's vector of children has changed.


Constructor & Destructor Documentation

OpMessageObserver::~OpMessageObserver ( ) [protected, virtual]

Protected destructor (not for polymorphic deletion) Automatically removes this object from the OpMessageHandler observer list. Doesn't need to be virtual, because it's protected, but making it so reduces warnings.