comparison OrthancServer/Sources/Database/BaseDatabaseWrapper.h @ 5516:d9c9f3c57f4f pg-transactions

reorganization
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 29 Jan 2024 18:18:07 +0100
parents c5a274851b23
children bbe45a71f5cd
comparison
equal deleted inserted replaced
5515:f9e6d366661a 5516:d9c9f3c57f4f
21 21
22 22
23 #pragma once 23 #pragma once
24 24
25 #include "IDatabaseWrapper.h" 25 #include "IDatabaseWrapper.h"
26 #include "../../../OrthancFramework/Sources/OrthancException.h"
27 26
28 namespace Orthanc 27 namespace Orthanc
29 { 28 {
30 /** 29 /**
31 * This class provides a default "not implemented" implementation 30 * This class provides a default "not implemented" implementation
34 class BaseDatabaseWrapper : public IDatabaseWrapper 33 class BaseDatabaseWrapper : public IDatabaseWrapper
35 { 34 {
36 public: 35 public:
37 class BaseTransaction : public IDatabaseWrapper::ITransaction 36 class BaseTransaction : public IDatabaseWrapper::ITransaction
38 { 37 {
38 public:
39 virtual int64_t IncrementGlobalProperty(GlobalProperty property, 39 virtual int64_t IncrementGlobalProperty(GlobalProperty property,
40 int64_t increment, 40 int64_t increment,
41 bool shared) ORTHANC_OVERRIDE 41 bool shared) ORTHANC_OVERRIDE;
42 {
43 throw OrthancException(ErrorCode_NotImplemented); // Not supported
44 }
45 42
46 virtual void UpdateAndGetStatistics(int64_t& patientsCount, 43 virtual void UpdateAndGetStatistics(int64_t& patientsCount,
47 int64_t& studiesCount, 44 int64_t& studiesCount,
48 int64_t& seriesCount, 45 int64_t& seriesCount,
49 int64_t& instancesCount, 46 int64_t& instancesCount,
50 int64_t& compressedSize, 47 int64_t& compressedSize,
51 int64_t& uncompressedSize) ORTHANC_OVERRIDE 48 int64_t& uncompressedSize) ORTHANC_OVERRIDE;
52 {
53 throw OrthancException(ErrorCode_NotImplemented); // Not supported
54 }
55
56 }; 49 };
57
58 }; 50 };
59 } 51 }