Mercurial > hg > orthanc-stone
comparison Framework/Messages/IMessage.h @ 406:5d359b115b29
use of callables in OrthancVolumeImage
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sun, 11 Nov 2018 18:17:50 +0100 |
parents | 1d9dd542adfe |
children | b70e9be013e4 |
comparison
equal
deleted
inserted
replaced
405:3942123602ba | 406:5d359b115b29 |
---|---|
87 // typedef OriginMessage<MessageType_SliceLoader_GeometryError, OrthancSlicesLoader> SliceGeometryErrorMessage; | 87 // typedef OriginMessage<MessageType_SliceLoader_GeometryError, OrthancSlicesLoader> SliceGeometryErrorMessage; |
88 template <int type, typename TOrigin> | 88 template <int type, typename TOrigin> |
89 class OriginMessage : public BaseMessage<type> | 89 class OriginMessage : public BaseMessage<type> |
90 { | 90 { |
91 private: | 91 private: |
92 TOrigin& origin_; | 92 const TOrigin& origin_; |
93 | 93 |
94 public: | 94 public: |
95 OriginMessage(TOrigin& origin) : | 95 OriginMessage(const TOrigin& origin) : |
96 BaseMessage<type>(), | 96 BaseMessage<type>(), |
97 origin_(origin) | 97 origin_(origin) |
98 { | 98 { |
99 } | 99 } |
100 | 100 |
101 TOrigin& GetOrigin() const | 101 const TOrigin& GetOrigin() const |
102 { | 102 { |
103 return origin_; | 103 return origin_; |
104 } | 104 } |
105 }; | 105 }; |
106 } | 106 } |