comparison PalantirServer/main.cpp @ 19:e85455ff6039

standalon
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 24 Jul 2012 10:17:12 +0200
parents c38716a8a146
children 62bd05fe4b7c
comparison
equal deleted inserted replaced
18:f3551378e8f3 19:e85455ff6039
105 } 105 }
106 106
107 107
108 try 108 try
109 { 109 {
110 std::string storageDirectory = GetGlobalStringParameter("StorageDirectory", "PalantirStorage"); 110 std::string storageDirectory = GetGlobalStringParameter("StorageDirectory", "PalantirStorage");
111 ServerIndex index(storageDirectory); 111 ServerIndex index(storageDirectory);
112 MyDicomStoreFactory storeScp(index, storageDirectory); 112 MyDicomStoreFactory storeScp(index, storageDirectory);
113 113
114 { 114 {
115 // DICOM server 115 // DICOM server
121 121
122 // HTTP server 122 // HTTP server
123 MongooseServer httpServer; 123 MongooseServer httpServer;
124 httpServer.SetPort(GetGlobalIntegerParameter("HttpPort", 8000)); 124 httpServer.SetPort(GetGlobalIntegerParameter("HttpPort", 8000));
125 125
126 #if PALANTIR_RELEASE == 1 126 #if PALANTIR_STANDALONE == 1
127 httpServer.RegisterHandler(new EmbeddedResourceHttpHandler("/app", EmbeddedResources::PALANTIR_EXPLORER)); 127 httpServer.RegisterHandler(new EmbeddedResourceHttpHandler("/app", EmbeddedResources::PALANTIR_EXPLORER));
128 #else 128 #else
129 httpServer.RegisterHandler(new FilesystemHttpHandler("/app", PALANTIR_PATH "/PalantirExplorer")); 129 httpServer.RegisterHandler(new FilesystemHttpHandler("/app", PALANTIR_PATH "/PalantirExplorer"));
130 #endif 130 #endif
131 131