Commit fc802b1c authored by Alexander Steffens's avatar Alexander Steffens

[WIP] Current status of TANGO server copied from frmgit (devel)

parent 1843767d
/*----- PROTECTED REGION ID(MAROCDetector::ClassFactory.cpp) ENABLED START -----*/
static const char *RcsId = "$Id: $";
//=============================================================================
//
// 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 : MAROC project
//
// This file is part of Tango device class.
//
// Tango is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Tango is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Tango. If not, see <http://www.gnu.org/licenses/>.
//
// $Author: $
// *****************************************************************************
// MLZ library of Tango servers
// Copyright (c) 2015-2017 by the authors, see LICENSE
// This program is free software; you can redistribute it and/or modify it under
// the terms of the GNU General Public License as published by the Free Software
// Foundation; either version 2 of the License, or (at your option) any later
// version.
//
// This program is distributed in the hope that it will be useful, but WITHOUT
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
// details.
//
// You should have received a copy of the GNU General Public License along with
// this program; if not, write to the Free Software Foundation, Inc.,
// 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
// Module authors:
// Uwe Clemens <u.clemens@fz-juelich.de>
// Alexander Steffens <a.steffens@fz-juelich.de>
// *****************************************************************************
//
// $Revision: $
// $Date: $
//
// $HeadURL: $
//
//=============================================================================
// This file is generated by POGO
// (Program Obviously used to Generate tango Object)
//=============================================================================
#include <tango.h>
#include <MAROCDetectorClass.h>
// Add class header files if needed
/**
* Create MAROCDetector Class singleton and store it in DServer object.
*/
void Tango::DServer::class_factory()
{
// Add method class init if needed
add_class(MAROCDetector_ns::MAROCDetectorClass::init("MAROCDetector"));
}
/*----- PROTECTED REGION END -----*/ // MAROCDetector::ClassFactory.cpp
<?xml version="1.0" encoding="ASCII"?>
<pogoDsl:PogoSystem xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:pogoDsl="http://www.esrf.fr/tango/pogo/PogoDsl">
<multiClasses pogoRevision="9.2" name="MAROC" sourcePath="/home/jcns/tango/server/maroc-det/Real" description="" filestogenerate="XMI file,Code files,Makefile,Protected Regions">
<classes classname="MAROCDebug" sourcePath="./.">
<inheritances classname="Device_Impl" sourcePath=""/>
</classes>
<classes classname="MAROCDetector" sourcePath="./.">
<inheritances classname="Device_Impl" sourcePath=""/>
<inheritances classname="MLZDevice" sourcePath="./"/>
<inheritances classname="DetectorChannel" sourcePath="/home/jcns/tango/server/maroc-det/Real"/>
<inheritances classname="ImageChannel" sourcePath="/home/jcns/tango/server/maroc-det/Real"/>
<inheritances classname="TOFChannel" sourcePath="/home/jcns/tango/server/maroc-det/Real"/>
</classes>
<preferences makefileHome="/usr/local/share/pogo/preferences"/>
</multiClasses>
</pogoDsl:PogoSystem>
This diff is collapsed.
/*----- PROTECTED REGION ID(MAROCDebug.h) ENABLED START -----*/
//=============================================================================
//
// file : MAROCDebug.h
//
// description : Include file for the MAROCDebug class
//
// project :
//
// This file is part of Tango device class.
//
// Tango is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Tango is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Tango. If not, see <http://www.gnu.org/licenses/>.
//
// $Author: $
//
// $Revision: $
// $Date: $
//
// $HeadURL: $
//
//=============================================================================
// This file is generated by POGO
// (Program Obviously used to Generate tango Object)
//=============================================================================
#ifndef MAROCDebug_H
#define MAROCDebug_H
#include <tango.h>
#include "Worker.h"
/*----- PROTECTED REGION END -----*/ // MAROCDebug.h
/**
* MAROCDebug class description:
*
*/
namespace MAROCDebug_ns
{
/*----- PROTECTED REGION ID(MAROCDebug::Additional Class Declarations) ENABLED START -----*/
// Additional Class Declarations
/*----- PROTECTED REGION END -----*/ // MAROCDebug::Additional Class Declarations
class MAROCDebug : public TANGO_BASE_CLASS
{
/*----- PROTECTED REGION ID(MAROCDebug::Data Members) ENABLED START -----*/
// Add your own data members
/*----- PROTECTED REGION END -----*/ // MAROCDebug::Data Members
// Attribute data members
public:
Tango::DevDouble *attr_daqTime_read;
Tango::DevString *attr_dataPath_read;
Tango::DevString *attr_lastFilename_read;
Tango::DevBoolean *attr_readAllData_read;
Tango::DevDouble *attr_remainingTime_read;
// Constructors and destructors
public:
/**
* Constructs a newly device object.
*
* @param cl Class.
* @param s Device Name
*/
MAROCDebug(Tango::DeviceClass *cl,string &s);
/**
* Constructs a newly device object.
*
* @param cl Class.
* @param s Device Name
*/
MAROCDebug(Tango::DeviceClass *cl,const char *s);
/**
* Constructs a newly device object.
*
* @param cl Class.
* @param s Device name
* @param d Device description.
*/
MAROCDebug(Tango::DeviceClass *cl,const char *s,const char *d);
/**
* The device object destructor.
*/
~MAROCDebug() {delete_device();};
// Miscellaneous methods
public:
/*
* will be called at device destruction or at init command.
*/
void delete_device();
/*
* Initialize the device
*/
virtual void init_device();
/*
* Always executed method before execution command method.
*/
virtual void always_executed_hook();
// Attribute methods
public:
//--------------------------------------------------------
/*
* Method : MAROCDebug::read_attr_hardware()
* Description : Hardware acquisition for attributes.
*/
//--------------------------------------------------------
virtual void read_attr_hardware(vector<long> &attr_list);
//--------------------------------------------------------
/*
* Method : MAROCDebug::write_attr_hardware()
* Description : Hardware writing for attributes.
*/
//--------------------------------------------------------
virtual void write_attr_hardware(vector<long> &attr_list);
/**
* Attribute daqTime related methods
* Description: Preset DAQ time value.
*
* Data type: Tango::DevDouble
* Attr type: Scalar
*/
virtual void read_daqTime(Tango::Attribute &attr);
virtual void write_daqTime(Tango::WAttribute &attr);
virtual bool is_daqTime_allowed(Tango::AttReqType type);
/**
* Attribute dataPath related methods
* Description: Directory where DAQ data is stored.
*
* Data type: Tango::DevString
* Attr type: Scalar
*/
virtual void read_dataPath(Tango::Attribute &attr);
virtual void write_dataPath(Tango::WAttribute &attr);
virtual bool is_dataPath_allowed(Tango::AttReqType type);
/**
* Attribute lastFilename related methods
* Description: Name of last DAQ data file.
*
* Data type: Tango::DevString
* Attr type: Scalar
*/
virtual void read_lastFilename(Tango::Attribute &attr);
virtual bool is_lastFilename_allowed(Tango::AttReqType type);
/**
* Attribute readAllData related methods
* Description: Indicates whether all FIFO data is read immediately or blockwise.
*
* Data type: Tango::DevBoolean
* Attr type: Scalar
*/
virtual void read_readAllData(Tango::Attribute &attr);
virtual void write_readAllData(Tango::WAttribute &attr);
virtual bool is_readAllData_allowed(Tango::AttReqType type);
/**
* Attribute remainingTime related methods
* Description: Current remaining time value.
*
* Data type: Tango::DevDouble
* Attr type: Scalar
*/
virtual void read_remainingTime(Tango::Attribute &attr);
virtual bool is_remainingTime_allowed(Tango::AttReqType type);
//--------------------------------------------------------
/**
* Method : MAROCDebug::add_dynamic_attributes()
* Description : Add dynamic attributes if any.
*/
//--------------------------------------------------------
void add_dynamic_attributes();
// Command related methods
public:
/**
* Command State related method
* Description: This command gets the device state (stored in its device_state data member) and returns it to the caller.
*
* @returns Device state
*/
virtual Tango::DevState dev_state();
/**
* Command Status related method
* Description: This command gets the device status (stored in its device_status data member) and returns it to the caller.
*
* @returns Device status
*/
virtual Tango::ConstDevString dev_status();
/**
* Command WorkerTest related method
* Description:
*
* @returns
*/
virtual Tango::DevString worker_test();
virtual bool is_WorkerTest_allowed(const CORBA::Any &any);
//--------------------------------------------------------
/**
* Method : MAROCDebug::add_dynamic_commands()
* Description : Add dynamic commands if any.
*/
//--------------------------------------------------------
void add_dynamic_commands();
/*----- PROTECTED REGION ID(MAROCDebug::Additional Method prototypes) ENABLED START -----*/
// Additional Method prototypes
private:
vector<MAROC_ns::Worker *> workerList;
/*----- PROTECTED REGION END -----*/ // MAROCDebug::Additional Method prototypes
};
/*----- PROTECTED REGION ID(MAROCDebug::Additional Classes Definitions) ENABLED START -----*/
// Additional Classes Definitions
/*----- PROTECTED REGION END -----*/ // MAROCDebug::Additional Classes Definitions
} // End of namespace
#endif // MAROCDebug_H
<?xml version="1.0" encoding="ASCII"?>
<pogoDsl:PogoSystem xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:pogoDsl="http://www.esrf.fr/tango/pogo/PogoDsl">
<classes name="MAROCDebug" pogoRevision="9.2">
<description description="" title="" sourcePath="/home/jcns/tango/server/maroc-det/Real" language="Cpp" filestogenerate="XMI file,Code files,Protected Regions" license="GPL" copyright="" hasMandatoryProperty="false" hasConcreteProperty="false" hasAbstractCommand="false" hasAbstractAttribute="false">
<inheritances classname="Device_Impl" sourcePath=""/>
<identification contact="at fz-juelich.de - a.steffens" author="a.steffens" emailDomain="fz-juelich.de" classFamily="Acquisition" siteSpecific="" platform="Unix Like" bus="PCI" manufacturer="ZEA-2" reference=""/>
</description>
<commands name="State" description="This command gets the device state (stored in its device_state data member) and returns it to the caller." execMethod="dev_state" displayLevel="OPERATOR" polledPeriod="0" isDynamic="false">
<argin description="none">
<type xsi:type="pogoDsl:VoidType"/>
</argin>
<argout description="Device state">
<type xsi:type="pogoDsl:StateType"/>
</argout>
<status abstract="true" inherited="true" concrete="true" concreteHere="true"/>
</commands>
<commands name="Status" description="This command gets the device status (stored in its device_status data member) and returns it to the caller." execMethod="dev_status" displayLevel="OPERATOR" polledPeriod="0" isDynamic="false">
<argin description="none">
<type xsi:type="pogoDsl:VoidType"/>
</argin>
<argout description="Device status">
<type xsi:type="pogoDsl:ConstStringType"/>
</argout>
<status abstract="true" inherited="true" concrete="true" concreteHere="true"/>
</commands>
<commands name="WorkerTest" description="" execMethod="worker_test" displayLevel="OPERATOR" polledPeriod="0" isDynamic="false">
<argin description="">
<type xsi:type="pogoDsl:VoidType"/>
</argin>
<argout description="">
<type xsi:type="pogoDsl:StringType"/>
</argout>
<status abstract="false" inherited="false" concrete="true" concreteHere="true"/>
</commands>
<attributes name="daqTime" attType="Scalar" rwType="READ_WRITE" displayLevel="OPERATOR" polledPeriod="0" maxX="" maxY="" memorized="true" memorizedAtInit="true" allocReadMember="true" isDynamic="false">
<dataType xsi:type="pogoDsl:DoubleType"/>
<changeEvent fire="false" libCheckCriteria="false"/>
<archiveEvent fire="false" libCheckCriteria="false"/>
<dataReadyEvent fire="false" libCheckCriteria="true"/>
<status abstract="false" inherited="false" concrete="true" concreteHere="true"/>
<properties description="Preset DAQ time value." label="" unit="" standardUnit="" displayUnit="" format="" maxValue="" minValue="" maxAlarm="" minAlarm="" maxWarning="" minWarning="" deltaTime="" deltaValue=""/>
</attributes>
<attributes name="dataPath" attType="Scalar" rwType="READ_WRITE" displayLevel="OPERATOR" polledPeriod="0" maxX="" maxY="" memorized="true" memorizedAtInit="true" allocReadMember="true" isDynamic="false">
<dataType xsi:type="pogoDsl:StringType"/>
<changeEvent fire="false" libCheckCriteria="false"/>
<archiveEvent fire="false" libCheckCriteria="false"/>
<dataReadyEvent fire="false" libCheckCriteria="true"/>
<status abstract="false" inherited="false" concrete="true" concreteHere="true"/>
<properties description="Directory where DAQ data is stored." label="" unit="" standardUnit="" displayUnit="" format="" maxValue="" minValue="" maxAlarm="" minAlarm="" maxWarning="" minWarning="" deltaTime="" deltaValue=""/>
</attributes>
<attributes name="lastFilename" attType="Scalar" rwType="READ" displayLevel="OPERATOR" polledPeriod="0" maxX="" maxY="" allocReadMember="true" isDynamic="false">
<dataType xsi:type="pogoDsl:StringType"/>
<changeEvent fire="false" libCheckCriteria="false"/>
<archiveEvent fire="false" libCheckCriteria="false"/>
<dataReadyEvent fire="false" libCheckCriteria="true"/>
<status abstract="false" inherited="false" concrete="true" concreteHere="true"/>
<properties description="Name of last DAQ data file." label="" unit="" standardUnit="" displayUnit="" format="" maxValue="" minValue="" maxAlarm="" minAlarm="" maxWarning="" minWarning="" deltaTime="" deltaValue=""/>
</attributes>
<attributes name="readAllData" attType="Scalar" rwType="READ_WRITE" displayLevel="OPERATOR" polledPeriod="0" maxX="" maxY="" memorized="true" memorizedAtInit="true" allocReadMember="true" isDynamic="false">
<dataType xsi:type="pogoDsl:BooleanType"/>
<changeEvent fire="false" libCheckCriteria="false"/>
<archiveEvent fire="false" libCheckCriteria="false"/>
<dataReadyEvent fire="false" libCheckCriteria="true"/>
<status abstract="false" inherited="false" concrete="true" concreteHere="true"/>
<properties description="Indicates whether all FIFO data is read immediately or blockwise." label="" unit="" standardUnit="" displayUnit="" format="" maxValue="" minValue="" maxAlarm="" minAlarm="" maxWarning="" minWarning="" deltaTime="" deltaValue=""/>
</attributes>
<attributes name="remainingTime" attType="Scalar" rwType="READ" displayLevel="OPERATOR" polledPeriod="0" maxX="" maxY="" allocReadMember="true" isDynamic="false">
<dataType xsi:type="pogoDsl:DoubleType"/>
<changeEvent fire="false" libCheckCriteria="false"/>
<archiveEvent fire="false" libCheckCriteria="false"/>
<dataReadyEvent fire="false" libCheckCriteria="true"/>
<status abstract="false" inherited="false" concrete="true" concreteHere="true"/>
<properties description="Current remaining time value." label="" unit="" standardUnit="" displayUnit="" format="" maxValue="" minValue="" maxAlarm="" minAlarm="" maxWarning="" minWarning="" deltaTime="" deltaValue=""/>
</attributes>
<preferences docHome="./doc_html" makefileHome="/usr/local/share/pogo/preferences"/>
</classes>
</pogoDsl:PogoSystem>
This diff is collapsed.
/*----- PROTECTED REGION ID(MAROCDebugClass.h) ENABLED START -----*/
//=============================================================================
//
// file : MAROCDebugClass.h
//
// description : Include for the MAROCDebug root class.
// This class is the singleton class for
// the MAROCDebug device class.
// It contains all properties and methods which the
// MAROCDebug requires only once e.g. the commands.
//
// project :
//
// This file is part of Tango device class.
//
// Tango is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Tango is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Tango. If not, see <http://www.gnu.org/licenses/>.
//
// $Author: $
//
// $Revision: $
// $Date: $
//
// $HeadURL: $
//
//=============================================================================
// This file is generated by POGO
// (Program Obviously used to Generate tango Object)
//=============================================================================
#ifndef MAROCDebugClass_H
#define MAROCDebugClass_H
#include <tango.h>
#include <MAROCDebug.h>
/*----- PROTECTED REGION END -----*/ // MAROCDebugClass.h
namespace MAROCDebug_ns
{
/*----- PROTECTED REGION ID(MAROCDebugClass::classes for dynamic creation) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // MAROCDebugClass::classes for dynamic creation
//=========================================
// Define classes for attributes
//=========================================
// Attribute daqTime class definition
class daqTimeAttrib: public Tango::Attr
{
public:
daqTimeAttrib():Attr("daqTime",
Tango::DEV_DOUBLE, Tango::READ_WRITE) {};
~daqTimeAttrib() {};
virtual void read(Tango::DeviceImpl *dev,Tango::Attribute &att)
{(static_cast<MAROCDebug *>(dev))->read_daqTime(att);}
virtual void write(Tango::DeviceImpl *dev,Tango::WAttribute &att)
{(static_cast<MAROCDebug *>(dev))->write_daqTime(att);}
virtual bool is_allowed(Tango::DeviceImpl *dev,Tango::AttReqType ty)
{return (static_cast<MAROCDebug *>(dev))->is_daqTime_allowed(ty);}
};
// Attribute dataPath class definition
class dataPathAttrib: public Tango::Attr
{
public:
dataPathAttrib():Attr("dataPath",
Tango::DEV_STRING, Tango::READ_WRITE) {};
~dataPathAttrib() {};
virtual void read(Tango::DeviceImpl *dev,Tango::Attribute &att)
{(static_cast<MAROCDebug *>(dev))->read_dataPath(att);}
virtual void write(Tango::DeviceImpl *dev,Tango::WAttribute &att)
{(static_cast<MAROCDebug *>(dev))->write_dataPath(att);}
virtual bool is_allowed(Tango::DeviceImpl *dev,Tango::AttReqType ty)
{return (static_cast<MAROCDebug *>(dev))->is_dataPath_allowed(ty);}
};
// Attribute lastFilename class definition
class lastFilenameAttrib: public Tango::Attr
{
public:
lastFilenameAttrib():Attr("lastFilename",
Tango::DEV_STRING, Tango::READ) {};
~lastFilenameAttrib() {};
virtual void read(Tango::DeviceImpl *dev,Tango::Attribute &att)
{(static_cast<MAROCDebug *>(dev))->read_lastFilename(att);}
virtual bool is_allowed(Tango::DeviceImpl *dev,Tango::AttReqType ty)
{return (static_cast<MAROCDebug *>(dev))->is_lastFilename_allowed(ty);}
};
// Attribute readAllData class definition
class readAllDataAttrib: public Tango::Attr
{
public:
readAllDataAttrib():Attr("readAllData",
Tango::DEV_BOOLEAN, Tango::READ_WRITE) {};
~readAllDataAttrib() {};
virtual void read(Tango::DeviceImpl *dev,Tango::Attribute &att)
{(static_cast<MAROCDebug *>(dev))->read_readAllData(att);}
virtual void write(Tango::DeviceImpl *dev,Tango::WAttribute &att)
{(static_cast<MAROCDebug *>(dev))->write_readAllData(att);}
virtual bool is_allowed(Tango::DeviceImpl *dev,Tango::AttReqType ty)
{return (static_cast<MAROCDebug *>(dev))->is_readAllData_allowed(ty);}
};
// Attribute remainingTime class definition
class remainingTimeAttrib: public Tango::Attr
{
public:
remainingTimeAttrib():Attr("remainingTime",
Tango::DEV_DOUBLE, Tango::READ) {};
~remainingTimeAttrib() {};
virtual void read(Tango::DeviceImpl *dev,Tango::Attribute &att)
{(static_cast<MAROCDebug *>(dev))->read_remainingTime(att);}
virtual bool is_allowed(Tango::DeviceImpl *dev,Tango::AttReqType ty)
{return (static_cast<MAROCDebug *>(dev))->is_remainingTime_allowed(ty);}
};
//=========================================
// Define classes for commands
//=========================================
// Command WorkerTest class definition
class WorkerTestClass : public Tango::Command
{
public:
WorkerTestClass(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) {};
WorkerTestClass(const char *name,
Tango::CmdArgType in,
Tango::CmdArgType out)
:Command(name,in,out) {};
~WorkerTestClass() {};
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<MAROCDebug *>(dev))->is_WorkerTest_allowed(any);}
};
/**
* The MAROCDebugClass singleton definition
*/
#ifdef _TG_WINDOWS_
class __declspec(dllexport) MAROCDebugClass : public Tango::DeviceClass
#else
class MAROCDebugClass : public Tango::DeviceClass
#endif
{
/*----- PROTECTED REGION ID(MAROCDebugClass::Additionnal DServer data members) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // MAROCDebugClass::Additionnal DServer data members
public:
// write class properties data members
Tango::DbData cl_prop;
Tango::DbData cl_def_prop;
Tango::DbData dev_def_prop;
// Method prototypes
static MAROCDebugClass *init(const char *);
static MAROCDebugClass *instance();
~MAROCDebugClass();
Tango::DbDatum get_class_property(string &);
Tango::DbDatum get_default_device_property(string &);
Tango::DbDatum get_default_class_property(string &);
protected:
MAROCDebugClass(string &);
static MAROCDebugClass *_instance;
void command_factory();
void attribute_factory(vector<Tango::Attr *> &);
void pipe_factory();
void write_class_property();
void set_default_property();
void get_class_property();
string get_cvstag();
string get_cvsroot();
private:
void device_factory(const Tango::DevVarStringArray *);
void create_static_attribute_list(vector<Tango::Attr *> &);
void erase_dynamic_attributes(const Tango::DevVarStringArray *,vector<Tango::Attr *> &);
vector<string> defaultAttList;
Tango::Attr *get_attr_object_by_name(vector<Tango::Attr *> &att_list, string attname);
};
} // End of namespace
#endif // MAROCDebug_H
/*----- PROTECTED REGION ID(MAROCDebugStateMachine.cpp) ENABLED START -----*/
static const char *RcsId = "$Id: $";
//=============================================================================
//
// file : MAROCDebugStateMachine.cpp
//
// description : State machine file for the MAROCDebug class
//
// project :
//
// This file is part of Tango device class.
//
// Tango is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Tango is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Tango. If not, see <http://www.gnu.org/licenses/>.
//
// $Author: $
//
// $Revision: $
// $Date: $
//
// $HeadURL: $
//
//=============================================================================
// This file is generated by POGO
// (Program Obviously used to Generate tango Object)
//=============================================================================
#include <MAROCDebug.h>
/*----- PROTECTED REGION END -----*/ // MAROCDebug::MAROCDebugStateMachine.cpp
//================================================================
// States | Description
//================================================================
namespace MAROCDebug_ns
{
//=================================================
// Attributes Allowed Methods
//=================================================
//--------------------------------------------------------
/**
* Method : MAROCDebug::is_daqTime_allowed()
* Description : Execution allowed for daqTime attribute
*/
//--------------------------------------------------------
bool MAROCDebug::is_daqTime_allowed(TANGO_UNUSED(Tango::AttReqType type))
{
// Not any excluded states for daqTime attribute in Write access.
/*----- PROTECTED REGION ID(MAROCDebug::daqTimeStateAllowed_WRITE) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // MAROCDebug::daqTimeStateAllowed_WRITE
// Not any excluded states for daqTime attribute in read access.
/*----- PROTECTED REGION ID(MAROCDebug::daqTimeStateAllowed_READ) ENABLED START -----*/
/*----- PROTECTED REGION END -----*/ // MAROCDebug::daqTimeStateAllowed_READ
return true;
}
//--------------------------------------------------------
/**
* Method : MAROCDebug::is_dataPath_allowed()
* Description : Execution allowed for dataPath attribute