Commit 3e9be282 authored by Giulio Gaio's avatar Giulio Gaio
Browse files

First import

parent 35b73ddd
NAME_SRV = vx1751-srv
CXXFLAGS = -DVX1751_RNM -DLINUX
LDFLAGS = -lrnm -lbufferrt -lrnmshare -lCAENVME -lc -lm
include ../makefiles/Make-9.3.3.in
/*----- PROTECTED REGION ID(VX1751::ClassFactory.cpp) ENABLED START -----*/
static const char *RcsId = "$Id: ClassFactory.cpp,v 1.2 2015-06-16 13:02:01 giulio Exp $";
//=============================================================================
//
// file : ClassFactory.cpp
//
// description : C++ source for the class_factory method of the DServer
// device class. This method is responsible for the creation of
// all class singleton for a device server. It is called
// at device server startup.
//
// project : CAEN VX1751 Digitizer.
//
// $Author: giulio $
//
// $Revision: 1.2 $
// $Date: 2015-06-16 13:02:01 $
//
// SVN only:
// $HeadURL: $
//
// CVS only:
// $Source: /home/cvsadm/cvsroot/fermi/servers/vx1751/src/ClassFactory.cpp,v $
// $Log: ClassFactory.cpp,v $
// Revision 1.2 2015-06-16 13:02:01 giulio
// Moved to Tango 8, compute areas
//
// Revision 1.1.1.1 2013-02-18 08:38:34 giulio
// First release
//
//
//=============================================================================
// This file is generated by POGO
// (Program Obviously used to Generate tango Object)
//=============================================================================
#include <tango.h>
#include <VX1751Class.h>
// Add class header files if needed
/**
* Create VX1751 Class singleton and store it in DServer object.
*/
void Tango::DServer::class_factory()
{
// Add method class init if needed
add_class(VX1751_ns::VX1751Class::init("VX1751"));
}
/*----- PROTECTED REGION END -----*/ // VX1751::ClassFactory.cpp
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
/*PROTECTED REGION ID(VX1751::main.cpp) ENABLED START*/
static const char *RcsId = "$Id: main.cpp,v 1.2 2015-06-16 13:02:01 giulio Exp $";
//=============================================================================
//
// file : VX1751.cpp
//
// description : C++ source for the VX1751 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 : CAEN VX1751 Digitizer.
//
// $Author: giulio $
//
// $Revision: 1.2 $
// $Date: 2015-06-16 13:02:01 $
//
// SVN only:
// $HeadURL: $
//
// CVS only:
// $Source: /home/cvsadm/cvsroot/fermi/servers/vx1751/src/main.cpp,v $
// $Log: main.cpp,v $
// Revision 1.2 2015-06-16 13:02:01 giulio
// Moved to Tango 8, compute areas
//
// Revision 1.1.1.1 2013-02-18 08:38:34 giulio
// First release
//
//
//=============================================================================
// This file is generated by POGO
// (Program Obviously used to Generate tango Object)
//=============================================================================
#include <tango.h>
int main(int argc,char *argv[])
{
Tango::Util *tg = NULL;
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;
}
if (tg!=NULL)
tg->server_cleanup();
return(0);
}
/*PROTECTED REGION END*/ // VX1751::main.cpp
This diff is collapsed.
This diff is collapsed.
Markdown is supported
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