Skip to content
Snippets Groups Projects
Commit bb6f6d05 authored by Lucio Zambon's avatar Lucio Zambon
Browse files

Add new file

parent 60509c6c
No related branches found
No related tags found
No related merge requests found
static const char *RcsId = "$Header: /home/cvsadm/cvsroot/fermi/servers/guntiming/src/main.cpp,v 1.1.1.1 2014-12-11 14:05:08 zambonl Exp $";
//+=============================================================================
//
// file : main.cpp
//
// description : C++ source for a TANGO device server main.
// The main rule is to initialise (and create) the Tango
// system and to create the DServerClass singleton.
// The main should be the same for every Tango device server.
//
// project : TANGO Device Server
//
// $Author: zambonl $
//
// $Revision: 1.1.1.1 $ $
//
// $Log: main.cpp,v $
// Revision 1.1.1.1 2014-12-11 14:05:08 zambonl
// Prima versione
//
// Revision 1.1.1.1 2014-11-11 10:00:36 zambonl
// Prima versione
//
// Revision 1.1.1.1 2013-08-06 08:24:53 zambonl
// Prima versione
//
//
// copyleft : European Synchrotron Radiation Facility
// BP 220, Grenoble 38043
// FRANCE
//
//-=============================================================================
//
// This file is generated by POGO
// (Program Obviously used to Generate tango Object)
//
// (c) - Software Engineering Group - ESRF
//=============================================================================
#include <tango.h>
int main(int argc,char *argv[])
{
Tango::Util *tg;
Tango::Util::_daemon = true;
Tango::Util::_sleep_between_connect = 10;
try
{
// Initialise the device server
//----------------------------------------
tg = Tango::Util::init(argc,argv);
// Create the device server singleton
// which will create everything
//----------------------------------------
tg->server_init(false);
// Run the endless loop
//----------------------------------------
cout << "Ready to accept request" << endl;
tg->server_run();
}
catch (bad_alloc)
{
cout << "Can't allocate memory to store device object !!!" << endl;
cout << "Exiting" << endl;
}
catch (CORBA::Exception &e)
{
Tango::Except::print_exception(e);
cout << "Received a CORBA_Exception" << endl;
cout << "Exiting" << endl;
}
tg->server_cleanup();
return(0);
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment