Mercurial > hg > orthanc-stone
diff Framework/Layers/LayerSourceBase.h @ 251:192e6e349e69 am-2
first usage of new message system (in SDL only)
author | am@osimis.io |
---|---|
date | Mon, 02 Jul 2018 18:13:46 +0200 |
parents | e2fe9352f240 |
children | abc1c6231947 |
line wrap: on
line diff
--- a/Framework/Layers/LayerSourceBase.h Mon Jul 02 16:36:17 2018 +0200 +++ b/Framework/Layers/LayerSourceBase.h Mon Jul 02 18:13:46 2018 +0200 @@ -28,11 +28,6 @@ { class LayerSourceBase : public ILayerSource { - private: - typedef ObserversRegistry<ILayerSource, IObserver> Observers; - - Observers observers_; - protected: void NotifyGeometryReady(); @@ -46,6 +41,10 @@ const CoordinateSystem3D& slice, bool isError); + LayerSourceBase(MessageBroker& broker) + : ILayerSource(broker) + {} + public: virtual void Register(IObserver& observer); };