comparison Plugin/SeriesInformationAdapter.cpp @ 100:f5b1a9267da0 refactoring

remove unused classes
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 27 Nov 2015 21:45:21 +0100
parents 46ec13a1177c
children 3809121c3290
comparison
equal deleted inserted replaced
99:46ec13a1177c 100:f5b1a9267da0
19 19
20 20
21 #include "SeriesInformationAdapter.h" 21 #include "SeriesInformationAdapter.h"
22 22
23 #include "ViewerToolbox.h" 23 #include "ViewerToolbox.h"
24 #include "SeriesVolumeSorter.h"
25
26 #include "../Orthanc/Core/OrthancException.h"
27 24
28 #include <boost/regex.hpp> 25 #include <boost/regex.hpp>
29 26
30 namespace OrthancPlugins 27 namespace OrthancPlugins
31 { 28 {
68 { 65 {
69 return false; 66 return false;
70 } 67 }
71 } 68 }
72 69
73 #if 0
74 result["SortedInstances"] = Json::arrayValue;
75
76 SeriesVolumeSorter sorter;
77 sorter.Reserve(series["Instances"].size());
78
79 for (Json::Value::ArrayIndex i = 0; i < series["Instances"].size(); i++)
80 {
81 const std::string instanceId = series["Instances"][i].asString();
82 std::string tmp;
83
84 if (!cache_.Access(tmp, CacheBundle_InstanceInformation, instanceId))
85 {
86 OrthancPluginLogError(context_, "The cache is corrupted. Delete it to reconstruct it.");
87 throw Orthanc::OrthancException(Orthanc::ErrorCode_CorruptedFile);
88 }
89
90 InstanceInformation instance(tmp);
91 sorter.AddInstance(instanceId, instance);
92 }
93
94 for (size_t i = 0; i < sorter.GetSize(); i++)
95 {
96 result["SortedInstances"].append(sorter.GetInstance(i));
97 }
98
99 std::cout << result.toStyledString();
100
101 #endif
102
103 content = result.toStyledString(); 70 content = result.toStyledString();
104 71
105 return true; 72 return true;
106 } 73 }
107 } 74 }