comparison OrthancServer/Internals/StoreScp.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 "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/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 }
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 (PalanthirException& e) 191 catch (OrthancException& 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 }