comparison OrthancServer/Sources/Database/IDatabaseWrapper.h @ 5680:68fc5af30c03

added container class DatabaseConstraints
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 09 Jul 2024 10:09:57 +0200
parents f7adfb22e20e
children 77875b51cf95 8279eaab0d1d
comparison
equal deleted inserted replaced
5678:e47ac5e133b1 5680:68fc5af30c03
35 #include <boost/noncopyable.hpp> 35 #include <boost/noncopyable.hpp>
36 #include <set> 36 #include <set>
37 37
38 namespace Orthanc 38 namespace Orthanc
39 { 39 {
40 class DatabaseConstraint; 40 class DatabaseConstraints;
41 class ResourcesContent; 41 class ResourcesContent;
42 42
43 class IDatabaseWrapper : public boost::noncopyable 43 class IDatabaseWrapper : public boost::noncopyable
44 { 44 {
45 public: 45 public:
280 280
281 virtual bool IsDiskSizeAbove(uint64_t threshold) = 0; 281 virtual bool IsDiskSizeAbove(uint64_t threshold) = 0;
282 282
283 virtual void ApplyLookupResources(std::list<std::string>& resourcesId, 283 virtual void ApplyLookupResources(std::list<std::string>& resourcesId,
284 std::list<std::string>* instancesId, // Can be NULL if not needed 284 std::list<std::string>* instancesId, // Can be NULL if not needed
285 const std::vector<DatabaseConstraint>& lookup, 285 const DatabaseConstraints& lookup,
286 ResourceType queryLevel, 286 ResourceType queryLevel,
287 const std::set<std::string>& labels, 287 const std::set<std::string>& labels,
288 LabelsConstraint labelsConstraint, 288 LabelsConstraint labelsConstraint,
289 uint32_t limit) = 0; 289 uint32_t limit) = 0;
290 290