diff OrthancServer/ServerIndex.cpp @ 434:ccf3a0a43dac

EnumerationDictionary
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 15 May 2013 14:54:58 +0200
parents aa50783f9550
children d51186bf7602
line wrap: on
line diff
--- a/OrthancServer/ServerIndex.cpp	Wed May 15 14:19:09 2013 +0200
+++ b/OrthancServer/ServerIndex.cpp	Wed May 15 14:54:58 2013 +0200
@@ -211,7 +211,7 @@
 
       target["RemainingAncestor"] = Json::Value(Json::objectValue);
       target["RemainingAncestor"]["Path"] = GetBasePath(type, uuid);
-      target["RemainingAncestor"]["Type"] = ToString(type);
+      target["RemainingAncestor"]["Type"] = EnumerationToString(type);
       target["RemainingAncestor"]["ID"] = uuid;
     }
     else
@@ -705,7 +705,7 @@
       case ResourceType_Series:
       {
         result["Type"] = "Series";
-        result["Status"] = ToString(GetSeriesStatus(id));
+        result["Status"] = EnumerationToString(GetSeriesStatus(id));
 
         int i;
         if (db_->GetMetadataAsInteger(i, id, MetadataType_Series_ExpectedNumberOfInstances))