comparison Framework/Layers/DicomStructureSetRendererFactory.h @ 129:a823122db53d wasm

removal of useless class
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 16 Nov 2017 12:50:22 +0100
parents c993693e9e63
children 1982d6c1d2ff
comparison
equal deleted inserted replaced
128:c993693e9e63 129:a823122db53d
25 #include "../Toolbox/IWebService.h" 25 #include "../Toolbox/IWebService.h"
26 #include "LayerSourceBase.h" 26 #include "LayerSourceBase.h"
27 27
28 namespace OrthancStone 28 namespace OrthancStone
29 { 29 {
30 class DicomStructureSetRendererFactory : public LayerSourceBase 30 class DicomStructureSetRendererFactory :
31 public LayerSourceBase,
32 private IWebService::ICallback
31 { 33 {
32 private: 34 private:
33 class Renderer; 35 class Renderer;
34 class Operation; 36 class Operation;
35 37
36 class Loader : public IWebService::ICallback
37 {
38 private:
39 DicomStructureSetRendererFactory& that_;
40
41 public:
42 Loader(DicomStructureSetRendererFactory& that) :
43 that_(that)
44 {
45 }
46
47 virtual void NotifyError(const std::string& uri,
48 Orthanc::IDynamicObject* payload)
49 {
50 that_.NotifyError(uri, payload);
51 }
52
53 virtual void NotifySuccess(const std::string& uri,
54 const void* answer,
55 size_t answerSize,
56 Orthanc::IDynamicObject* payload)
57 {
58 that_.NotifySuccess(uri, answer, answerSize, payload);
59 }
60 };
61
62 virtual void NotifyError(const std::string& uri, 38 virtual void NotifyError(const std::string& uri,
63 Orthanc::IDynamicObject* payload); 39 Orthanc::IDynamicObject* payload);
64 40
65 virtual void NotifySuccess(const std::string& uri, 41 virtual void NotifySuccess(const std::string& uri,
66 const void* answer, 42 const void* answer,
67 size_t answerSize, 43 size_t answerSize,
68 Orthanc::IDynamicObject* payload); 44 Orthanc::IDynamicObject* payload);
69 45
70 Loader loader_;
71 IWebService& orthanc_; 46 IWebService& orthanc_;
72 std::auto_ptr<DicomStructureSet> structureSet_; 47 std::auto_ptr<DicomStructureSet> structureSet_;
73 48
74 public: 49 public:
75 DicomStructureSetRendererFactory(IWebService& orthanc); 50 DicomStructureSetRendererFactory(IWebService& orthanc);