Slot::SlotWrapper Class Reference

This class provides an abstract interface that implements the details of the slot and hides the type information behind a generic interface. More...

#include <Slot.h>

Inheritance diagram for Slot::SlotWrapper:

Inheritance graph

List of all members.

Public Member Functions

virtual void update (Subject &subject, const std::string &signal, const boost::any &data) const =0
virtual SlotWrapperclone () const =0
virtual bool matches (const SlotWrapper &rhs) const =0
virtual const std::type_info & getType () const =0
virtual void callAttachMethod (Subject &subject, const std::string &signal, const Slot &slot)=0
virtual void callDetachMethod (Subject &subject, const std::string &signal, const Slot &slot)=0


Detailed Description

This class provides an abstract interface that implements the details of the slot and hides the type information behind a generic interface.

Definition at line 273 of file Slot.h.


Member Function Documentation

virtual void Slot::SlotWrapper::update ( Subject subject,
const std::string &  signal,
const boost::any &  data 
) const [pure virtual]

Calls the method on the Slot.

Parameters:
subject The Subject that called notify.
signal The name of the signal the Subject is notifying.
data The ancillary data the Subject provided to its notification.

virtual SlotWrapper* Slot::SlotWrapper::clone (  )  const [pure virtual]

Creates a copy of the object.

Returns:
A copy of the object.

virtual bool Slot::SlotWrapper::matches ( const SlotWrapper rhs  )  const [pure virtual]

Indicates if the supplied object matches this object.

Parameters:
rhs The object to compare with.
Returns:
true if the two objects match and false otherwise.

virtual const std::type_info& Slot::SlotWrapper::getType (  )  const [pure virtual]

Returns the type information of the concrete type of the object.

Returns:
The type information of the concrete object.

virtual void Slot::SlotWrapper::callAttachMethod ( Subject subject,
const std::string &  signal,
const Slot slot 
) [pure virtual]

Calls the attached method on the observer, if it derives from Observer.

This method is typically only called by Subject::attach.

Parameters:
subject The Subject that the slot is being attached to.
signal The name of the signal the Slot is being attached to.
slot The slot that is being attached.

virtual void Slot::SlotWrapper::callDetachMethod ( Subject subject,
const std::string &  signal,
const Slot slot 
) [pure virtual]

Calls the detached method on the observer, if it derives from Observer.

This method is typically only called by Subject::detach.

Parameters:
subject The Subject that the slot is being detached from.
signal The name of the signal the Slot is being detached from.
slot The slot that is being detached.


Software Development Kit - Opticks 4.9.0 Build 16218