diff OrthancServer/Sources/ServerContext.cpp @ 5221:d0f7c742d397 db-protobuf

started implementation of labels
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 03 Apr 2023 20:53:14 +0200
parents df39c7583a49
children 3a61fd50f804
line wrap: on
line diff
--- a/OrthancServer/Sources/ServerContext.cpp	Mon Apr 03 18:09:04 2023 +0200
+++ b/OrthancServer/Sources/ServerContext.cpp	Mon Apr 03 20:53:14 2023 +0200
@@ -2144,6 +2144,16 @@
 
     }
 
+    {
+      Json::Value labels = Json::arrayValue;
+
+      for (std::set<std::string>::const_iterator it = resource.labels_.begin(); it != resource.labels_.end(); ++it)
+      {
+        labels.append(*it);
+      }
+
+      target["Labels"] = labels;
+    }
   }