Commit 692ac95a authored by Graziano Scalamera's avatar Graziano Scalamera
Browse files

Initial import

parent 9f6e014f
.nse_depinfo
bin
obj
# Eclipse
.cproject
.project
.settings
NAME_SRV = delta-srv
CXXFLAGS =
LDFLAGS =
include ../makefiles/Make-9.3.3.in
static const char *RcsId = "$Header: /home/cvsadm/cvsroot/fermi/servers/delta/src/ClassFactory.cpp,v 1.3 2009-08-06 12:39:00 graziano Exp $";
//+=============================================================================
//
// file : ClassFactory.cpp
//
// description : C++ source for the class_factory method of the DServer
// device class. This method is responsible to create
// all class singletin for a device server. It is called
// at device server startup
//
// project : TANGO Device Server
//
// $Author: graziano $
//
// $Revision: 1.3 $
//
// $Log: ClassFactory.cpp,v $
// Revision 1.3 2009-08-06 12:39:00 graziano
// first commit
//
// Revision 1.2 2008/09/18 10:02:24 sara
// DeltaPS renamed-New server for Delta power supply, needs Socket server for communication
//
// Revision 1.1 2008/05/05 13:10:46 graziano
// first commit
//
//
// copyleft : Sincrotrone Trieste S.C.p.A.
// Strada Statale 14 - km 163,5 in AREA Science Park
// 34012 Basovizza (TS)
// ITALY
//
//-=============================================================================
//
// This file is generated by POGO
// (Program Obviously used to Generate tango Object)
//
// (c) - Software Engineering Group - ESRF
//=============================================================================
#include <tango.h>
#include <DeltaClass.h>
/**
* Create DeltaClass singleton and store it in DServer object.
*/
void Tango::DServer::class_factory()
{
add_class(Delta_ns::DeltaClass::init("Delta"));
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
//=============================================================================
//
// file : DeltaClass.h
//
// description : Include for the DeltaClass root class.
// This class is represents the singleton class for
// the Delta device class.
// It contains all properties and methods which the
// Delta requires only once e.g. the commands.
//
// project : TANGO Device Server
//
// $Author: graziano $
//
// $Revision: 1.6 $
//
// $Log: DeltaClass.h,v $
// Revision 1.6 2013-07-08 15:57:31 graziano
// added command abort to stop ramp
//
// Revision 1.5 2013-07-05 13:56:56 graziano
// fixed
//
// Revision 1.4 2013-07-05 11:46:32 graziano
// implemented current ramp
//
// Revision 1.3 2009/08/06 12:39:00 graziano
// first commit
//
// Revision 1.2 2008/09/18 10:02:24 sara
// DeltaPS renamed-New server for Delta power supply, needs Socket server for communication
//
// Revision 1.1 2008/05/05 13:10:46 graziano
// first commit
//
//
// copyleft : Sincrotrone Trieste S.C.p.A.
// Strada Statale 14 - km 163,5 in AREA Science Park
// 34012 Basovizza (TS)
// ITALY
//
//=============================================================================
//
// This file is generated by POGO
// (Program Obviously used to Generate tango Object)
//
// (c) - Software Engineering Group - ESRF
//=============================================================================
#ifndef _DELTAPSCLASS_H
#define _DELTAPSCLASS_H
#include <tango.h>
#include <Delta.h>
namespace Delta_ns
{
//=====================================
// Define classes for attributes
//=====================================
class RampSlopeAttrib: public Tango::Attr
{
public:
RampSlopeAttrib():Attr("RampSlope", Tango::DEV_DOUBLE, Tango::READ_WRITE) {};
~RampSlopeAttrib() {};
virtual void read(Tango::DeviceImpl *dev,Tango::Attribute &att)
{(static_cast<Delta *>(dev))->read_RampSlope(att);}
virtual void write(Tango::DeviceImpl *dev,Tango::WAttribute &att)
{(static_cast<Delta *>(dev))->write_RampSlope(att);}
virtual bool is_allowed(Tango::DeviceImpl *dev,Tango::AttReqType ty)
{return (static_cast<Delta *>(dev))->is_RampSlope_allowed(ty);}
};
class VoltageSetPointAttrib: public Tango::Attr
{
public:
VoltageSetPointAttrib():Attr("VoltageSetPoint", Tango::DEV_DOUBLE, Tango::READ) {};
~VoltageSetPointAttrib() {};
virtual void read(Tango::DeviceImpl *dev,Tango::Attribute &att)
{(static_cast<Delta *>(dev))->read_VoltageSetPoint(att);}
virtual bool is_allowed(Tango::DeviceImpl *dev,Tango::AttReqType ty)
{return (static_cast<Delta *>(dev))->is_VoltageSetPoint_allowed(ty);}
};
class MaxVoltAttrib: public Tango::Attr
{
public:
MaxVoltAttrib():Attr("MaxVolt", Tango::DEV_DOUBLE, Tango::READ_WRITE) {};
~MaxVoltAttrib() {};
virtual void read(Tango::DeviceImpl *dev,Tango::Attribute &att)
{(static_cast<Delta *>(dev))->read_MaxVolt(att);}
virtual void write(Tango::DeviceImpl *dev,Tango::WAttribute &att)
{(static_cast<Delta *>(dev))->write_MaxVolt(att);}
virtual bool is_allowed(Tango::DeviceImpl *dev,Tango::AttReqType ty)
{return (static_cast<Delta *>(dev))->is_MaxVolt_allowed(ty);}
};
class MaxCurrAttrib: public Tango::Attr
{
public:
MaxCurrAttrib():Attr("MaxCurr", Tango::DEV_DOUBLE, Tango::READ_WRITE) {};
~MaxCurrAttrib() {};
virtual void read(Tango::DeviceImpl *dev,Tango::Attribute &att)
{(static_cast<Delta *>(dev))->read_MaxCurr(att);}
virtual void write(Tango::DeviceImpl *dev,Tango::WAttribute &att)
{(static_cast<Delta *>(dev))->write_MaxCurr(att);}
virtual bool is_allowed(Tango::DeviceImpl *dev,Tango::AttReqType ty)
{return (static_cast<Delta *>(dev))->is_MaxCurr_allowed(ty);}
};
class ShowStatAttrib: public Tango::SpectrumAttr
{
public:
ShowStatAttrib():SpectrumAttr("ShowStat", Tango::DEV_BOOLEAN, Tango::READ, 16) {};
~ShowStatAttrib() {};
virtual void read(Tango::DeviceImpl *dev,Tango::Attribute &att)
{(static_cast<Delta *>(dev))->read_ShowStat(att);}
virtual bool is_allowed(Tango::DeviceImpl *dev,Tango::AttReqType ty)
{return (static_cast<Delta *>(dev))->is_ShowStat_allowed(ty);}
};
class DeltaErrorAttrib: public Tango::Attr
{
public:
DeltaErrorAttrib():Attr("DeltaError", Tango::DEV_STRING, Tango::READ) {};
~DeltaErrorAttrib() {};
virtual void read(Tango::DeviceImpl *dev,Tango::Attribute &att)
{(static_cast<Delta *>(dev))->read_DeltaError(att);}
virtual bool is_allowed(Tango::DeviceImpl *dev,Tango::AttReqType ty)
{return (static_cast<Delta *>(dev))->is_DeltaError_allowed(ty);}
};
class CurrentSetPointAttrib: public Tango::Attr
{
public:
CurrentSetPointAttrib():Attr("CurrentSetPoint", Tango::DEV_DOUBLE, Tango::READ) {};
~CurrentSetPointAttrib() {};
virtual void read(Tango::DeviceImpl *dev,Tango::Attribute &att)
{(static_cast<Delta *>(dev))->read_CurrentSetPoint(att);}
virtual bool is_allowed(Tango::DeviceImpl *dev,Tango::AttReqType ty)
{return (static_cast<Delta *>(dev))->is_CurrentSetPoint_allowed(ty);}
};
class VoltageAttrib: public Tango::Attr
{
public:
VoltageAttrib():Attr("Voltage", Tango::DEV_DOUBLE, Tango::READ_WRITE) {};
~VoltageAttrib() {};
virtual void read(Tango::DeviceImpl *dev,Tango::Attribute &att)
{(static_cast<Delta *>(dev))->read_Voltage(att);}
virtual void write(Tango::DeviceImpl *dev,Tango::WAttribute &att)
{(static_cast<Delta *>(dev))->write_Voltage(att);}
virtual bool is_allowed(Tango::DeviceImpl *dev,Tango::AttReqType ty)
{return (static_cast<Delta *>(dev))->is_Voltage_allowed(ty);}
};
class CurrentAttrib: public Tango::Attr
{
public:
CurrentAttrib():Attr("Current", Tango::DEV_DOUBLE, Tango::READ_WRITE) {};
~CurrentAttrib() {};
virtual void read(Tango::DeviceImpl *dev,Tango::Attribute &att)
{(static_cast<Delta *>(dev))->read_Current(att);}
virtual void write(Tango::DeviceImpl *dev,Tango::WAttribute &att)
{(static_cast<Delta *>(dev))->write_Current(att);}
virtual bool is_allowed(Tango::DeviceImpl *dev,Tango::AttReqType ty)
{return (static_cast<Delta *>(dev))->is_Current_allowed(ty);}
};
//=========================================
// Define classes for commands
//=========================================
class OutputClass : public Tango::Command
{
public:
OutputClass(const char *name,
Tango::CmdArgType in,
Tango::CmdArgType out,
const char *in_desc,
const char *out_desc,
Tango::DispLevel level)
:Command(name,in,out,in_desc,out_desc, level) {};
OutputClass(const char *name,
Tango::CmdArgType in,
Tango::CmdArgType out)
:Command(name,in,out) {};
~OutputClass() {};
virtual CORBA::Any *execute (Tango::DeviceImpl *dev, const CORBA::Any &any);
virtual bool is_allowed (Tango::DeviceImpl *dev, const CORBA::Any &any)
{return (static_cast<Delta *>(dev))->is_Output_allowed(any);}
};
class ErrResetClass : public Tango::Command
{
public:
ErrResetClass(const char *name,
Tango::CmdArgType in,
Tango::CmdArgType out,
const char *in_desc,
const char *out_desc,
Tango::DispLevel level)
:Command(name,in,out,in_desc,out_desc, level) {};
ErrResetClass(const char *name,
Tango::CmdArgType in,
Tango::CmdArgType out)
:Command(name,in,out) {};
~ErrResetClass() {};
virtual CORBA::Any *execute (Tango::DeviceImpl *dev, const CORBA::Any &any);
virtual bool is_allowed (Tango::DeviceImpl *dev, const CORBA::Any &any)
{return (static_cast<Delta *>(dev))->is_ErrReset_allowed(any);}
};
class SetRemoteVoltClass : public Tango::Command
{
public:
SetRemoteVoltClass(const char *name,
Tango::CmdArgType in,
Tango::CmdArgType out,
const char *in_desc,
const char *out_desc,
Tango::DispLevel level)
:Command(name,in,out,in_desc,out_desc, level) {};
SetRemoteVoltClass(const char *name,
Tango::CmdArgType in,
Tango::CmdArgType out)
:Command(name,in,out) {};
~SetRemoteVoltClass() {};
virtual CORBA::Any *execute (Tango::DeviceImpl *dev, const CORBA::Any &any);
virtual bool is_allowed (Tango::DeviceImpl *dev, const CORBA::Any &any)
{return (static_cast<Delta *>(dev))->is_SetRemoteVolt_allowed(any);}
};
class SetRemoteCurrClass : public Tango::Command
{
public:
SetRemoteCurrClass(const char *name,
Tango::CmdArgType in,
Tango::CmdArgType out,
const char *in_desc,
const char *out_desc,
Tango::DispLevel level)
:Command(name,in,out,in_desc,out_desc, level) {};
SetRemoteCurrClass(const char *name,
Tango::CmdArgType in,
Tango::CmdArgType out)
:Command(name,in,out) {};
~SetRemoteCurrClass() {};
virtual CORBA::Any *execute (Tango::DeviceImpl *dev, const CORBA::Any &any);
virtual bool is_allowed (Tango::DeviceImpl *dev, const CORBA::Any &any)
{return (static_cast<Delta *>(dev))->is_SetRemoteCurr_allowed(any);}
};
class FrontPanelLockClass : public Tango::Command
{
public:
FrontPanelLockClass(const char *name,
Tango::CmdArgType in,
Tango::CmdArgType out,
const char *in_desc,
const char *out_desc,
Tango::DispLevel level)
:Command(name,in,out,in_desc,out_desc, level) {};
FrontPanelLockClass(const char *name,
Tango::CmdArgType in,
Tango::CmdArgType out)
:Command(name,in,out) {};
~FrontPanelLockClass() {};
virtual CORBA::Any *execute (Tango::DeviceImpl *dev, const CORBA::Any &any);
virtual bool is_allowed (Tango::DeviceImpl *dev, const CORBA::Any &any)
{return (static_cast<Delta *>(dev))->is_FrontPanelLock_allowed(any);}
};
class SAVClass : public Tango::Command
{
public:
SAVClass(const char *name,
Tango::CmdArgType in,
Tango::CmdArgType out,
const char *in_desc,
const char *out_desc,
Tango::DispLevel level)
:Command(name,in,out,in_desc,out_desc, level) {};
SAVClass(const char *name,
Tango::CmdArgType in,
Tango::CmdArgType out)
:Command(name,in,out) {};
~SAVClass() {};
virtual CORBA::Any *execute (Tango::DeviceImpl *dev, const CORBA::Any &any);
virtual bool is_allowed (Tango::DeviceImpl *dev, const CORBA::Any &any)
{return (static_cast<Delta *>(dev))->is_SAV_allowed(any);}
};
class RCLCmd : public Tango::Command
{
public:
RCLCmd(const char *name,
Tango::CmdArgType in,
Tango::CmdArgType out,
const char *in_desc,
const char *out_desc,
Tango::DispLevel level)
:Command(name,in,out,in_desc,out_desc, level) {};
RCLCmd(const char *name,
Tango::CmdArgType in,
Tango::CmdArgType out)
:Command(name,in,out) {};
~RCLCmd() {};
virtual CORBA::Any *execute (Tango::DeviceImpl *dev, const CORBA::Any &any);
virtual bool is_allowed (Tango::DeviceImpl *dev, const CORBA::Any &any)
{return (static_cast<Delta *>(dev))->is_RCL_allowed(any);}
};
class ResetCmd : public Tango::Command
{
public:
ResetCmd(const char *name,
Tango::CmdArgType in,
Tango::CmdArgType out,
const char *in_desc,
const char *out_desc,
Tango::DispLevel level)
:Command(name,in,out,in_desc,out_desc, level) {};
ResetCmd(const char *name,
Tango::CmdArgType in,
Tango::CmdArgType out)
:Command(name,in,out) {};
~ResetCmd() {};
virtual CORBA::Any *execute (Tango::DeviceImpl *dev, const CORBA::Any &any);
virtual bool is_allowed (Tango::DeviceImpl *dev, const CORBA::Any &any)
{return (static_cast<Delta *>(dev))->is_Reset_allowed(any);}
};
class GetIDNCmd : public Tango::Command
{
public:
GetIDNCmd(const char *name,
Tango::CmdArgType in,
Tango::CmdArgType out,
const char *in_desc,
const char *out_desc,
Tango::DispLevel level)
:Command(name,in,out,in_desc,out_desc, level) {};
GetIDNCmd(const char *name,
Tango::CmdArgType in,
Tango::CmdArgType out)
:Command(name,in,out) {};
~GetIDNCmd() {};
virtual CORBA::Any *execute (Tango::DeviceImpl *dev, const CORBA::Any &any);
virtual bool is_allowed (Tango::DeviceImpl *dev, const CORBA::Any &any)
{return (static_cast<Delta *>(dev))->is_GetIDN_allowed(any);}
};
class RSDClass : public Tango::Command
{
public:
RSDClass(const char *name,
Tango::CmdArgType in,
Tango::CmdArgType out,
const char *in_desc,
const char *out_desc,
Tango::DispLevel level)
:Command(name,in,out,in_desc,out_desc, level) {};
RSDClass(const char *name,
Tango::CmdArgType in,
Tango::CmdArgType out)
:Command(name,in,out) {};
~RSDClass() {};
virtual CORBA::Any *execute (Tango::DeviceImpl *dev, const CORBA::Any &any);
virtual bool is_allowed (Tango::DeviceImpl *dev, const CORBA::Any &any)
{return (static_cast<Delta *>(dev))->is_RSD_allowed(any);}
};
class SendCmdClass : public Tango::Command
{
public:
SendCmdClass(const char *name,
Tango::CmdArgType in,
Tango::CmdArgType out,
const char *in_desc,
const char *out_desc,
Tango::DispLevel level)
:Command(name,in,out,in_desc,out_desc, level) {};
SendCmdClass(const char *name,
Tango::CmdArgType in,
Tango::CmdArgType out)
:Command(name,in,out) {};
~SendCmdClass() {};
virtual CORBA::Any *execute (Tango::DeviceImpl *dev, const CORBA::Any &any);
virtual bool is_allowed (Tango::DeviceImpl *dev, const CORBA::Any &any)
{return (static_cast<Delta *>(dev))->is_SendCmd_allowed(any);}
};
class StartCyclingClass : public Tango::Command
{
public:
StartCyclingClass(const char *name,
Tango::CmdArgType in,
Tango::CmdArgType out,
const char *in_desc,
const char *out_desc,
Tango::DispLevel level)
:Command(name,in,out,in_desc,out_desc, level) {};
StartCyclingClass(const char *name,
Tango::CmdArgType in,
Tango::CmdArgType out)
:Command(name,in,out) {};
~StartCyclingClass() {};
virtual CORBA::Any *execute (Tango::DeviceImpl *dev, const CORBA::Any &any);
virtual bool is_allowed (Tango::DeviceImpl *dev, const CORBA::Any &any)
{return (static_cast<Delta *>(dev))->is_StartCycling_allowed(any);}
};
class StandbyClass : public Tango::Command
{
public:
StandbyClass(const char *name,
Tango::CmdArgType in,
Tango::CmdArgType out,
const char *in_desc,
const char *out_desc,
Tango::DispLevel level)
:Command(name,in,out,in_desc,out_desc, level) {};
StandbyClass(const char *name,
Tango::CmdArgType in,
Tango::CmdArgType out)
:Command(name,in,out) {};
~StandbyClass() {};
virtual CORBA::Any *execute (Tango::DeviceImpl *dev, const CORBA::Any &any);
virtual bool is_allowed (Tango::DeviceImpl *dev, const CORBA::Any &any)
{return (static_cast<Delta *>(dev))->is_Standby_allowed(any);}
};
class OffClass : public Tango::Command
{
public:
OffClass(const char *name,
Tango::CmdArgType in,
Tango::CmdArgType out,
const char *in_desc,
const char *out_desc,
Tango::DispLevel level)
:Command(name,in,out,in_desc,out_desc, level) {};
OffClass(const char *name,
Tango::CmdArgType in,
Tango::CmdArgType out)
:Command(name,in,out) {};
~OffClass() {};
virtual CORBA::Any *execute (Tango::DeviceImpl *dev, const CORBA::Any &any);
virtual bool is_allowed (Tango::DeviceImpl *dev, const CORBA::Any &any)
{return (static_cast<Delta *>(dev))->is_Off_allowed(any);}
};
class OnClass : public Tango::Command
{
public:
OnClass(const char *name,
Tango::CmdArgType in,
Tango::CmdArgType out,
const char *in_desc,
const char *out_desc,
Tango::DispLevel level)
:Command(name,in,out,in_desc,out_desc, level) {};
OnClass(const char *name,
Tango::CmdArgType in,
Tango::CmdArgType out)
:Command(name,in,out) {};
~OnClass() {};
virtual CORBA::Any *execute (Tango::DeviceImpl *dev, const CORBA::Any &any);
virtual bool is_allowed (Tango::DeviceImpl *dev, const CORBA::Any &any)
{return (static_cast<Delta *>(dev))->is_On_allowed(