comparison OrthancCppClient/Instance.cpp @ 797:37adac56017a

ImageAccessor abstraction
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 06 May 2014 12:47:26 +0200
parents d380222b4c2a
children a811bdf8b8eb
comparison
equal deleted inserted replaced
796:e7b1ca0f1e04 797:37adac56017a
176 } 176 }
177 177
178 const void* Instance::GetBuffer() 178 const void* Instance::GetBuffer()
179 { 179 {
180 DownloadImage(); 180 DownloadImage();
181 return reader_->GetBuffer(); 181 return reader_->GetConstBuffer();
182 } 182 }
183 183
184 const void* Instance::GetBuffer(unsigned int y) 184 const void* Instance::GetBuffer(unsigned int y)
185 { 185 {
186 DownloadImage(); 186 DownloadImage();
187 return reader_->GetBuffer(y); 187 return reader_->GetConstRow(y);
188 } 188 }
189 189
190 void Instance::DiscardImage() 190 void Instance::DiscardImage()
191 { 191 {
192 reader_.reset(); 192 reader_.reset();