comparison PalanthirServer/ServerIndex.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
18 **/ 18 **/
19 19
20 20
21 #include "ServerIndex.h" 21 #include "ServerIndex.h"
22 22
23 using namespace Palantir; 23 using namespace Palanthir;
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 Palantir 39 namespace Palanthir
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 PalantirException(ErrorCode_InternalError); 112 throw PalanthirException(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 (PalantirException& e) 529 catch (PalanthirException& 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;