Mercurial > hg > orthanc-databases
comparison Framework/Plugins/IndexUnitTests.h @ 203:2089d4071408
moving classes out of OrthancPlugins namespace, to OrthancDatabases
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 18 Mar 2021 18:15:34 +0100 |
parents | 42990b2dd51b |
children | 7299410c3d61 |
comparison
equal
deleted
inserted
replaced
202:2def2df94f94 | 203:2089d4071408 |
---|---|
177 SQLiteIndex db(&context); // Open in memory | 177 SQLiteIndex db(&context); // Open in memory |
178 #else | 178 #else |
179 # error Unsupported database backend | 179 # error Unsupported database backend |
180 #endif | 180 #endif |
181 | 181 |
182 db.SetOutputFactory(new OrthancPlugins::DatabaseBackendOutputV2::Factory(&context, NULL)); | 182 db.SetOutputFactory(new DatabaseBackendOutputV2::Factory(&context, NULL)); |
183 db.Open(); | 183 db.Open(); |
184 | 184 |
185 std::unique_ptr<OrthancPlugins::IDatabaseBackendOutput> output(db.CreateOutput()); | 185 std::unique_ptr<IDatabaseBackendOutput> output(db.CreateOutput()); |
186 | 186 |
187 | 187 |
188 std::string s; | 188 std::string s; |
189 ASSERT_TRUE(db.LookupGlobalProperty(s, Orthanc::GlobalProperty_DatabaseSchemaVersion)); | 189 ASSERT_TRUE(db.LookupGlobalProperty(s, Orthanc::GlobalProperty_DatabaseSchemaVersion)); |
190 ASSERT_EQ("6", s); | 190 ASSERT_EQ("6", s); |