comparison Framework/Layers/LayerSourceBase.h @ 86:02c3a7a4938f wasm

removing of the Start() mechanism
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 26 May 2017 13:42:50 +0200
parents f5f54ed8d307
children 4a541cd4fa83
comparison
equal deleted inserted replaced
85:bd48431ac285 86:02c3a7a4938f
27 { 27 {
28 class LayerSourceBase : public ILayerSource 28 class LayerSourceBase : public ILayerSource
29 { 29 {
30 private: 30 private:
31 IObserver* observer_; 31 IObserver* observer_;
32 bool started_;
33 32
34 protected: 33 protected:
35 bool IsStarted()
36 {
37 return started_;
38 }
39
40 void NotifyGeometryReady(); 34 void NotifyGeometryReady();
41 35
42 void NotifyGeometryError(); 36 void NotifyGeometryError();
43 37
44 void NotifySourceChange(); 38 void NotifySourceChange();
49 void NotifyLayerReady(ILayerRenderer* layer, 43 void NotifyLayerReady(ILayerRenderer* layer,
50 const Slice& slice); 44 const Slice& slice);
51 45
52 void NotifyLayerError(const SliceGeometry& slice); 46 void NotifyLayerError(const SliceGeometry& slice);
53 47
54 virtual void StartInternal() = 0;
55
56 public: 48 public:
57 LayerSourceBase() : 49 LayerSourceBase() :
58 observer_(NULL), 50 observer_(NULL)
59 started_(false)
60 { 51 {
61 } 52 }
62 53
63 virtual void SetObserver(IObserver& observer); 54 virtual void SetObserver(IObserver& observer);
64
65 virtual void Start();
66 }; 55 };
67 } 56 }