comparison OrthancServer/OrthancRestApi.cpp @ 357:8d3a0db39967

fix of standalone builds
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 31 Jan 2013 14:06:34 +0100
parents 64625960af22
children 4d5f0857ec9c
comparison
equal deleted inserted replaced
356:d1f82cf3ae35 357:8d3a0db39967
911 911
912 target.clear(); 912 target.clear();
913 913
914 for (Json::Value::ArrayIndex i = 0; i < removals.size(); i++) 914 for (Json::Value::ArrayIndex i = 0; i < removals.size(); i++)
915 { 915 {
916 DicomTag tag = FromDcmtkBridge::ParseTag(removals[i].asString()); 916 std::string name = removals[i].asString();
917 DicomTag tag = FromDcmtkBridge::ParseTag(name);
917 target.insert(tag); 918 target.insert(tag);
919
920 VLOG(1) << "Removal: " << name << " " << tag << std::endl;
918 } 921 }
919 } 922 }
920 923
921 924
922 static void ParseReplacements(Replacements& target, 925 static void ParseReplacements(Replacements& target,
935 const std::string& name = members[i]; 938 const std::string& name = members[i];
936 std::string value = replacements[name].asString(); 939 std::string value = replacements[name].asString();
937 940
938 DicomTag tag = FromDcmtkBridge::ParseTag(name); 941 DicomTag tag = FromDcmtkBridge::ParseTag(name);
939 target[tag] = value; 942 target[tag] = value;
943
944 VLOG(1) << "Replacement: " << name << " " << tag << " == " << value << std::endl;
940 } 945 }
941 } 946 }
942 947
943 948
944 static std::string GeneratePatientName(ServerContext& context) 949 static std::string GeneratePatientName(ServerContext& context)
1146 Replacements& replacements, 1151 Replacements& replacements,
1147 bool removePrivateTags, 1152 bool removePrivateTags,
1148 RestApi::PostCall& call) 1153 RestApi::PostCall& call)
1149 { 1154 {
1150 boost::mutex::scoped_lock lock(cacheMutex_); 1155 boost::mutex::scoped_lock lock(cacheMutex_);
1151
1152 RETRIEVE_CONTEXT(call); 1156 RETRIEVE_CONTEXT(call);
1153 1157
1154 std::string id = call.GetUriComponent("id", ""); 1158 std::string id = call.GetUriComponent("id", "");
1155 ParsedDicomFile& dicom = context.GetDicomFile(id); 1159 ParsedDicomFile& dicom = context.GetDicomFile(id);
1156 1160