comparison OrthancServer/main.cpp @ 1982:b5d4f9c156ad

Modification of instances can now replace PixelData
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 22 Apr 2016 10:28:55 +0200
parents ebce5f456b8e
children ce90d109bb64
comparison
equal deleted inserted replaced
1981:4b545a8b1f95 1982:b5d4f9c156ad
1161 { 1161 {
1162 for (;;) 1162 for (;;)
1163 { 1163 {
1164 OrthancInitialize(configurationFile); 1164 OrthancInitialize(configurationFile);
1165 1165
1166 if (0)
1167 {
1168 // TODO REMOVE THIS TEST
1169 DicomUserConnection c;
1170 c.SetRemoteHost("localhost");
1171 c.SetRemotePort(4243);
1172 c.SetRemoteApplicationEntityTitle("ORTHANCTEST");
1173 c.Open();
1174 ParsedDicomFile f(false);
1175 f.Replace(DICOM_TAG_PATIENT_NAME, "M*");
1176 DicomFindAnswers a;
1177 c.FindWorklist(a, f);
1178 Json::Value j;
1179 a.ToJson(j, true);
1180 std::cout << j;
1181 }
1182
1183 bool restart = StartOrthanc(argc, argv, allowDatabaseUpgrade); 1166 bool restart = StartOrthanc(argc, argv, allowDatabaseUpgrade);
1184 if (restart) 1167 if (restart)
1185 { 1168 {
1186 OrthancFinalize(); 1169 OrthancFinalize();
1187 } 1170 }