diff OrthancServer/Sources/Database/FindRequest.h @ 5583:74cc31c8db2b find-refactoring

removed FindResponse::Item::responseContent_
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sat, 27 Apr 2024 22:15:37 +0200
parents 5a13483d12c5
children 0f5586c498d1
line wrap: on
line diff
--- a/OrthancServer/Sources/Database/FindRequest.h	Sat Apr 27 21:42:32 2024 +0200
+++ b/OrthancServer/Sources/Database/FindRequest.h	Sat Apr 27 22:15:37 2024 +0200
@@ -80,6 +80,7 @@
 
     class Key
     {
+    private:
       KeyType                       type_;
       boost::shared_ptr<DicomTag>   dicomTag_;
       MetadataType                  metadata_;
@@ -90,14 +91,14 @@
       // these are however only populated in StatelessDatabaseOperations -> we had to add the normalized lookup arg to ExecuteFind
 
     public:
-      Key(const DicomTag& dicomTag) :
+      explicit Key(const DicomTag& dicomTag) :
         type_(KeyType_DicomTag),
         dicomTag_(new DicomTag(dicomTag)),
         metadata_(MetadataType_EndUser)
       {
       }
 
-      Key(MetadataType metadata) :
+      explicit Key(MetadataType metadata) :
         type_(KeyType_Metadata),
         metadata_(metadata)
       {
@@ -123,6 +124,7 @@
 
     class Ordering : public boost::noncopyable
     {
+    private:
       OrderingDirection   direction_;
       Key                 key_;
 
@@ -134,7 +136,6 @@
       {
       }
 
-    public:
       KeyType GetKeyType() const
       {
         return key_.GetType();
@@ -354,7 +355,7 @@
     bool IsCompatibleLevel(ResourceType levelOfInterest) const;
 
   public:
-    FindRequest(ResourceType level);
+    explicit FindRequest(ResourceType level);
 
     ~FindRequest();