Mercurial > hg > orthanc-stone
comparison Framework/Oracle/IOracle.h @ 825:9a6c7a5dcb76
reorganization
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 29 May 2019 15:45:15 +0200 |
parents | f6438fdc447e |
children | 81b29bc7c3d4 2d8ab34c8c91 |
comparison
equal
deleted
inserted
replaced
824:15d493101c1e | 825:9a6c7a5dcb76 |
---|---|
19 **/ | 19 **/ |
20 | 20 |
21 | 21 |
22 #pragma once | 22 #pragma once |
23 | 23 |
24 #include "../Messages/IObserver.h" | |
24 #include "IOracleCommand.h" | 25 #include "IOracleCommand.h" |
25 | 26 |
26 namespace OrthancStone | 27 namespace OrthancStone |
27 { | 28 { |
28 class IOracle : public boost::noncopyable | 29 class IOracle : public boost::noncopyable |
30 public: | 31 public: |
31 virtual ~IOracle() | 32 virtual ~IOracle() |
32 { | 33 { |
33 } | 34 } |
34 | 35 |
35 virtual void Start() = 0; | |
36 | |
37 virtual void Stop() = 0; | |
38 | |
39 virtual void Schedule(const IObserver& receiver, | 36 virtual void Schedule(const IObserver& receiver, |
40 IOracleCommand* command) = 0; // Takes ownership | 37 IOracleCommand* command) = 0; // Takes ownership |
41 }; | 38 }; |
42 } | 39 } |