Mercurial > hg > orthanc
comparison PalantirServer/main.cpp @ 12:c38716a8a146
static link against MSVC CRT
author | Administrator@jodogne-w01 |
---|---|
date | Fri, 20 Jul 2012 12:14:01 +0200 |
parents | 67a6978503b7 |
children | e85455ff6039 |
comparison
equal
deleted
inserted
replaced
11:09f1eceaccec | 12:c38716a8a146 |
---|---|
105 } | 105 } |
106 | 106 |
107 | 107 |
108 try | 108 try |
109 { | 109 { |
110 ServerIndex index("server"); | 110 std::string storageDirectory = GetGlobalStringParameter("StorageDirectory", "PalantirStorage"); |
111 MyDicomStoreFactory storeScp(index, "server"); | 111 ServerIndex index(storageDirectory); |
112 MyDicomStoreFactory storeScp(index, storageDirectory); | |
112 | 113 |
113 { | 114 { |
114 // DICOM server | 115 // DICOM server |
115 DicomServer dicomServer; | 116 DicomServer dicomServer; |
116 dicomServer.SetCalledApplicationEntityTitleCheck(true); | 117 dicomServer.SetCalledApplicationEntityTitleCheck(true); |
126 httpServer.RegisterHandler(new EmbeddedResourceHttpHandler("/app", EmbeddedResources::PALANTIR_EXPLORER)); | 127 httpServer.RegisterHandler(new EmbeddedResourceHttpHandler("/app", EmbeddedResources::PALANTIR_EXPLORER)); |
127 #else | 128 #else |
128 httpServer.RegisterHandler(new FilesystemHttpHandler("/app", PALANTIR_PATH "/PalantirExplorer")); | 129 httpServer.RegisterHandler(new FilesystemHttpHandler("/app", PALANTIR_PATH "/PalantirExplorer")); |
129 #endif | 130 #endif |
130 | 131 |
131 httpServer.RegisterHandler(new PalantirRestApi(index, "server")); | 132 httpServer.RegisterHandler(new PalantirRestApi(index, storageDirectory)); |
132 | 133 |
133 // GO !!! | 134 // GO !!! |
134 httpServer.Start(); | 135 httpServer.Start(); |
135 dicomServer.Start(); | 136 dicomServer.Start(); |
136 | 137 |