diff PalanthirServer/DicomProtocol/DicomUserConnection.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
line wrap: on
line diff
--- a/PalanthirServer/DicomProtocol/DicomUserConnection.cpp	Wed Sep 05 15:38:08 2012 +0200
+++ b/PalanthirServer/DicomProtocol/DicomUserConnection.cpp	Wed Sep 05 15:50:12 2012 +0200
@@ -1,5 +1,5 @@
 /**
- * Palantir - A Lightweight, RESTful DICOM Store
+ * Palanthir - A Lightweight, RESTful DICOM Store
  * Copyright (C) 2012 Medical Physics Department, CHU of Liege,
  * Belgium
  *
@@ -20,7 +20,7 @@
 
 #include "DicomUserConnection.h"
 
-#include "../../Core/PalantirException.h"
+#include "../../Core/PalanthirException.h"
 #include "../ToDcmtkBridge.h"
 #include "../FromDcmtkBridge.h"
 
@@ -46,7 +46,7 @@
 #endif 
 
 
-namespace Palantir
+namespace Palanthir
 {
   struct DicomUserConnection::PImpl
   {
@@ -70,7 +70,7 @@
   {
     if (cond.bad())
     {
-      throw PalantirException("DicomUserConnection: " + std::string(cond.text()));
+      throw PalanthirException("DicomUserConnection: " + std::string(cond.text()));
     }
   }
 
@@ -78,7 +78,7 @@
   {
     if (!IsOpen())
     {
-      throw PalantirException("DicomUserConnection: First open the connection");
+      throw PalanthirException("DicomUserConnection: First open the connection");
     }
   }
 
@@ -170,7 +170,7 @@
     DIC_UI sopInstance;
     if (!DU_findSOPClassAndInstanceInDataSet(dcmff.getDataset(), sopClass, sopInstance))
     {
-      throw PalantirException("DicomUserConnection: Unable to find the SOP class and instance");
+      throw PalanthirException("DicomUserConnection: Unable to find the SOP class and instance");
     }
 
     // Figure out which of the accepted presentation contexts should be used
@@ -180,7 +180,7 @@
       const char *modalityName = dcmSOPClassUIDToModality(sopClass);
       if (!modalityName) modalityName = dcmFindNameOfUID(sopClass);
       if (!modalityName) modalityName = "unknown SOP class";
-      throw PalantirException("DicomUserConnection: No presentation context for modality " + 
+      throw PalanthirException("DicomUserConnection: No presentation context for modality " + 
                               std::string(modalityName));
     }
 
@@ -306,14 +306,14 @@
       break;
 
     default:
-      throw PalantirException(ErrorCode_ParameterOutOfRange);
+      throw PalanthirException(ErrorCode_ParameterOutOfRange);
     }
 
     // Figure out which of the accepted presentation contexts should be used
     int presID = ASC_findAcceptedPresentationContextID(pimpl_->assoc_, sopClass);
     if (presID == 0)
     {
-      throw PalantirException("DicomUserConnection: The C-FIND command is not supported by the distant AET");
+      throw PalanthirException("DicomUserConnection: The C-FIND command is not supported by the distant AET");
     }
 
     T_DIMSE_C_FindRQ request;
@@ -403,7 +403,7 @@
     int presID = ASC_findAcceptedPresentationContextID(pimpl_->assoc_, sopClass);
     if (presID == 0)
     {
-      throw PalantirException("DicomUserConnection: The C-MOVE command is not supported by the distant AET");
+      throw PalanthirException("DicomUserConnection: The C-MOVE command is not supported by the distant AET");
     }
 
     T_DIMSE_C_MoveRQ request;
@@ -471,7 +471,7 @@
   {
     if (host.size() > HOST_NAME_MAX - 10)
     {
-      throw PalantirException("Distant host name is too long");
+      throw PalanthirException("Distant host name is too long");
     }
 
     Close();
@@ -519,7 +519,7 @@
 
     if (ASC_countAcceptedPresentationContexts(pimpl_->params_) == 0)
     {
-      throw PalantirException("DicomUserConnection: No Acceptable Presentation Contexts");
+      throw PalanthirException("DicomUserConnection: No Acceptable Presentation Contexts");
     }
   }