comparison OrthancServer/ParsedDicomFile.cpp @ 1800:30e97a1f4093 worklists

callback for handling worklists with plugins
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 20 Nov 2015 13:53:20 +0100
parents 6a2d507ef064
children f08978b1f45b
comparison
equal deleted inserted replaced
1799:4f01c9d73f02 1800:30e97a1f4093
151 std::auto_ptr<DcmFileFormat> file_; 151 std::auto_ptr<DcmFileFormat> file_;
152 }; 152 };
153 153
154 154
155 // This method can only be called from the constructors! 155 // This method can only be called from the constructors!
156 void ParsedDicomFile::Setup(const char* buffer, size_t size) 156 void ParsedDicomFile::Setup(const void* buffer,
157 size_t size)
157 { 158 {
158 DcmInputBufferStream is; 159 DcmInputBufferStream is;
159 if (size > 0) 160 if (size > 0)
160 { 161 {
161 is.setBuffer(buffer, size); 162 is.setBuffer(buffer, size);
833 834
834 pimpl_->file_.reset(fileFormat.release()); 835 pimpl_->file_.reset(fileFormat.release());
835 } 836 }
836 837
837 838
838 ParsedDicomFile::ParsedDicomFile(const char* content, size_t size) : pimpl_(new PImpl) 839 ParsedDicomFile::ParsedDicomFile(const void* content,
840 size_t size) : pimpl_(new PImpl)
839 { 841 {
840 Setup(content, size); 842 Setup(content, size);
841 } 843 }
842 844
843 ParsedDicomFile::ParsedDicomFile(const std::string& content) : pimpl_(new PImpl) 845 ParsedDicomFile::ParsedDicomFile(const std::string& content) : pimpl_(new PImpl)