Mercurial > hg > orthanc
comparison 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 |
comparison
equal
deleted
inserted
replaced
5220:df39c7583a49 | 5221:d0f7c742d397 |
---|---|
2142 target[REQUESTED_TAGS] = Json::objectValue; | 2142 target[REQUESTED_TAGS] = Json::objectValue; |
2143 FromDcmtkBridge::ToJson(target[REQUESTED_TAGS], tags, format); | 2143 FromDcmtkBridge::ToJson(target[REQUESTED_TAGS], tags, format); |
2144 | 2144 |
2145 } | 2145 } |
2146 | 2146 |
2147 { | |
2148 Json::Value labels = Json::arrayValue; | |
2149 | |
2150 for (std::set<std::string>::const_iterator it = resource.labels_.begin(); it != resource.labels_.end(); ++it) | |
2151 { | |
2152 labels.append(*it); | |
2153 } | |
2154 | |
2155 target["Labels"] = labels; | |
2156 } | |
2147 } | 2157 } |
2148 | 2158 |
2149 | 2159 |
2150 static void ComputeInstanceTags(ExpandedResource& resource, | 2160 static void ComputeInstanceTags(ExpandedResource& resource, |
2151 ServerContext& context, | 2161 ServerContext& context, |