IFR_Server.cpp

Go to the documentation of this file.
00001 /* -*- C++ -*- */
00002 // $Id: IFR_Server.cpp 76589 2007-01-25 18:04:11Z elliott_c $
00003 
00004 #include "IFR_Service.h"
00005 #include "tao/Environment.h"
00006 
00007 ACE_RCSID (IFR_Service,
00008            IFR_Server,
00009            "$Id: IFR_Server.cpp 76589 2007-01-25 18:04:11Z elliott_c $")
00010 
00011 int
00012 main (int argc, char *argv[])
00013 {
00014   IFR_Service server;
00015 
00016   try
00017     {
00018       int status = server.init (argc, argv);
00019 
00020       if (status != 0)
00021         {
00022           return 1;
00023         }
00024       else
00025         {
00026           server.run ();
00027 
00028           status = server.fini ();
00029 
00030           if (status == -1)
00031             {
00032               return 1;
00033             }
00034         }
00035     }
00036   catch (const CORBA::SystemException& sysex)
00037     {
00038       sysex._tao_print_exception ("System Exception");
00039       return -1;
00040     }
00041   catch (const CORBA::Exception& ex)
00042     {
00043       ex._tao_print_exception ("Unknown Exception");
00044       return -1;
00045     }
00046   return 0;
00047 }

Generated on Sun Jan 27 16:31:52 2008 for TAO_IFR by doxygen 1.3.6