Mercurial > hg > orthanc
comparison OrthancServer/Internals/FindScp.cpp @ 62:a70bb32802ae orthanc-renaming
renaming Server
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sun, 16 Sep 2012 09:33:19 +0200 |
parents | 4bc019d2f969 |
children | 428784e59dcd |
comparison
equal
deleted
inserted
replaced
61:d1c511efd6b1 | 62:a70bb32802ae |
---|---|
1 /** | 1 /** |
2 * Palanthir - A Lightweight, RESTful DICOM Store | 2 * Orthanc - 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 "FindScp.h" | 21 #include "FindScp.h" |
22 | 22 |
23 #include "../FromDcmtkBridge.h" | 23 #include "../FromDcmtkBridge.h" |
24 #include "../ToDcmtkBridge.h" | 24 #include "../ToDcmtkBridge.h" |
25 #include "../../Core/PalanthirException.h" | 25 #include "../../Core/OrthancException.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 Palanthir | 34 namespace Orthanc |
35 { | 35 { |
36 namespace Internals | 36 namespace Internals |
37 { | 37 { |
38 extern OFLogger Logger; | 38 extern OFLogger Logger; |
39 } | 39 } |
72 | 72 |
73 try | 73 try |
74 { | 74 { |
75 data.handler_->Handle(data.input_, data.answers_); | 75 data.handler_->Handle(data.input_, data.answers_); |
76 } | 76 } |
77 catch (PalanthirException& e) | 77 catch (OrthancException& e) |
78 { | 78 { |
79 // Internal error! | 79 // Internal error! |
80 OFLOG_ERROR(Internals::Logger, "IFindRequestHandler Failed: " << e.What()); | 80 OFLOG_ERROR(Internals::Logger, "IFindRequestHandler Failed: " << e.What()); |
81 response->DimseStatus = STATUS_FIND_Failed_UnableToProcess; | 81 response->DimseStatus = STATUS_FIND_Failed_UnableToProcess; |
82 *responseIdentifiers = NULL; | 82 *responseIdentifiers = NULL; |