Mercurial > hg > orthanc
comparison OrthancServer/ServerIndex.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 | b8dfde8d64e8 |
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 |
18 **/ | 18 **/ |
19 | 19 |
20 | 20 |
21 #include "ServerIndex.h" | 21 #include "ServerIndex.h" |
22 | 22 |
23 using namespace Palanthir; | 23 using namespace Orthanc; |
24 | 24 |
25 #ifndef NOMINMAX | 25 #ifndef NOMINMAX |
26 #define NOMINMAX | 26 #define NOMINMAX |
27 #endif | 27 #endif |
28 | 28 |
34 #include "FromDcmtkBridge.h" | 34 #include "FromDcmtkBridge.h" |
35 | 35 |
36 #include <boost/lexical_cast.hpp> | 36 #include <boost/lexical_cast.hpp> |
37 #include <stdio.h> | 37 #include <stdio.h> |
38 | 38 |
39 namespace Palanthir | 39 namespace Orthanc |
40 { | 40 { |
41 namespace Internals | 41 namespace Internals |
42 { | 42 { |
43 class DeleteFromFileStorageFunction : public SQLite::IScalarFunction | 43 class DeleteFromFileStorageFunction : public SQLite::IScalarFunction |
44 { | 44 { |
107 case 2: | 107 case 2: |
108 return "study"; | 108 return "study"; |
109 case 3: | 109 case 3: |
110 return "series"; | 110 return "series"; |
111 default: | 111 default: |
112 throw PalanthirException(ErrorCode_InternalError); | 112 throw OrthancException(ErrorCode_InternalError); |
113 } | 113 } |
114 } | 114 } |
115 | 115 |
116 virtual const char* GetName() const | 116 virtual const char* GetName() const |
117 { | 117 { |
524 | 524 |
525 t.Commit(); | 525 t.Commit(); |
526 return StoreStatus_Success; | 526 return StoreStatus_Success; |
527 //t.Rollback(); | 527 //t.Rollback(); |
528 } | 528 } |
529 catch (PalanthirException& e) | 529 catch (OrthancException& e) |
530 { | 530 { |
531 std::cout << "EXCEPT2 [" << e.What() << "]" << " " << db_.GetErrorMessage() << std::endl; | 531 std::cout << "EXCEPT2 [" << e.What() << "]" << " " << db_.GetErrorMessage() << std::endl; |
532 } | 532 } |
533 | 533 |
534 return StoreStatus_Failure; | 534 return StoreStatus_Failure; |