Mercurial > hg > orthanc
comparison OrthancServer/FromDcmtkBridge.cpp @ 2143:fd5875662670
creation of namespace SystemToolbox
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 09 Nov 2016 16:54:23 +0100 |
parents | 5a8840920121 |
children | 8cbb55089a1d |
comparison
equal
deleted
inserted
replaced
2142:5a8840920121 | 2143:fd5875662670 |
---|---|
116 EmbeddedResources::FileResourceId resource) | 116 EmbeddedResources::FileResourceId resource) |
117 { | 117 { |
118 std::string content; | 118 std::string content; |
119 EmbeddedResources::GetFileResource(content, resource); | 119 EmbeddedResources::GetFileResource(content, resource); |
120 | 120 |
121 Toolbox::TemporaryFile tmp; | 121 TemporaryFile tmp; |
122 tmp.Write(content); | 122 tmp.Write(content); |
123 | 123 |
124 if (!dictionary.loadDictionary(tmp.GetPath().c_str())) | 124 if (!dictionary.loadDictionary(tmp.GetPath().c_str())) |
125 { | 125 { |
126 LOG(ERROR) << "Cannot read embedded dictionary. Under Windows, make sure that " | 126 LOG(ERROR) << "Cannot read embedded dictionary. Under Windows, make sure that " |
142 if (!dictionary.loadDictionary(p.string().c_str())) | 142 if (!dictionary.loadDictionary(p.string().c_str())) |
143 { | 143 { |
144 throw OrthancException(ErrorCode_InternalError); | 144 throw OrthancException(ErrorCode_InternalError); |
145 } | 145 } |
146 } | 146 } |
147 | |
148 #endif | 147 #endif |
149 | 148 |
150 | 149 |
151 namespace | 150 namespace |
152 { | 151 { |