Mercurial > hg > orthanc-databases
comparison Framework/Plugins/DatabaseBackendAdapterV3.cpp @ 551:1a23f1ce3b98
move classes DatabaseConstraint and ISqlLookupFormatter into namespace OrthancDatabases
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 09 Sep 2024 15:19:28 +0200 |
parents | aff02ad9fbbc |
children |
comparison
equal
deleted
inserted
replaced
549:e620f36b8e09 | 551:1a23f1ce3b98 |
---|---|
1638 | 1638 |
1639 try | 1639 try |
1640 { | 1640 { |
1641 t->GetOutput().Clear(); | 1641 t->GetOutput().Clear(); |
1642 | 1642 |
1643 Orthanc::DatabaseConstraints lookup; | 1643 DatabaseConstraints lookup; |
1644 | 1644 |
1645 for (uint32_t i = 0; i < constraintsCount; i++) | 1645 for (uint32_t i = 0; i < constraintsCount; i++) |
1646 { | 1646 { |
1647 lookup.AddConstraint(new Orthanc::DatabaseConstraint(constraints[i])); | 1647 lookup.AddConstraint(new DatabaseConstraint(constraints[i])); |
1648 } | 1648 } |
1649 | 1649 |
1650 std::set<std::string> noLabel; | 1650 std::set<std::string> noLabel; |
1651 t->GetBackend().LookupResources(t->GetOutput(), t->GetManager(), lookup, queryLevel, noLabel, | 1651 t->GetBackend().LookupResources(t->GetOutput(), t->GetManager(), lookup, queryLevel, noLabel, |
1652 Orthanc::LabelsConstraint_All, limit, (requestSomeInstanceId != 0)); | 1652 LabelsConstraint_All, limit, (requestSomeInstanceId != 0)); |
1653 return OrthancPluginErrorCode_Success; | 1653 return OrthancPluginErrorCode_Success; |
1654 } | 1654 } |
1655 ORTHANC_PLUGINS_DATABASE_CATCH(t->GetBackend().GetContext()); | 1655 ORTHANC_PLUGINS_DATABASE_CATCH(t->GetBackend().GetContext()); |
1656 } | 1656 } |
1657 | 1657 |