comparison OrthancServer/main.cpp @ 1995:f0acfa753973

New callback to handle non-worklists C-Find requests: OrthancPluginRegisterCFindCallback()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 24 May 2016 17:45:56 +0200
parents ce90d109bb64
children 364cc624eb65
comparison
equal deleted inserted replaced
1994:4d099fee5eca 1995:f0acfa753973
754 dicomServer.SetStoreRequestHandlerFactory(serverFactory); 754 dicomServer.SetStoreRequestHandlerFactory(serverFactory);
755 dicomServer.SetMoveRequestHandlerFactory(serverFactory); 755 dicomServer.SetMoveRequestHandlerFactory(serverFactory);
756 dicomServer.SetFindRequestHandlerFactory(serverFactory); 756 dicomServer.SetFindRequestHandlerFactory(serverFactory);
757 757
758 #if ORTHANC_PLUGINS_ENABLED == 1 758 #if ORTHANC_PLUGINS_ENABLED == 1
759 if (plugins && 759 if (plugins != NULL)
760 plugins->HasWorklistHandler()) 760 {
761 { 761 if (plugins->HasWorklistHandler())
762 dicomServer.SetWorklistRequestHandlerFactory(*plugins); 762 {
763 dicomServer.SetWorklistRequestHandlerFactory(*plugins);
764 }
765
766 if (plugins->HasFindHandler())
767 {
768 dicomServer.SetFindRequestHandlerFactory(*plugins);
769 }
763 } 770 }
764 #endif 771 #endif
765 772
766 dicomServer.SetPortNumber(Configuration::GetGlobalIntegerParameter("DicomPort", 4242)); 773 dicomServer.SetPortNumber(Configuration::GetGlobalIntegerParameter("DicomPort", 4242));
767 dicomServer.SetApplicationEntityTitle(Configuration::GetGlobalStringParameter("DicomAet", "ORTHANC")); 774 dicomServer.SetApplicationEntityTitle(Configuration::GetGlobalStringParameter("DicomAet", "ORTHANC"));