comparison OrthancServer/FromDcmtkBridge.cpp @ 2232:3dd44baebc36

macro ORTHANC_ENABLE_LUA for orthanc-wsi
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 14 Dec 2016 16:57:21 +0100
parents 3eefb84ac0bd
children a3a65de1840f
comparison
equal deleted inserted replaced
2231:61e0564d03bb 2232:3dd44baebc36
1975 return false; 1975 return false;
1976 } 1976 }
1977 } 1977 }
1978 1978
1979 1979
1980 #if ORTHANC_ENABLE_LUA == 1
1980 void FromDcmtkBridge::ExecuteToDicom(DicomMap& target, 1981 void FromDcmtkBridge::ExecuteToDicom(DicomMap& target,
1981 LuaFunctionCall& call) 1982 LuaFunctionCall& call)
1982 { 1983 {
1983 Json::Value output; 1984 Json::Value output;
1984 call.ExecuteToJson(output, true /* keep strings */); 1985 call.ExecuteToJson(output, true /* keep strings */);
2010 2011
2011 DicomTag tag(ParseTag(members[i])); 2012 DicomTag tag(ParseTag(members[i]));
2012 target.SetValue(tag, output[members[i]].asString(), false); 2013 target.SetValue(tag, output[members[i]].asString(), false);
2013 } 2014 }
2014 } 2015 }
2016 #endif
2015 } 2017 }