VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions
makVrv::DtSubjectObserver< T > Class Template Reference

A DtSubjectObserver is told by a DtSubjectAnnouncer when the subject is activated/ deactivated. More...

Inheritance diagram for makVrv::DtSubjectObserver< T >:
Inheritance graph
[legend]

Public Member Functions

 DtSubjectObserver ()
 brief Create a DtSubjectObserver and add the connect() method as a functor to the DtSubjectBinder's list.
virtual ~DtSubjectObserver ()
virtual void slot_activate (T *subject)=0
virtual void slot_deactivate (T *subject)=0
- Public Member Functions inherited from makVrv::DtSubjectBinder
void bind (DtDe &de)
 Note: do not give this class a CTOR.

Protected Member Functions

virtual void connect (DtDe &de)

Additional Inherited Members

- Protected Types inherited from makVrv::DtSubjectBinder
typedef boost::function< void(DtDe &)> BindFunction
typedef std::list< BindFunctionBindFunctionList
- Protected Attributes inherited from makVrv::DtSubjectBinder
BindFunctionList myBindFunctionList

Detailed Description

template<class T>
class makVrv::DtSubjectObserver< T >

A DtSubjectObserver is told by a DtSubjectAnnouncer when the subject is activated/ deactivated.

A DtSubjectObserver is a virtual base class for widget logics that need to be told when a subject class is fully initialized.

Constructor & Destructor Documentation

template<class T >
makVrv::DtSubjectObserver< T >::DtSubjectObserver ( )

brief Create a DtSubjectObserver and add the connect() method as a functor to the DtSubjectBinder's list.

This allows for the connect() method functor to get executed after the derived DtSubjectObserver's creation.

References makVrv::bind().

template<class T >
makVrv::DtSubjectObserver< T >::~DtSubjectObserver ( )
virtual

Member Function Documentation

template<class T >
virtual void makVrv::DtSubjectObserver< T >::slot_activate ( T *  subject)
pure virtual
template<class T >
virtual void makVrv::DtSubjectObserver< T >::slot_deactivate ( T *  subject)
pure virtual
template<class T >
void makVrv::DtSubjectObserver< T >::connect ( DtDe de)
protectedvirtual

The documentation for this class was generated from the following file:

Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)