comparison Framework/Orthanc/Core/Images/PngReader.cpp @ 15:da2cf3ace87a

sync
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 09 Nov 2016 17:20:44 +0100
parents 2dbe613f6c93
children
comparison
equal deleted inserted replaced
14:0b9034112fde 15:da2cf3ace87a
32 32
33 #include "../PrecompiledHeaders.h" 33 #include "../PrecompiledHeaders.h"
34 #include "PngReader.h" 34 #include "PngReader.h"
35 35
36 #include "../OrthancException.h" 36 #include "../OrthancException.h"
37 #include "../SystemToolbox.h"
37 #include "../Toolbox.h" 38 #include "../Toolbox.h"
38 39
39 #include <png.h> 40 #include <png.h>
40 #include <string.h> // For memcpy() 41 #include <string.h> // For memcpy()
41 42
47 { 48 {
48 FILE* fp_; 49 FILE* fp_;
49 50
50 FileRabi(const char* filename) 51 FileRabi(const char* filename)
51 { 52 {
52 fp_ = Toolbox::OpenFile(filename, FileMode_ReadBinary); 53 fp_ = SystemToolbox::OpenFile(filename, FileMode_ReadBinary);
53 if (!fp_) 54 if (!fp_)
54 { 55 {
55 throw OrthancException(ErrorCode_InexistentFile); 56 throw OrthancException(ErrorCode_InexistentFile);
56 } 57 }
57 } 58 }