Mercurial > hg > orthanc-databases
comparison SQLite/Plugins/IndexPlugin.cpp @ 211:d74a92ac00ea
orthanc 1.10.0 is renamed as 1.9.2
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 24 Mar 2021 15:32:29 +0100 |
parents | a0c095a4ba7d |
children | 821d4ba83dc3 |
comparison
equal
deleted
inserted
replaced
210:a0c095a4ba7d | 211:d74a92ac00ea |
---|---|
28 static std::unique_ptr<OrthancDatabases::SQLiteIndex> backend_; | 28 static std::unique_ptr<OrthancDatabases::SQLiteIndex> backend_; |
29 | 29 |
30 | 30 |
31 | 31 |
32 #if defined(ORTHANC_PLUGINS_VERSION_IS_ABOVE) // Macro introduced in Orthanc 1.3.1 | 32 #if defined(ORTHANC_PLUGINS_VERSION_IS_ABOVE) // Macro introduced in Orthanc 1.3.1 |
33 # if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 10, 0) | 33 # if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 9, 2) |
34 | 34 |
35 | 35 |
36 #define ORTHANC_PLUGINS_DATABASE_CATCH(context) \ | 36 #define ORTHANC_PLUGINS_DATABASE_CATCH(context) \ |
37 catch (::Orthanc::OrthancException& e) \ | 37 catch (::Orthanc::OrthancException& e) \ |
38 { \ | 38 { \ |
47 catch (...) \ | 47 catch (...) \ |
48 { \ | 48 { \ |
49 OrthancPluginLogError(context, "Native exception"); \ | 49 OrthancPluginLogError(context, "Native exception"); \ |
50 return OrthancPluginErrorCode_DatabasePlugin; \ | 50 return OrthancPluginErrorCode_DatabasePlugin; \ |
51 } | 51 } |
52 | |
52 | 53 |
53 | 54 |
54 namespace OrthancDatabases | 55 namespace OrthancDatabases |
55 { | 56 { |
56 class Output : public IDatabaseBackendOutput | 57 class Output : public IDatabaseBackendOutput |
1889 /* Register the SQLite index into Orthanc */ | 1890 /* Register the SQLite index into Orthanc */ |
1890 | 1891 |
1891 bool hasLoadedV3 = false; | 1892 bool hasLoadedV3 = false; |
1892 | 1893 |
1893 #if defined(ORTHANC_PLUGINS_VERSION_IS_ABOVE) // Macro introduced in Orthanc 1.3.1 | 1894 #if defined(ORTHANC_PLUGINS_VERSION_IS_ABOVE) // Macro introduced in Orthanc 1.3.1 |
1894 # if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 10, 0) | 1895 # if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 9, 2) |
1895 if (OrthancPluginCheckVersionAdvanced(context, 1, 10, 0) == 1) | 1896 if (OrthancPluginCheckVersionAdvanced(context, 1, 9, 2) == 1) |
1896 { | 1897 { |
1897 RegisterV3(*backend_); | 1898 RegisterV3(*backend_); |
1898 hasLoadedV3 = true; | 1899 hasLoadedV3 = true; |
1899 } | 1900 } |
1900 # endif | 1901 # endif |