Mercurial > hg > orthanc
comparison PalanthirServer/Internals/StoreScp.cpp @ 50:a15e90e5d6fc
rename in code
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 05 Sep 2012 15:50:12 +0200 |
parents | 33d67e1ab173 |
children |
comparison
equal
deleted
inserted
replaced
49:e1a3ae0dadf3 | 50:a15e90e5d6fc |
---|---|
1 /** | 1 /** |
2 * Palantir - A Lightweight, RESTful DICOM Store | 2 * Palanthir - A Lightweight, RESTful DICOM Store |
3 * Copyright (C) 2012 Medical Physics Department, CHU of Liege, | 3 * Copyright (C) 2012 Medical Physics Department, CHU of Liege, |
4 * Belgium | 4 * Belgium |
5 * | 5 * |
6 * This program is free software: you can redistribute it and/or | 6 * This program is free software: you can redistribute it and/or |
7 * modify it under the terms of the GNU General Public License as | 7 * modify it under the terms of the GNU General Public License as |
20 | 20 |
21 #include "StoreScp.h" | 21 #include "StoreScp.h" |
22 | 22 |
23 #include "../FromDcmtkBridge.h" | 23 #include "../FromDcmtkBridge.h" |
24 #include "../ToDcmtkBridge.h" | 24 #include "../ToDcmtkBridge.h" |
25 #include "../../Core/PalantirException.h" | 25 #include "../../Core/PalanthirException.h" |
26 | 26 |
27 #include <dcmtk/dcmdata/dcfilefo.h> | 27 #include <dcmtk/dcmdata/dcfilefo.h> |
28 #include <dcmtk/dcmdata/dcmetinf.h> | 28 #include <dcmtk/dcmdata/dcmetinf.h> |
29 #include <dcmtk/dcmdata/dcostrmb.h> | 29 #include <dcmtk/dcmdata/dcostrmb.h> |
30 #include <dcmtk/dcmdata/dcdeftag.h> | 30 #include <dcmtk/dcmdata/dcdeftag.h> |
31 #include <dcmtk/dcmnet/diutil.h> | 31 #include <dcmtk/dcmnet/diutil.h> |
32 | 32 |
33 | 33 |
34 namespace Palantir | 34 namespace Palanthir |
35 { | 35 { |
36 namespace Internals | 36 namespace Internals |
37 { | 37 { |
38 extern OFLogger Logger; | 38 extern OFLogger Logger; |
39 } | 39 } |
186 { | 186 { |
187 try | 187 try |
188 { | 188 { |
189 cbdata->handler->Handle(buffer, summary, dicomJson, cbdata->distantAET); | 189 cbdata->handler->Handle(buffer, summary, dicomJson, cbdata->distantAET); |
190 } | 190 } |
191 catch (PalantirException& e) | 191 catch (PalanthirException& e) |
192 { | 192 { |
193 rsp->DimseStatus = STATUS_STORE_Refused_OutOfResources; | 193 rsp->DimseStatus = STATUS_STORE_Refused_OutOfResources; |
194 OFLOG_ERROR(Internals::Logger, "Exception while storing DICOM: " << e.What()); | 194 OFLOG_ERROR(Internals::Logger, "Exception while storing DICOM: " << e.What()); |
195 } | 195 } |
196 } | 196 } |