Skip to content
Snippets Groups Projects
Select Git revision
  • main
  • SCAN-820
  • 4.0
  • v3.8.10
  • v3.8.9
  • v3.8.8
  • v3.8.7
  • v3.8.6
  • v3.8.5
  • v3.8.4
  • v3.8.3
  • v3.8.2
  • Salsa-3.8.1
  • Salsa-3.8.0
  • Salsa-3.7.0
  • Salsa-3.6.4
  • Salsa-3.6.3
  • Salsa-3.6.2
  • Salsa-3.6.1
  • Salsa-3.5.32
  • Salsa-3.5.30
  • Salsa-3.5.25
  • Salsa-3.5.24
23 results

pom.xml

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    main.cpp 2.11 KiB
    static const char *RcsId = "$Header: /users/chaize/newsvn/cvsroot/Instrumentation/AcquireWaveformLecroy/src/main.cpp,v 1.3 2004-10-07 09:21:19 xavela 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: xavela $
    //
    // $Revision: 1.3 $ $
    //
    // $Log: not supported by cvs2svn $
    // Revision 1.2  2004/10/05 13:11:11  xavela
    // Xavier : previous commit failed.
    //
    // Revision 1.1.1.1  2004/09/29 15:42:14  syldup
    // Initial import.
    //
    //
    // copyleft :     Synchrotron SOLEIL
    //                L'Orme des Merisiers
    //                Saint-Aubin - BP 48
    //
    //-=============================================================================
    //
    //  		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;
    	try
    	{
    		// Initialise the device server
    		//----------------------------------------
    		tg = Tango::Util::init(argc,argv);
    
    		tg->set_serial_model(Tango::BY_CLASS);
    
    		// 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;
    	}
    
    	//	clean ORB, threads.....
    	//--------------------------
    	tg->server_cleanup();
    	
    	return(0);
    }