Main Page   Modules   Namespace List   Class Hierarchy   Data Structures   File List   Namespace Members   Data Fields   Globals   Related Pages  

ArchivingService.cpp

Go to the documentation of this file.
00001 #include "Service.h"
00002 #include "Sct/IpcObjectException.h"
00003 
00004 using namespace SctArchivingService;
00005 
00006 int main(int argc, char** argv) {
00007     Sct::setExceptionHandlers(argv[0]);
00008 
00009     bool multiThreaded = false; //Choose single/multi-threaded 
00010     IPCCore::init(multiThreaded); 
00011     
00012     try {
00013     //Raw and Fitted objects
00014     ArchivingService arch;
00015     if (!arch.publish()) {
00016         throw Sct::IpcObjectException("Failed to publish ArchivingService", __FILE__, __LINE__);
00017     }
00018         
00019     arch.run();
00020     } catch (Sct::Throwable& e){
00021     e.sendToMrs(MRS_FATAL); 
00022     std::terminate(); 
00023     }
00024 }

Generated on Mon Dec 15 19:35:56 2003 for SCT DAQ/DCS Software by doxygen1.3-rc3