![]() |
VR-Forces 4.8 Class Documentation
|
Base class for DtSubjectObservers that allow "delayed virtual construction via functors". More...

Public Member Functions | |
| void | bind (DtDe &de) |
| Note: do not give this class a CTOR. More... | |
Protected Types | |
| typedef boost::function< void(DtDe &)> | BindFunction |
| typedef std::list< BindFunction > | BindFunctionList |
Protected Attributes | |
| BindFunctionList | myBindFunctionList |
Base class for DtSubjectObservers that allow "delayed virtual construction via functors".
Basically, this class is has a list of functors that get executed after the creation of the DtSubjectObserver. In this way, it acts as if you could have virtual functions in your ctor. This was neccessary in order to have the DtSubjectObservers automatically connect to activated subjects. To do that, we needed to call a the virtual method slot_activate() after the contruction of the observer. The observer adds the functor to this list and the logic calls bind() after creation. The logic's ctor is protected and can only be created via a creator method that calls bind().
|
protected |
|
protected |
| void makVrv::DtSubjectBinder::bind | ( | DtDe & | de | ) |
Note: do not give this class a CTOR.
Using the auto generated CTOR makes it so that we don't have to call it in the ctor initialization list.
Referenced by TestObserverLogic::create().
|
protected |