Mercurial > hg > orthanc
diff OrthancServer/DatabaseWrapper.cpp @ 434:ccf3a0a43dac
EnumerationDictionary
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 15 May 2013 14:54:58 +0200 |
parents | 47d63c941902 |
children | d51186bf7602 |
line wrap: on
line diff
--- a/OrthancServer/DatabaseWrapper.cpp Wed May 15 14:19:09 2013 +0200 +++ b/OrthancServer/DatabaseWrapper.cpp Wed May 15 14:54:58 2013 +0200 @@ -551,8 +551,8 @@ Json::Value item = Json::objectValue; item["Seq"] = static_cast<int>(seq); - item["ChangeType"] = ToString(changeType); - item["ResourceType"] = ToString(resourceType); + item["ChangeType"] = EnumerationToString(changeType); + item["ResourceType"] = EnumerationToString(resourceType); item["ID"] = publicId; item["Path"] = GetBasePath(resourceType, publicId); item["Date"] = date; @@ -626,7 +626,7 @@ Json::Value item = Json::objectValue; item["Seq"] = static_cast<int>(seq); - item["ResourceType"] = ToString(resourceType); + item["ResourceType"] = EnumerationToString(resourceType); item["ID"] = publicId; item["Path"] = GetBasePath(resourceType, publicId); item["RemoteModality"] = s.ColumnString(3);