ESRF Logo

Elettra Logo

Soleil Logo

Alba Logo

Desy Logo

MAX-lab Logo

FRM2 Logo


SYNCHROTRON ALBA --- SYNCHROTRON ELETTRA

EUROPEAN SYNCHROTRON RADIATION FACILITY --- SYNCHROTRON PETRA III

SYNCHROTRON SOLEIL --- SYNCHROTRON MAX 4

NEUTRON SOURCE FRM 2

Tango::DeviceImpl Class Reference

Base class for all TANGO device. More...

#include <device.h>

Inheritance diagram for Tango::DeviceImpl:

Tango::Device_2Impl Tango::Device_3Impl Tango::Device_4Impl

List of all members.

Public Member Functions

Constructors
Miscellaneous constructors

 DeviceImpl (DeviceClass *device_class, string &dev_name)
 Constructs a newly allocated DeviceImpl object from its name.
 DeviceImpl (DeviceClass *device_class, string &dev_name, string &desc)
 Constructs a newly allocated DeviceImpl object from its name and its description.
 DeviceImpl (DeviceClass *device_class, string &dev_name, string &desc, Tango::DevState dev_state, string &dev_status)
 Constructs a newly allocated DeviceImpl object from all its creation parameters.
 DeviceImpl (DeviceClass *device_class, const char *dev_name, const char *desc="A TANGO device", Tango::DevState dev_state=Tango::UNKNOWN, const char *dev_status=StatusNotSet)
 Constructs a newly allocated DeviceImpl object from all its creation parameters with some default values.
Destructor
Only one desctructor is defined for this class

virtual ~DeviceImpl ()
 The device desctructor.
Get/Set object members.
These methods allows the external world to get/set DeviceImpl instance data members

string & get_status ()
 Get device status.
void set_status (const string &new_status)
 Set device status.
void append_status (const string &stat, bool new_line=false)
 Appends a string to the device status.
Tango::DevState & get_state ()
 Get device state.
Tango::DevState & get_prev_state ()
 Get device's previous state.
void set_state (const Tango::DevState &new_state)
 Set device state.
string & get_name ()
 Get device name.
DeviceClassget_device_class ()
 Get device class singleton.
MultiAttributeget_device_attr ()
 Get device multi attribute object.
void set_device_attr (MultiAttribute *ptr)
 Set device multi attribute object.
DbDevice * get_db_device ()
 Get a pointer to the associated DbDevice object.
void set_d_var (Tango::Device_ptr d)
 Set the associated CORBA object reference.
Tango::Device_var get_d_var ()
 Get the associated CORBA object reference.
void set_obj_id (PortableServer::ObjectId_var o)
 Set the associated CORBA object identifier.
PortableServer::ObjectId_var & get_obj_id ()
 Get the associated CORBA object identifier.
virtual PortableServer::POA_ptr _default_POA ()
 Return device POA.
CORBA attribute methods
Method defined to implement TANGO device CORBA attribute

virtual char * name () throw (CORBA::SystemException)
 Get device name.
virtual char * adm_name () throw (CORBA::SystemException)
 Get administrator device name.
virtual char * description () throw (CORBA::SystemException)
 Get device description.
virtual char * status () throw (CORBA::SystemException)
 Get device status.
virtual Tango::DevState state () throw (CORBA::SystemException)
 Get device state.
CORBA operation methods
Method defined to implement TANGO device CORBA operation

virtual CORBA::Any * command_inout (const char *in_cmd, const CORBA::Any &in_data) throw (Tango::DevFailed, CORBA::SystemException)
 Execute a command.
virtual Tango::DevVarStringArray * black_box (CORBA::Long n) throw (Tango::DevFailed, CORBA::SystemException)
 Get device black box.
virtual Tango::DevCmdInfoList * command_list_query () throw (Tango::DevFailed, CORBA::SystemException)
 Get device command list.
virtual Tango::DevCmdInfo * command_query (const char *command) throw (Tango::DevFailed, CORBA::SystemException)
 Get command info.
virtual Tango::DevInfo * info () throw (Tango::DevFailed, CORBA::SystemException)
 Get device info.
virtual void ping () throw (Tango::DevFailed, CORBA::SystemException)
 Ping the device to check if it is still alive.
virtual
Tango::AttributeConfigList * 
get_attribute_config (const Tango::DevVarStringArray &names) throw (Tango::DevFailed, CORBA::SystemException)
 Get attribute(s) configuration.
virtual void set_attribute_config (const Tango::AttributeConfigList &new_conf) throw (Tango::DevFailed, CORBA::SystemException)
 Set attribute(s) configuration.
virtual Tango::AttributeValueList * read_attributes (const Tango::DevVarStringArray &names) throw (Tango::DevFailed, CORBA::SystemException)
 Read attribute(s) value.
virtual void write_attributes (const Tango::AttributeValueList &values) throw (Tango::DevFailed, CORBA::SystemException)
 Write attribute(s) value.
Methods to build Tango array types.
These methods are helper methods to build Tango array types from an already existing buffer (Tango array types are CORBA sequences)

Tango::DevVarCharArray * create_DevVarCharArray (unsigned char *ptr, long length)
 Create a DevVarCharArray type.
Tango::DevVarShortArray * create_DevVarShortArray (short *ptr, long length)
 Create a DevVarShortArray type.
Tango::DevVarLongArray * create_DevVarLongArray (DevLong *ptr, long length)
 Create a DevVarLongArray type.
Tango::DevVarLong64Array * create_DevVarLong64Array (DevLong64 *ptr, long length)
 Create a DevVarLong64Array type.
Tango::DevVarFloatArray * create_DevVarFloatArray (float *ptr, long length)
 Create a DevVarFloatArray type.
Tango::DevVarDoubleArray * create_DevVarDoubleArray (double *ptr, long length)
 Create a DevVarDoubleArray type.
Tango::DevVarUShortArray * create_DevVarUShortArray (unsigned short *ptr, long length)
 Create a DevVarUShortArray type.
Tango::DevVarULongArray * create_DevVarULongArray (DevULong *ptr, long length)
 Create a DevVarULongArray type.
Tango::DevVarULong64Array * create_DevVarULong64Array (DevULong64 *ptr, long length)
 Create a DevVarULong64Array type.
Tango::DevVarStringArray * create_DevVarStringArray (char **ptr, long length)
 Create a DevVarStringArray type.
Miscellaneous methods
virtual void init_device ()=0
 Intialise a device.
virtual void delete_device ()
 Delete a device.
virtual void always_executed_hook (void)
 Hook method.
virtual void read_attr_hardware (vector< long > &)
 Read the hardware to return attribute value(s).
virtual void read_attr (Attribute &)
 Set the attribute read value.
virtual void write_attr_hardware (vector< long > &)
 Write the hardware for attributes.
virtual Tango::DevState dev_state ()
 Get device state.
virtual Tango::ConstDevString dev_status ()
 Get device status.
void add_attribute (Attr *new_attr)
 Add a new attribute to the device attribute list.
void remove_attribute (Attr *rem_attr, bool free_it=false)
 Remove one attribute from the device attribute list.
void remove_attribute (string &rem_attr_name, bool free_it=false)
 Remove one attribute from the device attribute list.
vector< PollObj * >::iterator get_polled_obj_by_type_name (Tango::PollObjType obj_type, const string &obj_name)
 Retrieve a polled object from the polled object list.
void init_cmd_poll_ext_trig (string cmd_name)
 Write the command name to the list of polled commands in the database.
void init_cmd_poll_period ()
 Checks the specified polling period for all commands of the device.
void init_attr_poll_ext_trig (string cmd_name)
 Write the attribute name to the list of polled attributes in the database.
void init_attr_poll_period ()
 Checks the specified polling period for all attributes of the device.
Push change event methods.
These methods allow to fire change events for attributes manually, without the polling to be started.

void set_change_event (string attr_name, bool implemented, bool detect=true)
 Set an implemented flag for the attribute to indicate that the server fires change events manually, without the polling to be started.
void push_change_event (string attr_name, DevFailed *except=NULL)
 Push a change event for a state or status attribute or return an exception as change event for any attribute.
void push_change_event (string attr_name, Tango::DevShort *p_data, long x=1, long y=0, bool release=false)
 Push a change event for an attribute with Tango::DevShort attribute data type.
void push_change_event (string attr_name, Tango::DevLong *p_data, long x=1, long y=0, bool release=false)
 Push a change event for an attribute with Tango::DevLong attribute data type.
void push_change_event (string attr_name, Tango::DevLong64 *p_data, long x=1, long y=0, bool release=false)
 Push a change event for an attribute with Tango::DevLong64 attribute data type.
void push_change_event (string attr_name, Tango::DevFloat *p_data, long x=1, long y=0, bool release=false)
 Push a change event for an attribute with Tango::DevFloat attribute data type.
void push_change_event (string attr_name, Tango::DevDouble *p_data, long x=1, long y=0, bool release=false)
 Push a change event for an attribute with Tango::DevDouble attribute data type.
void push_change_event (string attr_name, Tango::DevString *p_data, long x=1, long y=0, bool release=false)
 Push a change event for an attribute with Tango::DevString attribute data type.
void push_change_event (string attr_name, Tango::DevBoolean *p_data, long x=1, long y=0, bool release=false)
 Push a change event for an attribute with Tango::DevBoolean attribute data type.
void push_change_event (string attr_name, Tango::DevUShort *p_data, long x=1, long y=0, bool release=false)
 void push_change_event (string attr_name, Tango::DevBoolea Push a change event for an attribute with Tango::DevUShort attribute data type.
void push_change_event (string attr_name, Tango::DevUChar *p_data, long x=1, long y=0, bool release=false)
 Push a change event for an attribute with Tango::DevUChar attribute data type.
void push_change_event (string attr_name, Tango::DevULong *p_data, long x=1, long y=0, bool release=false)
 Push a change event for an attribute with Tango::DevULong attribute data type.
void push_change_event (string attr_name, Tango::DevULong64 *p_data, long x=1, long y=0, bool release=false)
 Push a change event for an attribute with Tango::DevULong64 attribute data type.
void push_change_event (string attr_name, Tango::DevState *p_data, long x=1, long y=0, bool release=false)
 Push a change event for an attribute with Tango::DevState attribute data type.
void push_change_event (string attr_name, Tango::DevEncoded *p_data, long x=1, long y=0, bool release=false)
 Push a change event for an attribute with Tango::DevEncoded attribute data type.
void push_change_event (string attr_name, Tango::DevString *p_str_data, Tango::DevUChar *p_data, long size, bool release=false)
 Push a change event for an attribute with Tango::DevEncoded attribute data type when the DevEncoded data are specified by two pointers.
void push_change_event (string attr_name, Tango::DevShort *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
 Push a change event for an attribute with Tango::DevShort attribute data type.
void push_change_event (string attr_name, Tango::DevLong *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
 Push a change event for an attribute with Tango::DevLong attribute data type.
void push_change_event (string attr_name, Tango::DevLong64 *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
 Push a change event for an attribute with Tango::DevLong64 attribute data type.
void push_change_event (string attr_name, Tango::DevFloat *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
 Push a change event for an attribute with Tango::DevFloat attribute data type.
void push_change_event (string attr_name, Tango::DevDouble *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
 Push a change event for an attribute with Tango::DevDouble attribute data type.
void push_change_event (string attr_name, Tango::DevString *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
 Push a change event for an attribute with Tango::DevString attribute data type.
void push_change_event (string attr_name, Tango::DevBoolean *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
 Push a change event for an attribute with Tango::DevBoolean attribute data type.
void push_change_event (string attr_name, Tango::DevUShort *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
 Push a change event for an attribute with Tango::DevUShort attribute data type.
void push_change_event (string attr_name, Tango::DevUChar *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
 Push a change event for an attribute with Tango::DevUChar attribute data type.
void push_change_event (string attr_name, Tango::DevULong *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
 Push a change event for an attribute with Tango::DevULong attribute data type.
void push_change_event (string attr_name, Tango::DevULong64 *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
 Push a change event for an attribute with Tango::DevULong64 attribute data type.
void push_change_event (string attr_name, Tango::DevState *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
 Push a change event for an attribute with Tango::DevState attribute data type.
void push_change_event (string attr_name, Tango::DevEncoded *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
 Push a change event for an attribute with Tango::DevEncoded attribute data type.
void push_change_event (string attr_name, Tango::DevString *p_str_data, Tango::DevUChar *p_data, long size, struct timeval &t, Tango::AttrQuality qual, bool release=false)
 Push a change event for an attribute with Tango::DevEncoded attribute data type when the data rea specified with two pointers.
Push archive event methods.
These methods allow to fire archive events for attributes manually, without the polling to be started.

void set_archive_event (string attr_name, bool implemented, bool detect=true)
 Set an implemented flag for the attribute to indicate that the server fires archive events manually, without the polling to be started.
void push_archive_event (string attr_name, DevFailed *except=NULL)
 Push an archive event for a state or status attribute or return an exception as archive event for any attribute.
void push_archive_event (string attr_name, Tango::DevShort *p_data, long x=1, long y=0, bool release=false)
 Push an archive event for an attribute with Tango::DevShort attribute data type.
void push_archive_event (string attr_name, Tango::DevLong *p_data, long x=1, long y=0, bool release=false)
 Push an archive event for an attribute with Tango::DevLong attribute data type.
void push_archive_event (string attr_name, Tango::DevLong64 *p_data, long x=1, long y=0, bool release=false)
 Push an archive event for an attribute with Tango::DevLong64 attribute data type.
void push_archive_event (string attr_name, Tango::DevFloat *p_data, long x=1, long y=0, bool release=false)
 Push an archive event for an attribute with Tango::DevFloat attribute data type.
void push_archive_event (string attr_name, Tango::DevDouble *p_data, long x=1, long y=0, bool release=false)
 Push an archive event for an attribute with Tango::DevDouble attribute data type.
void push_archive_event (string attr_name, Tango::DevString *p_data, long x=1, long y=0, bool release=false)
 Push an archive event for an attribute with Tango::DevString attribute data type.
void push_archive_event (string attr_name, Tango::DevBoolean *p_data, long x=1, long y=0, bool release=false)
 Push an archive event for an attribute with Tango::DevBoolean attribute data type.
void push_archive_event (string attr_name, Tango::DevUShort *p_data, long x=1, long y=0, bool release=false)
 Push an archive event for an attribute with Tango::DevUShort attribute data type.
void push_archive_event (string attr_name, Tango::DevUChar *p_data, long x=1, long y=0, bool release=false)
 Push an archive event for an attribute with Tango::DevUChar attribute data type.
void push_archive_event (string attr_name, Tango::DevULong *p_data, long x=1, long y=0, bool release=false)
 Push an archive event for an attribute with Tango::DevULong attribute data type.
void push_archive_event (string attr_name, Tango::DevULong64 *p_data, long x=1, long y=0, bool release=false)
 Push an archive event for an attribute with Tango::DevLong64 attribute data type.
void push_archive_event (string attr_name, Tango::DevState *p_data, long x=1, long y=0, bool release=false)
 Push an archive event for an attribute with Tango::DevState attribute data type.
void push_archive_event (string attr_name, Tango::DevEncoded *p_data, long x=1, long y=0, bool release=false)
 Push an archive event for an attribute with Tango::DevEncoded attribute data type.
void push_archive_event (string attr_name, Tango::DevString *p_str_data, Tango::DevUChar *p_data, long size, bool release=false)
 Push an archive event for an attribute with Tango::DevEncoded attribute data type when the data are specified using two pointers.
void push_archive_event (string attr_name, Tango::DevShort *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
 Push an archive event for an attribute with Tango::DevShort attribute data type.
void push_archive_event (string attr_name, Tango::DevLong *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
 Push an archive event for an attribute with Tango::DevLong attribute data type.
void push_archive_event (string attr_name, Tango::DevLong64 *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
 Push an archive event for an attribute with Tango::DevLong64 attribute data type.
void push_archive_event (string attr_name, Tango::DevFloat *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
 Push an archive event for an attribute with Tango::DevFloat attribute data type.
void push_archive_event (string attr_name, Tango::DevDouble *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
 Push an archive event for an attribute with Tango::DevDouble attribute data type.
void push_archive_event (string attr_name, Tango::DevString *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
 Push an archive event for an attribute with Tango::DevString attribute data type.
void push_archive_event (string attr_name, Tango::DevBoolean *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
 Push an archive event for an attribute with Tango::DevBoolean attribute data type.
void push_archive_event (string attr_name, Tango::DevUShort *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
 Push an archive event for an attribute with Tango::DevUShort attribute data type.
void push_archive_event (string attr_name, Tango::DevUChar *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
 Push an archive event for an attribute with Tango::DevUChar attribute data type.
void push_archive_event (string attr_name, Tango::DevULong *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
 Push an archive event for an attribute with Tango::DevULong attribute data type.
void push_archive_event (string attr_name, Tango::DevULong64 *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
 Push an archive event for an attribute with Tango::DevULong64 attribute data type.
void push_archive_event (string attr_name, Tango::DevState *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
 Push an archive event for an attribute with Tango::DevState attribute data type.
void push_archive_event (string attr_name, Tango::DevEncoded *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
 Push an archive event for an attribute with Tango::DevEncoded attribute data type.
void push_archive_event (string attr_name, Tango::DevString *p_str_data, Tango::DevUChar *p_data, long size, struct timeval &t, Tango::AttrQuality qual, bool release=false)
 Push an archive event for an attribute with Tango::DevEncoded attribute data type when it is specified using two pointers.
Push user event methods.
These methods allow to fire user events for attributes manually, without the polling to be started.

void push_event (string attr_name, vector< string > &filt_names, vector< double > &filt_vals, DevFailed *except=NULL)
 Push a user event for a state or status attribute or return an exception as user event for any attribute.
void push_event (string attr_name, vector< string > &filt_names, vector< double > &filt_vals, Tango::DevShort *p_data, long x=1, long y=0, bool release=false)
 Push a user event for an attribute with Tango::DevShort attribute data type.
void push_event (string attr_name, vector< string > &filt_names, vector< double > &filt_vals, Tango::DevLong *p_data, long x=1, long y=0, bool release=false)
 Push a user event for an attribute with Tango::DevLong attribute data type.
void push_event (string attr_name, vector< string > &filt_names, vector< double > &filt_vals, Tango::DevLong64 *p_data, long x=1, long y=0, bool release=false)
 Push a user event for an attribute with Tango::DevLong64 attribute data type.
void push_event (string attr_name, vector< string > &filt_names, vector< double > &filt_vals, Tango::DevFloat *p_data, long x=1, long y=0, bool release=false)
 Push a user event for an attribute with Tango::DevFloat attribute data type.
void push_event (string attr_name, vector< string > &filt_names, vector< double > &filt_vals, Tango::DevDouble *p_data, long x=1, long y=0, bool release=false)
 Push a user event for an attribute with Tango::DevDouble attribute data type.
void push_event (string attr_name, vector< string > &filt_names, vector< double > &filt_vals, Tango::DevString *p_data, long x=1, long y=0, bool release=false)
 Push a user event for an attribute with Tango::DevString attribute data type.
void push_event (string attr_name, vector< string > &filt_names, vector< double > &filt_vals, Tango::DevBoolean *p_data, long x=1, long y=0, bool release=false)
 Push a user event for an attribute with Tango::DevBoolean attribute data type.
void push_event (string attr_name, vector< string > &filt_names, vector< double > &filt_vals, Tango::DevUShort *p_data, long x=1, long y=0, bool release=false)
 Push a user event for an attribute with Tango::DevUShort attribute data type.
void push_event (string attr_name, vector< string > &filt_names, vector< double > &filt_vals, Tango::DevUChar *p_data, long x=1, long y=0, bool release=false)
 Push a user event for an attribute with Tango::DevUChar attribute data type.
void push_event (string attr_name, vector< string > &filt_names, vector< double > &filt_vals, Tango::DevULong *p_data, long x=1, long y=0, bool release=false)
 Push a user event for an attribute with Tango::DevULong attribute data type.
void push_event (string attr_name, vector< string > &filt_names, vector< double > &filt_vals, Tango::DevULong64 *p_data, long x=1, long y=0, bool release=false)
 Push a user event for an attribute with Tango::DevULong64 attribute data type.
void push_event (string attr_name, vector< string > &filt_names, vector< double > &filt_vals, Tango::DevState *p_data, long x=1, long y=0, bool release=false)
 Push a user event for an attribute with Tango::DevState attribute data type.
void push_event (string attr_name, vector< string > &filt_names, vector< double > &filt_vals, Tango::DevEncoded *p_data, long x=1, long y=0, bool release=false)
 Push a user event for an attribute with Tango::DevEncoded attribute data type.
void push_event (string attr_name, vector< string > &filt_names, vector< double > &filt_vals, Tango::DevString *p_str_data, Tango::DevUChar *p_data, long size, bool release=false)
 Push a user event for an attribute with Tango::DevEncoded attribute data type when the attribute data are specified with 2 pointers.
void push_event (string attr_name, vector< string > &filt_names, vector< double > &filt_vals, Tango::DevShort *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
 Push a user event for an attribute with Tango::DevShort attribute data type.
void push_event (string attr_name, vector< string > &filt_names, vector< double > &filt_vals, Tango::DevLong *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
 Push a user event for an attribute with Tango::DevLong attribute data type.
void push_event (string attr_name, vector< string > &filt_names, vector< double > &filt_vals, Tango::DevLong64 *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
 Push a user event for an attribute with Tango::DevLong64 attribute data type.
void push_event (string attr_name, vector< string > &filt_names, vector< double > &filt_vals, Tango::DevFloat *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
 Push a user event for an attribute with Tango::DevFloat attribute data type.
void push_event (string attr_name, vector< string > &filt_names, vector< double > &filt_vals, Tango::DevDouble *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
 Push a user event for an attribute with Tango::DevDouble attribute data type.
void push_event (string attr_name, vector< string > &filt_names, vector< double > &filt_vals, Tango::DevString *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
 Push a user event for an attribute with Tango::DevString attribute data type.
void push_event (string attr_name, vector< string > &filt_names, vector< double > &filt_vals, Tango::DevBoolean *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
 Push a user event for an attribute with Tango::DevBoolean attribute data type.
void push_event (string attr_name, vector< string > &filt_names, vector< double > &filt_vals, Tango::DevUShort *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
 Push a user event for an attribute with Tango::DevUShort attribute data type.
void push_event (string attr_name, vector< string > &filt_names, vector< double > &filt_vals, Tango::DevUChar *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
 Push a user event for an attribute with Tango::DevUChar attribute data type.
void push_event (string attr_name, vector< string > &filt_names, vector< double > &filt_vals, Tango::DevULong *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
 Push a user event for an attribute with Tango::DevULong attribute data type.
void push_event (string attr_name, vector< string > &filt_names, vector< double > &filt_vals, Tango::DevULong64 *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
 Push a user event for an attribute with Tango::DevULong64 attribute data type.
void push_event (string attr_name, vector< string > &filt_names, vector< double > &filt_vals, Tango::DevState *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
 Push a user event for an attribute with Tango::DevState attribute data type.
void push_event (string attr_name, vector< string > &filt_names, vector< double > &filt_vals, Tango::DevEncoded *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
 Push a user event for an attribute with Tango::DevEncoded attribute data type.
void push_event (string attr_name, vector< string > &filt_names, vector< double > &filt_vals, Tango::DevString *p_str_data, Tango::DevUChar *p_data, long size, struct timeval &t, Tango::AttrQuality qual, bool release=false)
 Push a user event for an attribute with Tango::DevEncoded attribute data type when the string part and the data part of the DevEncoded data are specified separately.
Push data ready event methods
This method allows the user to push a data ready event

void push_data_ready_event (const string &attr_name, Tango::DevLong ctr=0)
 Push a data ready event for the attribute with name specified as the first parameter.
Signal related methods
These methods allow a signal management at device level

void register_signal (long signo)
 Register a signal.
void unregister_signal (long signo)
 Unregister a signal.
virtual void signal_handler (long signo)
 Signal handler.

Protected Attributes

Class data members
BlackBox * blackbox_ptr
 The device black box pointer.
long blackbox_depth
 The device black box depth.
string device_name
 The device name.
string desc
 The device description.
string device_status
 The device status.
Tango::DevState device_state
 The device state.
long version
 The device version.
DeviceClassdevice_class
 Pointer to the device-class object associated with the device.
MultiAttributedev_attr
 Pointer to the multi attribute object.
DbDevice * db_dev
 Pointer to the associated DbDevice object.
string adm_device_name
 The administration device name.


Detailed Description

Base class for all TANGO device.

This class inherits from CORBA classes where all the network layer is implemented.

Author
taurel
Revision
15556

Constructor & Destructor Documentation

Tango::DeviceImpl::DeviceImpl ( DeviceClass device_class,
string &  dev_name 
)

Constructs a newly allocated DeviceImpl object from its name.

The device description field is set to A Tango device. The device state is set to unknown and the device status is set to Not Initialised

Parameters:
device_class Pointer to the device class object
dev_name The device name

Tango::DeviceImpl::DeviceImpl ( DeviceClass device_class,
string &  dev_name,
string &  desc 
)

Constructs a newly allocated DeviceImpl object from its name and its description.

The device state is set to unknown and the device status is set to Not Initialised

Parameters:
device_class Pointer to the device class object
dev_name The device name
desc The device description

Tango::DeviceImpl::DeviceImpl ( DeviceClass device_class,
string &  dev_name,
string &  desc,
Tango::DevState  dev_state,
string &  dev_status 
)

Constructs a newly allocated DeviceImpl object from all its creation parameters.

The device is constructed from its name, its description, an original state and status

Parameters:
device_class Pointer to the device class object
dev_name The device name
desc The device description
dev_state The device initial state
dev_status The device initial status

Tango::DeviceImpl::DeviceImpl ( DeviceClass device_class,
const char *  dev_name,
const char *  desc = "A TANGO device",
Tango::DevState  dev_state = Tango::UNKNOWN,
const char *  dev_status = StatusNotSet 
)

Constructs a newly allocated DeviceImpl object from all its creation parameters with some default values.

The device is constructed from its name, its description, an original state and status. This constructor defined default values for the description, state and status parameters. The default device description is A TANGO device. The default device state is UNKNOWN and the default device status is Not initialised.

Parameters:
device_class Pointer to the device class object
dev_name The device name
desc The device desc
dev_state The device initial state
dev_status The device initial status


Member Function Documentation

virtual PortableServer::POA_ptr Tango::DeviceImpl::_default_POA (  )  [virtual]

Return device POA.

Return a pointer to the device POA. This method is necessary for the CORBA object implicit activation by the _this() method.

Returns:
Pointer to the device POA

void Tango::DeviceImpl::add_attribute ( Attr new_attr  ) 

Add a new attribute to the device attribute list.

Attributes are normally constructed in the DeviceClass::attribute_factory() method. Nevertheless, it is still possible to add a new attribute to a device with this method. Please, note that if you add an attribute to a device at device creation time, this attribute will be added to the device class attribute list. Therefore, all devices belonging to the same class created after this attribute addition will also have this attribute.

Parameters:
new_attr Pointer to the new attribute to be added to the list. This pointer must point to "heap" allocated memory (or to static memory) and not to "stack" allocated memory
Exceptions:
DevFailed Click here to read DevFailed exception specification

virtual char* Tango::DeviceImpl::adm_name (  )  throw (CORBA::SystemException) [virtual]

Get administrator device name.

It's the master method executed when the administrator device name is requested via a CORBA attribute. It updates the device black-box and return the administrator device name

Returns:
The device name

virtual void Tango::DeviceImpl::always_executed_hook ( void   )  [inline, virtual]

Hook method.

Default method to implement an action necessary on a device before any command is executed. This method can be redefined in sub-classes in case of the default behaviour does not fullfill the needs

Exceptions:
DevFailed This method does not throw exception but a redefined method can. Click here to read DevFailed exception specification

void Tango::DeviceImpl::append_status ( const string &  stat,
bool  new_line = false 
) [inline]

Appends a string to the device status.

Parameters:
stat The string to be appened to the device status
new_line If true, appends a new line character before the string

virtual Tango::DevVarStringArray* Tango::DeviceImpl::black_box ( CORBA::Long  n  )  throw (Tango::DevFailed, CORBA::SystemException) [virtual]

Get device black box.

It's the master method executed when the device black box is requested. It reads the device black box, update it and return black-box data to the client

Parameters:
n The number of actions description which must be returned to the client. The number of returned element is limited to the number of elements stored in the black-box or to the complete black-box depth if it is full.
Returns:
The device black box with one String for each action requested on the device
Exceptions:
DevFailed If it is not possible to read the device black box. Click here to read DevFailed exception specification

virtual CORBA::Any* Tango::DeviceImpl::command_inout ( const char *  in_cmd,
const CORBA::Any &  in_data 
) throw (Tango::DevFailed, CORBA::SystemException) [virtual]

Execute a command.

It's the master method executed when a "command_inout" CORBA operation is requested by a client. It updates the device black-box, call the TANGO command handler and returned the output Any

Parameters:
in_cmd The command name
in_data The command input data packed in a CORBA Any
Returns:
The command output data packed in a CORBA Any object
Exceptions:
DevFailed Re-throw of the exception thrown by the command_handler method. Click here to read DevFailed exception specification

virtual Tango::DevCmdInfoList* Tango::DeviceImpl::command_list_query (  )  throw (Tango::DevFailed, CORBA::SystemException) [virtual]

Get device command list.

Invoked when the client request the command_list_query CORBA operation. It updates the device black box and returns an array of DevCmdInfo object with one object for each command.

Returns:
The device command list. One DevCmdInfo is initialised for each device command

virtual Tango::DevCmdInfo* Tango::DeviceImpl::command_query ( const char *  command  )  throw (Tango::DevFailed, CORBA::SystemException) [virtual]

Get command info.

Invoked when the client request the command_query CORBA operation. It updates the device black box and returns a DevCmdInfo object for the command with name passed to the method as parameter.

Parameters:
command The command name
Returns:
A DevCmdInfo initialised for the wanted command
Exceptions:
DevFailed Thrown if the command does not exist. Click here to read DevFailed exception specification

Tango::DevVarCharArray* Tango::DeviceImpl::create_DevVarCharArray ( unsigned char *  ptr,
long  length 
) [inline]

Create a DevVarCharArray type.

Create a DevVarCharArray type data and return a pointer to it. The array is build using the input pointer with the given length

Parameters:
ptr Pointer to the basic type data buffer
length Number of element in the previous buffer
Returns:
Pointer to the created DevVarCharArray type data

Tango::DevVarDoubleArray* Tango::DeviceImpl::create_DevVarDoubleArray ( double *  ptr,
long  length 
) [inline]

Create a DevVarDoubleArray type.

Create a DevVarDoubleArray type data and return a pointer to it. The array is build using the input pointer with the given length

Parameters:
ptr Pointer to the basic type data buffer
length Number of element in the previous buffer
Returns:
Pointer to the created DevVarDoubleArray type data

Tango::DevVarFloatArray* Tango::DeviceImpl::create_DevVarFloatArray ( float *  ptr,
long  length 
) [inline]

Create a DevVarFloatArray type.

Create a DevVarFloatArray type data and return a pointer to it. The array is build using the input pointer with the given length

Parameters:
ptr Pointer to the basic type data buffer
length Number of element in the previous buffer
Returns:
Pointer to the created DevVarFloatArray type data

Tango::DevVarLong64Array* Tango::DeviceImpl::create_DevVarLong64Array ( DevLong64 *  ptr,
long  length 
) [inline]

Create a DevVarLong64Array type.

Create a DevVarLong64Array type data and return a pointer to it. The array is build using the input pointer with the given length

Parameters:
ptr Pointer to the basic type data buffer
length Number of element in the previous buffer
Returns:
Pointer to the created DevVarLong64Array type data

Tango::DevVarLongArray* Tango::DeviceImpl::create_DevVarLongArray ( DevLong *  ptr,
long  length 
) [inline]

Create a DevVarLongArray type.

Create a DevVarLongArray type data and return a pointer to it. The array is build using the input pointer with the given length

Parameters:
ptr Pointer to the basic type data buffer
length Number of element in the previous buffer
Returns:
Pointer to the created DevVarLongArray type data

Tango::DevVarShortArray* Tango::DeviceImpl::create_DevVarShortArray ( short *  ptr,
long  length 
) [inline]

Create a DevVarShortArray type.

Create a DevVarShortArray type data and return a pointer to it. The array is build using the input pointer with the given length

Parameters:
ptr Pointer to the basic type data buffer
length Number of element in the previous buffer
Returns:
Pointer to the created DevVarShortArray type data

Tango::DevVarStringArray* Tango::DeviceImpl::create_DevVarStringArray ( char **  ptr,
long  length 
) [inline]

Create a DevVarStringArray type.

Create a DevVarStringArray type data and return a pointer to it. The array is build using the input pointer with the given length

Parameters:
ptr Pointer to the basic type data buffer
length Number of element in the previous buffer
Returns:
Pointer to the created DevVarStringArray type data

Tango::DevVarULong64Array* Tango::DeviceImpl::create_DevVarULong64Array ( DevULong64 *  ptr,
long  length 
) [inline]

Create a DevVarULong64Array type.

Create a DevVarULong64Array type data and return a pointer to it. The array is build using the input pointer with the given length

Parameters:
ptr Pointer to the basic type data buffer
length Number of element in the previous buffer
Returns:
Pointer to the created DevVarULong64Array type data

Tango::DevVarULongArray* Tango::DeviceImpl::create_DevVarULongArray ( DevULong *  ptr,
long  length 
) [inline]

Create a DevVarULongArray type.

Create a DevVarULongArray type data and return a pointer to it. The array is build using the input pointer with the given length

Parameters:
ptr Pointer to the basic type data buffer
length Number of element in the previous buffer
Returns:
Pointer to the created DevVarULongArray type data

Tango::DevVarUShortArray* Tango::DeviceImpl::create_DevVarUShortArray ( unsigned short *  ptr,
long  length 
) [inline]

Create a DevVarUShortArray type.

Create a DevVarUShortArray type data and return a pointer to it. The array is build using the input pointer with the given length

Parameters:
ptr Pointer to the basic type data buffer
length Number of element in the previous buffer
Returns:
Pointer to the created DevVarUShortArray type data

virtual void Tango::DeviceImpl::delete_device (  )  [inline, virtual]

Delete a device.

In the DeviceImpl class, this method is virtual and can be defined in sub-class. Its rule is to delete memory allocated in the init_device method. This method is called by the device destructor and by the device Init command.

Exceptions:
DevFailed This method does not throw exception but a redefined method can. Click here to read DevFailed exception specification

virtual char* Tango::DeviceImpl::description (  )  throw (CORBA::SystemException) [virtual]

Get device description.

It's the master method executed when the device description is requested via a CORBA attribute. It updates the device black-box and return the device description field

Returns:
The device description

virtual Tango::DevState Tango::DeviceImpl::dev_state (  )  [virtual]

Get device state.

Default method to get device state. The behaviour of this method depends on the device state. If the device state is ON or ALARM, it reads the attribute(s) with an alarm level defined, check if the read value is above/below the alarm and eventually change the state to ALARM, return the device state. For all th eother device state, ti smethod simply returns the state This method can be redefined in sub-classes in case of the default behaviour does not fullfill the needs

Returns:
The device state
Exceptions:
DevFailed If it is necessary to read attribute(s) and a problem occurs during the reading. Click here to read DevFailed exception specification

virtual Tango::ConstDevString Tango::DeviceImpl::dev_status (  )  [virtual]

Get device status.

Default method to get device status. It returns the contents of the device dev_status field. If the device state is ALARM, alarm messages are added to the device status. This method can be redefined in sub-classes in case of the default behaviour does not fullfill the needs

Returns:
The device status
Exceptions:
DevFailed This method does not throw exception but a redefined method can. Click here to read DevFailed exception specification

virtual Tango::AttributeConfigList* Tango::DeviceImpl::get_attribute_config ( const Tango::DevVarStringArray &  names  )  throw (Tango::DevFailed, CORBA::SystemException) [virtual]

Get attribute(s) configuration.

Invoked when the client request the get_attribute_config CORBA operation. It returns to the client one AttributeConfig structure for each wanted attribute. All the attribute properties value are returned in this AttributeConfig structure.

Parameters:
names The attribute(s) name list
Returns:
A sequence of AttributeConfig structure. One structure is initialised for each wanted attribute. Click here to read AttributeConfig structure specification.
Exceptions:
DevFailed Thrown if the command does not exist. Click here to read DevFailed exception specification

Tango::Device_var Tango::DeviceImpl::get_d_var (  )  [inline]

Get the associated CORBA object reference.

Get the associated CORBA object reference. Tango supports only a one to one servant-CORBA object link.

Returns:
The CORBA object reference

DbDevice * Tango::DeviceImpl::get_db_device (  )  [inline]

Get a pointer to the associated DbDevice object.

Return a pointer to DbDevice object associated with the device

Returns:
Pointer to the DbDevice object

MultiAttribute* Tango::DeviceImpl::get_device_attr (  )  [inline]

Get device multi attribute object.

Return a pointer to the device multi attribute object

Returns:
Pointer to the device multi attribute object

DeviceClass* Tango::DeviceImpl::get_device_class (  )  [inline]

Get device class singleton.

Return the device class singleton (device_class field)

Returns:
Pointer to the device class singleton

string& Tango::DeviceImpl::get_name (  )  [inline]

Get device name.

Return the device name (dev_name field)

Returns:
Device name

PortableServer::ObjectId_var& Tango::DeviceImpl::get_obj_id (  )  [inline]

Get the associated CORBA object identifier.

Return the CORBA object identifier as a _var type variable

Returns:
The CORBA object identifier

vector<PollObj *>::iterator Tango::DeviceImpl::get_polled_obj_by_type_name ( Tango::PollObjType  obj_type,
const string &  obj_name 
)

Retrieve a polled object from the polled object list.

Retrieve in the device polled object list, the specified polled object (command or attribute).

Parameters:
obj_type The object type (command or attribute)
obj_name The object name
Returns:
An iterator pointing to the polled object in the polled object list
Exceptions:
DevFailed Thrown if the object is not found. Click here to read DevFailed exception specification

Tango::DevState& Tango::DeviceImpl::get_prev_state (  )  [inline]

Get device's previous state.

Return the device dev_prev_state field. This method is used for the on_state_change event

Returns:
Device previous state

Tango::DevState& Tango::DeviceImpl::get_state (  )  [inline]

Get device state.

Return the device dev_state field. This method does the same thing than the default state_cmd method.

Returns:
Device state

string& Tango::DeviceImpl::get_status (  )  [inline]

Get device status.

Return the device dev_status field. This method does the same thing than the default status_cmd method.

Returns:
Device status

virtual Tango::DevInfo* Tango::DeviceImpl::info (  )  throw (Tango::DevFailed, CORBA::SystemException) [virtual]

Get device info.

Invoked when the client request the info CORBA operation. It updates the black box and returns a DevInfo object with miscellaneous device info

Returns:
A DevInfo object

void Tango::DeviceImpl::init_attr_poll_ext_trig ( string  cmd_name  ) 

Write the attribute name to the list of polled attributes in the database.

The polling period is set to 0 to indicate that the polling buffer is filled externally from the device server code. An already specified polling for this attribute gets replaced!

Exceptions:
DevFailed in the case of database access problems. Click here to read DevFailed exception specification

void Tango::DeviceImpl::init_attr_poll_period (  ) 

Checks the specified polling period for all attributes of the device.

If a polling period is specified for an attribute the attribute name and the period are written to the list of polled attributes in the database. This happens only if the attribute is not yet in the list of polled attributes.

Exceptions:
DevFailed in the case of database access problems. Click here to read DevFailed exception specification

void Tango::DeviceImpl::init_cmd_poll_ext_trig ( string  cmd_name  ) 

Write the command name to the list of polled commands in the database.

The polling period is set to 0 to indicate that the polling buffer is filled externally from the device server code. An already specified polling for this command gets replaced!

Exceptions:
DevFailed in the case of database access problems. Click here to read DevFailed exception specification

void Tango::DeviceImpl::init_cmd_poll_period (  ) 

Checks the specified polling period for all commands of the device.

If a polling period is specified for a command the command name and the period are written to the list of polled commands in the database. This happens only if the command is not yet in the list of polled commands.

Exceptions:
DevFailed in the case of database access problems. Click here to read DevFailed exception specification

virtual void Tango::DeviceImpl::init_device (  )  [pure virtual]

Intialise a device.

In the DeviceImpl class, this method is pure abstract and must be defined in sub-class. Its rule is to initialise a device. This method is called during device creation by the device constructor.

Exceptions:
DevFailed This method does not throw exception but a redefined method can. Click here to read DevFailed exception specification

virtual char* Tango::DeviceImpl::name (  )  throw (CORBA::SystemException) [virtual]

Get device name.

It's the master method executed when the device name is requested via a CORBA attribute. It updates the device black-box and return the device name

Returns:
The device name

virtual void Tango::DeviceImpl::ping (  )  throw (Tango::DevFailed, CORBA::SystemException) [virtual]

Ping the device to check if it is still alive.

Invoked when the client request the ping CORBA operation. It updates the device black box and simply returns

void Tango::DeviceImpl::push_archive_event ( string  attr_name,
Tango::DevString *  p_str_data,
Tango::DevUChar *  p_data,
long  size,
struct timeval &  t,
Tango::AttrQuality  qual,
bool  release = false 
)

Push an archive event for an attribute with Tango::DevEncoded attribute data type when it is specified using two pointers.

The event is pushed to the notification daemon.

The method needs the attribue name, a pointer to the data to be pushed, the time stamp for the data and the attribute quality factor as input. Depending on the attribute type the dimensions x and why need to be given. The event is triggered with or without checking of the archive event criteria depending on the configuration choosen with set_archive_event().

Parameters:
attr_name The name of the attribute
p_str_data Pointer to the data string part to be pushed
p_data Pointer to the data to be pushed
size Size of the data to be pushed (Pointed to by p_data)
t The time stamp
qual The attribute quality factor
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_archive_event ( string  attr_name,
Tango::DevEncoded *  p_data,
struct timeval &  t,
Tango::AttrQuality  qual,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push an archive event for an attribute with Tango::DevEncoded attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name, a pointer to the data to be pushed, the time stamp for the data and the attribute quality factor as input. Depending on the attribute type the dimensions x and why need to be given. The event is triggered with or without checking of the archive event criteria depending on the configuration choosen with set_archive_event().

Parameters:
attr_name The name of the attribute
p_data Pointer to the data to be pushed
t The time stamp
qual The attribute quality factor
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_archive_event ( string  attr_name,
Tango::DevState *  p_data,
struct timeval &  t,
Tango::AttrQuality  qual,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push an archive event for an attribute with Tango::DevState attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name, a pointer to the data to be pushed, the time stamp for the data and the attribute quality factor as input. Depending on the attribute type the dimensions x and why need to be given. The event is triggered with or without checking of the archive event criteria depending on the configuration choosen with set_archive_event().

Parameters:
attr_name The name of the attribute
p_data Pointer to the data to be pushed
t The time stamp
qual The attribute quality factor
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_archive_event ( string  attr_name,
Tango::DevULong64 *  p_data,
struct timeval &  t,
Tango::AttrQuality  qual,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push an archive event for an attribute with Tango::DevULong64 attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name, a pointer to the data to be pushed, the time stamp for the data and the attribute quality factor as input. Depending on the attribute type the dimensions x and why need to be given. The event is triggered with or without checking of the archive event criteria depending on the configuration choosen with set_archive_event().

Parameters:
attr_name The name of the attribute
p_data Pointer to the data to be pushed
t The time stamp
qual The attribute quality factor
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_archive_event ( string  attr_name,
Tango::DevULong *  p_data,
struct timeval &  t,
Tango::AttrQuality  qual,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push an archive event for an attribute with Tango::DevULong attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name, a pointer to the data to be pushed, the time stamp for the data and the attribute quality factor as input. Depending on the attribute type the dimensions x and why need to be given. The event is triggered with or without checking of the archive event criteria depending on the configuration choosen with set_archive_event().

Parameters:
attr_name The name of the attribute
p_data Pointer to the data to be pushed
t The time stamp
qual The attribute quality factor
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_archive_event ( string  attr_name,
Tango::DevUChar *  p_data,
struct timeval &  t,
Tango::AttrQuality  qual,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push an archive event for an attribute with Tango::DevUChar attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name, a pointer to the data to be pushed, the time stamp for the data and the attribute quality factor as input. Depending on the attribute type the dimensions x and why need to be given. The event is triggered with or without checking of the archive event criteria depending on the configuration choosen with set_archive_event().

Parameters:
attr_name The name of the attribute
p_data Pointer to the data to be pushed
t The time stamp
qual The attribute quality factor
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_archive_event ( string  attr_name,
Tango::DevUShort *  p_data,
struct timeval &  t,
Tango::AttrQuality  qual,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push an archive event for an attribute with Tango::DevUShort attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name, a pointer to the data to be pushed, the time stamp for the data and the attribute quality factor as input. Depending on the attribute type the dimensions x and why need to be given. The event is triggered with or without checking of the archive event criteria depending on the configuration choosen with set_archive_event().

Parameters:
attr_name The name of the attribute
p_data Pointer to the data to be pushed
t The time stamp
qual The attribute quality factor
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_archive_event ( string  attr_name,
Tango::DevBoolean *  p_data,
struct timeval &  t,
Tango::AttrQuality  qual,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push an archive event for an attribute with Tango::DevBoolean attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name, a pointer to the data to be pushed, the time stamp for the data and the attribute quality factor as input. Depending on the attribute type the dimensions x and why need to be given. The event is triggered with or without checking of the archive event criteria depending on the configuration choosen with set_archive_event().

Parameters:
attr_name The name of the attribute
p_data Pointer to the data to be pushed
t The time stamp
qual The attribute quality factor
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_archive_event ( string  attr_name,
Tango::DevString *  p_data,
struct timeval &  t,
Tango::AttrQuality  qual,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push an archive event for an attribute with Tango::DevString attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name, a pointer to the data to be pushed, the time stamp for the data and the attribute quality factor as input. Depending on the attribute type the dimensions x and why need to be given. The event is triggered with or without checking of the archive event criteria depending on the configuration choosen with set_archive_event().

Parameters:
attr_name The name of the attribute
p_data Pointer to the data to be pushed
t The time stamp
qual The attribute quality factor
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_archive_event ( string  attr_name,
Tango::DevDouble *  p_data,
struct timeval &  t,
Tango::AttrQuality  qual,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push an archive event for an attribute with Tango::DevDouble attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name, a pointer to the data to be pushed, the time stamp for the data and the attribute quality factor as input. Depending on the attribute type the dimensions x and why need to be given. The event is triggered with or without checking of the archive event criteria depending on the configuration choosen with set_archive_event().

Parameters:
attr_name The name of the attribute
p_data Pointer to the data to be pushed
t The time stamp
qual The attribute quality factor
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_archive_event ( string  attr_name,
Tango::DevFloat *  p_data,
struct timeval &  t,
Tango::AttrQuality  qual,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push an archive event for an attribute with Tango::DevFloat attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name, a pointer to the data to be pushed, the time stamp for the data and the attribute quality factor as input. Depending on the attribute type the dimensions x and why need to be given. The event is triggered with or without checking of the archive event criteria depending on the configuration choosen with set_archive_event().

Parameters:
attr_name The name of the attribute
p_data Pointer to the data to be pushed
t The time stamp
qual The attribute quality factor
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_archive_event ( string  attr_name,
Tango::DevLong64 *  p_data,
struct timeval &  t,
Tango::AttrQuality  qual,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push an archive event for an attribute with Tango::DevLong64 attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name, a pointer to the data to be pushed, the time stamp for the data and the attribute quality factor as input. Depending on the attribute type the dimensions x and why need to be given. The event is triggered with or without checking of the archive event criteria depending on the configuration choosen with set_archive_event().

Parameters:
attr_name The name of the attribute
p_data Pointer to the data to be pushed
t The time stamp
qual The attribute quality factor
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_archive_event ( string  attr_name,
Tango::DevLong *  p_data,
struct timeval &  t,
Tango::AttrQuality  qual,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push an archive event for an attribute with Tango::DevLong attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name, a pointer to the data to be pushed, the time stamp for the data and the attribute quality factor as input. Depending on the attribute type the dimensions x and why need to be given. The event is triggered with or without checking of the archive event criteria depending on the configuration choosen with set_archive_event().

Parameters:
attr_name The name of the attribute
p_data Pointer to the data to be pushed
t The time stamp
qual The attribute quality factor
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_archive_event ( string  attr_name,
Tango::DevShort *  p_data,
struct timeval &  t,
Tango::AttrQuality  qual,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push an archive event for an attribute with Tango::DevShort attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name, a pointer to the data to be pushed, the time stamp for the data and the attribute quality factor as input. Depending on the attribute type the dimensions x and why need to be given. The event is triggered with or without checking of the archive event criteria depending on the configuration choosen with set_archive_event().

Parameters:
attr_name The name of the attribute
p_data Pointer to the data to be pushed
t The time stamp
qual The attribute quality factor
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_archive_event ( string  attr_name,
Tango::DevString *  p_str_data,
Tango::DevUChar *  p_data,
long  size,
bool  release = false 
)

Push an archive event for an attribute with Tango::DevEncoded attribute data type when the data are specified using two pointers.

The event is pushed to the notification daemon.

The method needs the attribue name and a pointer to the data to be pushed as input. Depending on the attribute type the dimensions x and why need to be given. The time stamp of the event is set to the actual time and the attribute quality is set to valid. The event is triggered with or without checking of the archive event criteria depending on the configuration choosen with set_archive_event().

Parameters:
attr_name The name of the attribute
p_str_data Pointer to the data string part to be pushed
p_data Pointer to the data part to be pushed
size Size of the data to be pushed (Pointed to by p_data)
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_archive_event ( string  attr_name,
Tango::DevEncoded *  p_data,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push an archive event for an attribute with Tango::DevEncoded attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name and a pointer to the data to be pushed as input. Depending on the attribute type the dimensions x and why need to be given. The time stamp of the event is set to the actual time and the attribute quality is set to valid. The event is triggered with or without checking of the archive event criteria depending on the configuration choosen with set_archive_event().

Parameters:
attr_name The name of the attribute
p_data Pointer to the data to be pushed
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_archive_event ( string  attr_name,
Tango::DevState *  p_data,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push an archive event for an attribute with Tango::DevState attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name and a pointer to the data to be pushed as input. Depending on the attribute type the dimensions x and why need to be given. The time stamp of the event is set to the actual time and the attribute quality is set to valid. The event is triggered with or without checking of the archive event criteria depending on the configuration choosen with set_archive_event().

Parameters:
attr_name The name of the attribute
p_data Pointer to the data to be pushed
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_archive_event ( string  attr_name,
Tango::DevULong64 *  p_data,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push an archive event for an attribute with Tango::DevLong64 attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name and a pointer to the data to be pushed as input. Depending on the attribute type the dimensions x and why need to be given. The time stamp of the event is set to the actual time and the attribute quality is set to valid. The event is triggered with or without checking of the archive event criteria depending on the configuration choosen with set_archive_event().

Parameters:
attr_name The name of the attribute
p_data Pointer to the data to be pushed
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_archive_event ( string  attr_name,
Tango::DevULong *  p_data,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push an archive event for an attribute with Tango::DevULong attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name and a pointer to the data to be pushed as input. Depending on the attribute type the dimensions x and why need to be given. The time stamp of the event is set to the actual time and the attribute quality is set to valid. The event is triggered with or without checking of the archive event criteria depending on the configuration choosen with set_archive_event().

Parameters:
attr_name The name of the attribute
p_data Pointer to the data to be pushed
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_archive_event ( string  attr_name,
Tango::DevUChar *  p_data,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push an archive event for an attribute with Tango::DevUChar attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name and a pointer to the data to be pushed as input. Depending on the attribute type the dimensions x and why need to be given. The time stamp of the event is set to the actual time and the attribute quality is set to valid. The event is triggered with or without checking of the archive event criteria depending on the configuration choosen with set_archive_event().

Parameters:
attr_name The name of the attribute
p_data Pointer to the data to be pushed
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_archive_event ( string  attr_name,
Tango::DevUShort *  p_data,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push an archive event for an attribute with Tango::DevUShort attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name and a pointer to the data to be pushed as input. Depending on the attribute type the dimensions x and why need to be given. The time stamp of the event is set to the actual time and the attribute quality is set to valid. The event is triggered with or without checking of the archive event criteria depending on the configuration choosen with set_archive_event().

Parameters:
attr_name The name of the attribute
p_data Pointer to the data to be pushed
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_archive_event ( string  attr_name,
Tango::DevBoolean *  p_data,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push an archive event for an attribute with Tango::DevBoolean attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name and a pointer to the data to be pushed as input. Depending on the attribute type the dimensions x and why need to be given. The time stamp of the event is set to the actual time and the attribute quality is set to valid. The event is triggered with or without checking of the archive event criteria depending on the configuration choosen with set_archive_event().

Parameters:
attr_name The name of the attribute
p_data Pointer to the data to be pushed
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_archive_event ( string  attr_name,
Tango::DevString *  p_data,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push an archive event for an attribute with Tango::DevString attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name and a pointer to the data to be pushed as input. Depending on the attribute type the dimensions x and why need to be given. The time stamp of the event is set to the actual time and the attribute quality is set to valid. The event is triggered with or without checking of the archive event criteria depending on the configuration choosen with set_archive_event().

Parameters:
attr_name The name of the attribute
p_data Pointer to the data to be pushed
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_archive_event ( string  attr_name,
Tango::DevDouble *  p_data,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push an archive event for an attribute with Tango::DevDouble attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name and a pointer to the data to be pushed as input. Depending on the attribute type the dimensions x and why need to be given. The time stamp of the event is set to the actual time and the attribute quality is set to valid. The event is triggered with or without checking of the archive event criteria depending on the configuration choosen with set_archive_event().

Parameters:
attr_name The name of the attribute
p_data Pointer to the data to be pushed
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_archive_event ( string  attr_name,
Tango::DevFloat *  p_data,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push an archive event for an attribute with Tango::DevFloat attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name and a pointer to the data to be pushed as input. Depending on the attribute type the dimensions x and why need to be given. The time stamp of the event is set to the actual time and the attribute quality is set to valid. The event is triggered with or without checking of the archive event criteria depending on the configuration choosen with set_archive_event().

Parameters:
attr_name The name of the attribute
p_data Pointer to the data to be pushed
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_archive_event ( string  attr_name,
Tango::DevLong64 *  p_data,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push an archive event for an attribute with Tango::DevLong64 attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name and a pointer to the data to be pushed as input. Depending on the attribute type the dimensions x and why need to be given. The time stamp of the event is set to the actual time and the attribute quality is set to valid. The event is triggered with or without checking of the archive event criteria depending on the configuration choosen with set_archive_event().

Parameters:
attr_name The name of the attribute
p_data Pointer to the data to be pushed
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_archive_event ( string  attr_name,
Tango::DevLong *  p_data,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push an archive event for an attribute with Tango::DevLong attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name and a pointer to the data to be pushed as input. Depending on the attribute type the dimensions x and why need to be given. The time stamp of the event is set to the actual time and the attribute quality is set to valid. The event is triggered with or without checking of the archive event criteria depending on the configuration choosen with set_archive_event().

Parameters:
attr_name The name of the attribute
p_data Pointer to the data to be pushed
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_archive_event ( string  attr_name,
Tango::DevShort *  p_data,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push an archive event for an attribute with Tango::DevShort attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name and a pointer to the data to be pushed as input. Depending on the attribute type the dimensions x and why need to be given. The time stamp of the event is set to the actual time and the attribute quality is set to valid. The event is triggered with or without checking of the archive event criteria depending on the configuration choosen with set_archive_event().

Parameters:
attr_name The name of the attribute
p_data Pointer to the data to be pushed
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_archive_event ( string  attr_name,
DevFailed *  except = NULL 
)

Push an archive event for a state or status attribute or return an exception as archive event for any attribute.

The event is pushed to the notification daemon.

The method needs the attribue name as input. For the state and status attributes the actual state and status values are pushed. In case of an exception, the exception is pushed as an archive event for the attribute.

Parameters:
attr_name The name of the attribute
except Pointer to a Tango::DevFailed exception. Default value is NULL.

void Tango::DeviceImpl::push_change_event ( string  attr_name,
Tango::DevString *  p_str_data,
Tango::DevUChar *  p_data,
long  size,
struct timeval &  t,
Tango::AttrQuality  qual,
bool  release = false 
)

Push a change event for an attribute with Tango::DevEncoded attribute data type when the data rea specified with two pointers.

The event is pushed to the notification daemon.

The method needs the attribue name, a pointer to the data to be pushed, the time stamp for the data and the attribute quality factor as input. Depending on the attribute type the dimensions x and why need to be given. The event is triggered with or without checking of the change event criteria depending on the configuration choosen with set_change_event().

Parameters:
attr_name The name of the attribute
p_str_data Pointer to the data string part to be pushed
p_data Pointer to the data to be pushed
size Size of the data to be ushed (pointed to be p_data
t The time stamp
qual The attribute quality factor
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_change_event ( string  attr_name,
Tango::DevEncoded *  p_data,
struct timeval &  t,
Tango::AttrQuality  qual,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push a change event for an attribute with Tango::DevEncoded attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name, a pointer to the data to be pushed, the time stamp for the data and the attribute quality factor as input. Depending on the attribute type the dimensions x and why need to be given. The event is triggered with or without checking of the change event criteria depending on the configuration choosen with set_change_event().

Parameters:
attr_name The name of the attribute
p_data Pointer to the data to be pushed
t The time stamp
qual The attribute quality factor
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_change_event ( string  attr_name,
Tango::DevState *  p_data,
struct timeval &  t,
Tango::AttrQuality  qual,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push a change event for an attribute with Tango::DevState attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name, a pointer to the data to be pushed, the time stamp for the data and the attribute quality factor as input. Depending on the attribute type the dimensions x and why need to be given. The event is triggered with or without checking of the change event criteria depending on the configuration choosen with set_change_event().

Parameters:
attr_name The name of the attribute
p_data Pointer to the data to be pushed
t The time stamp
qual The attribute quality factor
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_change_event ( string  attr_name,
Tango::DevULong64 *  p_data,
struct timeval &  t,
Tango::AttrQuality  qual,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push a change event for an attribute with Tango::DevULong64 attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name, a pointer to the data to be pushed, the time stamp for the data and the attribute quality factor as input. Depending on the attribute type the dimensions x and why need to be given. The event is triggered with or without checking of the change event criteria depending on the configuration choosen with set_change_event().

Parameters:
attr_name The name of the attribute
p_data Pointer to the data to be pushed
t The time stamp
qual The attribute quality factor
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_change_event ( string  attr_name,
Tango::DevULong *  p_data,
struct timeval &  t,
Tango::AttrQuality  qual,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push a change event for an attribute with Tango::DevULong attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name, a pointer to the data to be pushed, the time stamp for the data and the attribute quality factor as input. Depending on the attribute type the dimensions x and why need to be given. The event is triggered with or without checking of the change event criteria depending on the configuration choosen with set_change_event().

Parameters:
attr_name The name of the attribute
p_data Pointer to the data to be pushed
t The time stamp
qual The attribute quality factor
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_change_event ( string  attr_name,
Tango::DevUChar *  p_data,
struct timeval &  t,
Tango::AttrQuality  qual,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push a change event for an attribute with Tango::DevUChar attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name, a pointer to the data to be pushed, the time stamp for the data and the attribute quality factor as input. Depending on the attribute type the dimensions x and why need to be given. The event is triggered with or without checking of the change event criteria depending on the configuration choosen with set_change_event().

Parameters:
attr_name The name of the attribute
p_data Pointer to the data to be pushed
t The time stamp
qual The attribute quality factor
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_change_event ( string  attr_name,
Tango::DevUShort *  p_data,
struct timeval &  t,
Tango::AttrQuality  qual,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push a change event for an attribute with Tango::DevUShort attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name, a pointer to the data to be pushed, the time stamp for the data and the attribute quality factor as input. Depending on the attribute type the dimensions x and why need to be given. The event is triggered with or without checking of the change event criteria depending on the configuration choosen with set_change_event().

Parameters:
attr_name The name of the attribute
p_data Pointer to the data to be pushed
t The time stamp
qual The attribute quality factor
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_change_event ( string  attr_name,
Tango::DevBoolean *  p_data,
struct timeval &  t,
Tango::AttrQuality  qual,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push a change event for an attribute with Tango::DevBoolean attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name, a pointer to the data to be pushed, the time stamp for the data and the attribute quality factor as input. Depending on the attribute type the dimensions x and why need to be given. The event is triggered with or without checking of the change event criteria depending on the configuration choosen with set_change_event().

Parameters:
attr_name The name of the attribute
p_data Pointer to the data to be pushed
t The time stamp
qual The attribute quality factor
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_change_event ( string  attr_name,
Tango::DevString *  p_data,
struct timeval &  t,
Tango::AttrQuality  qual,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push a change event for an attribute with Tango::DevString attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name, a pointer to the data to be pushed, the time stamp for the data and the attribute quality factor as input. Depending on the attribute type the dimensions x and why need to be given. The event is triggered with or without checking of the change event criteria depending on the configuration choosen with set_change_event().

Parameters:
attr_name The name of the attribute
p_data Pointer to the data to be pushed
t The time stamp
qual The attribute quality factor
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_change_event ( string  attr_name,
Tango::DevDouble *  p_data,
struct timeval &  t,
Tango::AttrQuality  qual,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push a change event for an attribute with Tango::DevDouble attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name, a pointer to the data to be pushed, the time stamp for the data and the attribute quality factor as input. Depending on the attribute type the dimensions x and why need to be given. The event is triggered with or without checking of the change event criteria depending on the configuration choosen with set_change_event().

Parameters:
attr_name The name of the attribute
p_data Pointer to the data to be pushed
t The time stamp
qual The attribute quality factor
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_change_event ( string  attr_name,
Tango::DevFloat *  p_data,
struct timeval &  t,
Tango::AttrQuality  qual,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push a change event for an attribute with Tango::DevFloat attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name, a pointer to the data to be pushed, the time stamp for the data and the attribute quality factor as input. Depending on the attribute type the dimensions x and why need to be given. The event is triggered with or without checking of the change event criteria depending on the configuration choosen with set_change_event().

Parameters:
attr_name The name of the attribute
p_data Pointer to the data to be pushed
t The time stamp
qual The attribute quality factor
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_change_event ( string  attr_name,
Tango::DevLong64 *  p_data,
struct timeval &  t,
Tango::AttrQuality  qual,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push a change event for an attribute with Tango::DevLong64 attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name, a pointer to the data to be pushed, the time stamp for the data and the attribute quality factor as input. Depending on the attribute type the dimensions x and why need to be given. The event is triggered with or without checking of the change event criteria depending on the configuration choosen with set_change_event().

Parameters:
attr_name The name of the attribute
p_data Pointer to the data to be pushed
t The time stamp
qual The attribute quality factor
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_change_event ( string  attr_name,
Tango::DevLong *  p_data,
struct timeval &  t,
Tango::AttrQuality  qual,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push a change event for an attribute with Tango::DevLong attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name, a pointer to the data to be pushed, the time stamp for the data and the attribute quality factor as input. Depending on the attribute type the dimensions x and why need to be given. The event is triggered with or without checking of the change event criteria depending on the configuration choosen with set_change_event().

Parameters:
attr_name The name of the attribute
p_data Pointer to the data to be pushed
t The time stamp
qual The attribute quality factor
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_change_event ( string  attr_name,
Tango::DevShort *  p_data,
struct timeval &  t,
Tango::AttrQuality  qual,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push a change event for an attribute with Tango::DevShort attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name, a pointer to the data to be pushed, the time stamp for the data and the attribute quality factor as input. Depending on the attribute type the dimensions x and why need to be given. The event is triggered with or without checking of the change event criteria depending on the configuration choosen with set_change_event().

Parameters:
attr_name The name of the attribute
p_data Pointer to the data to be pushed
t The time stamp
qual The attribute quality factor
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_change_event ( string  attr_name,
Tango::DevString *  p_str_data,
Tango::DevUChar *  p_data,
long  size,
bool  release = false 
)

Push a change event for an attribute with Tango::DevEncoded attribute data type when the DevEncoded data are specified by two pointers.

The event is pushed to the notification daemon.

The method needs the attribue name and a pointer to the data to be pushed as input. Depending on the attribute type the dimensions x and why need to be given. The time stamp of the event is set to the actual time and the attribute quality is set to valid. The event is triggered with or without checking of the change event criteria depending on the configuration choosen with set_change_event().

Parameters:
attr_name The name of the attribute
p_str_data Pointer to the data string part to be pushed
p_data Pointer to the data to be pushed
size The data number (pointed to by p_data)
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_change_event ( string  attr_name,
Tango::DevEncoded *  p_data,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push a change event for an attribute with Tango::DevEncoded attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name and a pointer to the data to be pushed as input. Depending on the attribute type the dimensions x and why need to be given. The time stamp of the event is set to the actual time and the attribute quality is set to valid. The event is triggered with or without checking of the change event criteria depending on the configuration choosen with set_change_event().

Parameters:
attr_name The name of the attribute
p_data Pointer to the data to be pushed
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_change_event ( string  attr_name,
Tango::DevState *  p_data,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push a change event for an attribute with Tango::DevState attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name and a pointer to the data to be pushed as input. Depending on the attribute type the dimensions x and why need to be given. The time stamp of the event is set to the actual time and the attribute quality is set to valid. The event is triggered with or without checking of the change event criteria depending on the configuration choosen with set_change_event().

Parameters:
attr_name The name of the attribute
p_data Pointer to the data to be pushed
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_change_event ( string  attr_name,
Tango::DevULong64 *  p_data,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push a change event for an attribute with Tango::DevULong64 attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name and a pointer to the data to be pushed as input. Depending on the attribute type the dimensions x and why need to be given. The time stamp of the event is set to the actual time and the attribute quality is set to valid. The event is triggered with or without checking of the change event criteria depending on the configuration choosen with set_change_event().

Parameters:
attr_name The name of the attribute
p_data Pointer to the data to be pushed
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_change_event ( string  attr_name,
Tango::DevULong *  p_data,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push a change event for an attribute with Tango::DevULong attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name and a pointer to the data to be pushed as input. Depending on the attribute type the dimensions x and why need to be given. The time stamp of the event is set to the actual time and the attribute quality is set to valid. The event is triggered with or without checking of the change event criteria depending on the configuration choosen with set_change_event().

Parameters:
attr_name The name of the attribute
p_data Pointer to the data to be pushed
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_change_event ( string  attr_name,
Tango::DevUChar *  p_data,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push a change event for an attribute with Tango::DevUChar attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name and a pointer to the data to be pushed as input. Depending on the attribute type the dimensions x and why need to be given. The time stamp of the event is set to the actual time and the attribute quality is set to valid. The event is triggered with or without checking of the change event criteria depending on the configuration choosen with set_change_event().

Parameters:
attr_name The name of the attribute
p_data Pointer to the data to be pushed
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_change_event ( string  attr_name,
Tango::DevUShort *  p_data,
long  x = 1,
long  y = 0,
bool  release = false 
)

void push_change_event (string attr_name, Tango::DevBoolea Push a change event for an attribute with Tango::DevUShort attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name and a pointer to the data to be pushed as input. Depending on the attribute type the dimensions x and why need to be given. The time stamp of the event is set to the actual time and the attribute quality is set to valid. The event is triggered with or without checking of the change event criteria depending on the configuration choosen with set_change_event().

Parameters:
attr_name The name of the attribute
p_data Pointer to the data to be pushed
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_change_event ( string  attr_name,
Tango::DevBoolean *  p_data,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push a change event for an attribute with Tango::DevBoolean attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name and a pointer to the data to be pushed as input. Depending on the attribute type the dimensions x and why need to be given. The time stamp of the event is set to the actual time and the attribute quality is set to valid. The event is triggered with or without checking of the change event criteria depending on the configuration choosen with set_change_event().

Parameters:
attr_name The name of the attribute
p_data Pointer to the data to be pushed
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_change_event ( string  attr_name,
Tango::DevString *  p_data,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push a change event for an attribute with Tango::DevString attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name and a pointer to the data to be pushed as input. Depending on the attribute type the dimensions x and why need to be given. The time stamp of the event is set to the actual time and the attribute quality is set to valid. The event is triggered with or without checking of the change event criteria depending on the configuration choosen with set_change_event().

Parameters:
attr_name The name of the attribute
p_data Pointer to the data to be pushed
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_change_event ( string  attr_name,
Tango::DevDouble *  p_data,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push a change event for an attribute with Tango::DevDouble attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name and a pointer to the data to be pushed as input. Depending on the attribute type the dimensions x and why need to be given. The time stamp of the event is set to the actual time and the attribute quality is set to valid. The event is triggered with or without checking of the change event criteria depending on the configuration choosen with set_change_event().

Parameters:
attr_name The name of the attribute
p_data Pointer to the data to be pushed
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_change_event ( string  attr_name,
Tango::DevFloat *  p_data,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push a change event for an attribute with Tango::DevFloat attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name and a pointer to the data to be pushed as input. Depending on the attribute type the dimensions x and why need to be given. The time stamp of the event is set to the actual time and the attribute quality is set to valid. The event is triggered with or without checking of the change event criteria depending on the configuration choosen with set_change_event().

Parameters:
attr_name The name of the attribute
p_data Pointer to the data to be pushed
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_change_event ( string  attr_name,
Tango::DevLong64 *  p_data,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push a change event for an attribute with Tango::DevLong64 attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name and a pointer to the data to be pushed as input. Depending on the attribute type the dimensions x and why need to be given. The time stamp of the event is set to the actual time and the attribute quality is set to valid. The event is triggered with or without checking of the change event criteria depending on the configuration choosen with set_change_event().

Parameters:
attr_name The name of the attribute
p_data Pointer to the data to be pushed
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_change_event ( string  attr_name,
Tango::DevLong *  p_data,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push a change event for an attribute with Tango::DevLong attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name and a pointer to the data to be pushed as input. Depending on the attribute type the dimensions x and why need to be given. The time stamp of the event is set to the actual time and the attribute quality is set to valid. The event is triggered with or without checking of the change event criteria depending on the configuration choosen with set_change_event().

Parameters:
attr_name The name of the attribute
p_data Pointer to the data to be pushed
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_change_event ( string  attr_name,
Tango::DevShort *  p_data,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push a change event for an attribute with Tango::DevShort attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name and a pointer to the data to be pushed as input. Depending on the attribute type the dimensions x and why need to be given. The time stamp of the event is set to the actual time and the attribute quality is set to valid. The event is triggered with or without checking of the change event criteria depending on the configuration choosen with set_change_event().

Parameters:
attr_name The name of the attribute
p_data Pointer to the data to be pushed
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_change_event ( string  attr_name,
DevFailed *  except = NULL 
)

Push a change event for a state or status attribute or return an exception as change event for any attribute.

The event is pushed to the notification daemon.

The method needs the attribue name as input. For the state and status attributes the actual state and status values are pushed. In case of an exception, the exception is pushed as a change event for the attribute.

Parameters:
attr_name The name of the attribute
except Pointer to a Tango::DevFailed exception. Default value is NULL.

void Tango::DeviceImpl::push_data_ready_event ( const string &  attr_name,
Tango::DevLong  ctr = 0 
)

Push a data ready event for the attribute with name specified as the first parameter.

The event is pushed to the notification daemon.

The method needs only the attribue name and an optional "counter" which will be passed unchanged within the event

Parameters:
attr_name The name of the attribute
ctr The user counter
Exceptions:
DevFailed If the attribute name is unknown. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_event ( string  attr_name,
vector< string > &  filt_names,
vector< double > &  filt_vals,
Tango::DevString *  p_str_data,
Tango::DevUChar *  p_data,
long  size,
struct timeval &  t,
Tango::AttrQuality  qual,
bool  release = false 
)

Push a user event for an attribute with Tango::DevEncoded attribute data type when the string part and the data part of the DevEncoded data are specified separately.

The event is pushed to the notification daemon.

The method needs the attribue name, a pointer to the data to be pushed, the time stamp for the data and the attribute quality factor as input. Depending on the attribute type the dimensions x and why need to be given.

Parameters:
attr_name The name of the attribute
filt_names The filterable fields name
filt_vals The filterable fields value (as double)
p_str_data Pointer to the data string part
p_data Pointer to the data to be pushed
size The data number (pointed to by p_data)
t The time stamp
qual The attribute quality factor
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_event ( string  attr_name,
vector< string > &  filt_names,
vector< double > &  filt_vals,
Tango::DevEncoded *  p_data,
struct timeval &  t,
Tango::AttrQuality  qual,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push a user event for an attribute with Tango::DevEncoded attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name, a pointer to the data to be pushed, the time stamp for the data and the attribute quality factor as input. Depending on the attribute type the dimensions x and why need to be given.

Parameters:
attr_name The name of the attribute
filt_names The filterable fields name
filt_vals The filterable fields value (as double)
p_data Pointer to the data to be pushed
t The time stamp
qual The attribute quality factor
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_event ( string  attr_name,
vector< string > &  filt_names,
vector< double > &  filt_vals,
Tango::DevState *  p_data,
struct timeval &  t,
Tango::AttrQuality  qual,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push a user event for an attribute with Tango::DevState attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name, a pointer to the data to be pushed, the time stamp for the data and the attribute quality factor as input. Depending on the attribute type the dimensions x and why need to be given.

Parameters:
attr_name The name of the attribute
filt_names The filterable fields name
filt_vals The filterable fields value (as double)
p_data Pointer to the data to be pushed
t The time stamp
qual The attribute quality factor
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_event ( string  attr_name,
vector< string > &  filt_names,
vector< double > &  filt_vals,
Tango::DevULong64 *  p_data,
struct timeval &  t,
Tango::AttrQuality  qual,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push a user event for an attribute with Tango::DevULong64 attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name, a pointer to the data to be pushed, the time stamp for the data and the attribute quality factor as input. Depending on the attribute type the dimensions x and why need to be given.

Parameters:
attr_name The name of the attribute
filt_names The filterable fields name
filt_vals The filterable fields value (as double)
p_data Pointer to the data to be pushed
t The time stamp
qual The attribute quality factor
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_event ( string  attr_name,
vector< string > &  filt_names,
vector< double > &  filt_vals,
Tango::DevULong *  p_data,
struct timeval &  t,
Tango::AttrQuality  qual,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push a user event for an attribute with Tango::DevULong attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name, a pointer to the data to be pushed, the time stamp for the data and the attribute quality factor as input. Depending on the attribute type the dimensions x and why need to be given.

Parameters:
attr_name The name of the attribute
filt_names The filterable fields name
filt_vals The filterable fields value (as double)
p_data Pointer to the data to be pushed
t The time stamp
qual The attribute quality factor
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_event ( string  attr_name,
vector< string > &  filt_names,
vector< double > &  filt_vals,
Tango::DevUChar *  p_data,
struct timeval &  t,
Tango::AttrQuality  qual,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push a user event for an attribute with Tango::DevUChar attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name, a pointer to the data to be pushed, the time stamp for the data and the attribute quality factor as input. Depending on the attribute type the dimensions x and why need to be given.

Parameters:
attr_name The name of the attribute
filt_names The filterable fields name
filt_vals The filterable fields value (as double)
p_data Pointer to the data to be pushed
t The time stamp
qual The attribute quality factor
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_event ( string  attr_name,
vector< string > &  filt_names,
vector< double > &  filt_vals,
Tango::DevUShort *  p_data,
struct timeval &  t,
Tango::AttrQuality  qual,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push a user event for an attribute with Tango::DevUShort attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name, a pointer to the data to be pushed, the time stamp for the data and the attribute quality factor as input. Depending on the attribute type the dimensions x and why need to be given.

Parameters:
attr_name The name of the attribute
filt_names The filterable fields name
filt_vals The filterable fields value (as double)
p_data Pointer to the data to be pushed
t The time stamp
qual The attribute quality factor
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_event ( string  attr_name,
vector< string > &  filt_names,
vector< double > &  filt_vals,
Tango::DevBoolean *  p_data,
struct timeval &  t,
Tango::AttrQuality  qual,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push a user event for an attribute with Tango::DevBoolean attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name, a pointer to the data to be pushed, the time stamp for the data and the attribute quality factor as input. Depending on the attribute type the dimensions x and why need to be given.

Parameters:
attr_name The name of the attribute
filt_names The filterable fields name
filt_vals The filterable fields value (as double)
p_data Pointer to the data to be pushed
t The time stamp
qual The attribute quality factor
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_event ( string  attr_name,
vector< string > &  filt_names,
vector< double > &  filt_vals,
Tango::DevString *  p_data,
struct timeval &  t,
Tango::AttrQuality  qual,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push a user event for an attribute with Tango::DevString attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name, a pointer to the data to be pushed, the time stamp for the data and the attribute quality factor as input. Depending on the attribute type the dimensions x and why need to be given.

Parameters:
attr_name The name of the attribute
filt_names The filterable fields name
filt_vals The filterable fields value (as double)
p_data Pointer to the data to be pushed
t The time stamp
qual The attribute quality factor
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_event ( string  attr_name,
vector< string > &  filt_names,
vector< double > &  filt_vals,
Tango::DevDouble *  p_data,
struct timeval &  t,
Tango::AttrQuality  qual,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push a user event for an attribute with Tango::DevDouble attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name, a pointer to the data to be pushed, the time stamp for the data and the attribute quality factor as input. Depending on the attribute type the dimensions x and why need to be given.

Parameters:
attr_name The name of the attribute
filt_names The filterable fields name
filt_vals The filterable fields value (as double)
p_data Pointer to the data to be pushed
t The time stamp
qual The attribute quality factor
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_event ( string  attr_name,
vector< string > &  filt_names,
vector< double > &  filt_vals,
Tango::DevFloat *  p_data,
struct timeval &  t,
Tango::AttrQuality  qual,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push a user event for an attribute with Tango::DevFloat attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name, a pointer to the data to be pushed, the time stamp for the data and the attribute quality factor as input. Depending on the attribute type the dimensions x and why need to be given.

Parameters:
attr_name The name of the attribute
filt_names The filterable fields name
filt_vals The filterable fields value (as double)
p_data Pointer to the data to be pushed
t The time stamp
qual The attribute quality factor
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_event ( string  attr_name,
vector< string > &  filt_names,
vector< double > &  filt_vals,
Tango::DevLong64 *  p_data,
struct timeval &  t,
Tango::AttrQuality  qual,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push a user event for an attribute with Tango::DevLong64 attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name, a pointer to the data to be pushed, the time stamp for the data and the attribute quality factor as input. Depending on the attribute type the dimensions x and why need to be given.

Parameters:
attr_name The name of the attribute
filt_names The filterable fields name
filt_vals The filterable fields value (as double)
p_data Pointer to the data to be pushed
t The time stamp
qual The attribute quality factor
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_event ( string  attr_name,
vector< string > &  filt_names,
vector< double > &  filt_vals,
Tango::DevLong *  p_data,
struct timeval &  t,
Tango::AttrQuality  qual,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push a user event for an attribute with Tango::DevLong attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name, a pointer to the data to be pushed, the time stamp for the data and the attribute quality factor as input. Depending on the attribute type the dimensions x and why need to be given.

Parameters:
attr_name The name of the attribute
filt_names The filterable fields name
filt_vals The filterable fields value (as double)
p_data Pointer to the data to be pushed
t The time stamp
qual The attribute quality factor
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_event ( string  attr_name,
vector< string > &  filt_names,
vector< double > &  filt_vals,
Tango::DevShort *  p_data,
struct timeval &  t,
Tango::AttrQuality  qual,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push a user event for an attribute with Tango::DevShort attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name, a pointer to the data to be pushed, the time stamp for the data and the attribute quality factor as input. Depending on the attribute type the dimensions x and why need to be given.

Parameters:
attr_name The name of the attribute
filt_names The filterable fields name
filt_vals The filterable fields value (as double)
p_data Pointer to the data to be pushed
t The time stamp
qual The attribute quality factor
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_event ( string  attr_name,
vector< string > &  filt_names,
vector< double > &  filt_vals,
Tango::DevString *  p_str_data,
Tango::DevUChar *  p_data,
long  size,
bool  release = false 
)

Push a user event for an attribute with Tango::DevEncoded attribute data type when the attribute data are specified with 2 pointers.

The event is pushed to the notification daemon.

The method needs the attribue name and a pointer to the data to be pushed as input. Depending on the attribute type the dimensions x and why need to be given. The time stamp of the event is set to the actual time and the attribute quality is set to valid.

Parameters:
attr_name The name of the attribute
filt_names The filterable fields name
filt_vals The filterable fields value (as double)
p_str_data Pointer to the string sent with the data
p_data Pointer to the data to be pushed
size The data number (pointed to by p_data)
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_event ( string  attr_name,
vector< string > &  filt_names,
vector< double > &  filt_vals,
Tango::DevEncoded *  p_data,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push a user event for an attribute with Tango::DevEncoded attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name and a pointer to the data to be pushed as input. Depending on the attribute type the dimensions x and why need to be given. The time stamp of the event is set to the actual time and the attribute quality is set to valid.

Parameters:
attr_name The name of the attribute
filt_names The filterable fields name
filt_vals The filterable fields value (as double)
p_data Pointer to the data to be pushed
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_event ( string  attr_name,
vector< string > &  filt_names,
vector< double > &  filt_vals,
Tango::DevState *  p_data,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push a user event for an attribute with Tango::DevState attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name and a pointer to the data to be pushed as input. Depending on the attribute type the dimensions x and why need to be given. The time stamp of the event is set to the actual time and the attribute quality is set to valid.

Parameters:
attr_name The name of the attribute
filt_names The filterable fields name
filt_vals The filterable fields value (as double)
p_data Pointer to the data to be pushed
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_event ( string  attr_name,
vector< string > &  filt_names,
vector< double > &  filt_vals,
Tango::DevULong64 *  p_data,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push a user event for an attribute with Tango::DevULong64 attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name and a pointer to the data to be pushed as input. Depending on the attribute type the dimensions x and why need to be given. The time stamp of the event is set to the actual time and the attribute quality is set to valid.

Parameters:
attr_name The name of the attribute
filt_names The filterable fields name
filt_vals The filterable fields value (as double)
p_data Pointer to the data to be pushed
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_event ( string  attr_name,
vector< string > &  filt_names,
vector< double > &  filt_vals,
Tango::DevULong *  p_data,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push a user event for an attribute with Tango::DevULong attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name and a pointer to the data to be pushed as input. Depending on the attribute type the dimensions x and why need to be given. The time stamp of the event is set to the actual time and the attribute quality is set to valid.

Parameters:
attr_name The name of the attribute
filt_names The filterable fields name
filt_vals The filterable fields value (as double)
p_data Pointer to the data to be pushed
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_event ( string  attr_name,
vector< string > &  filt_names,
vector< double > &  filt_vals,
Tango::DevUChar *  p_data,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push a user event for an attribute with Tango::DevUChar attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name and a pointer to the data to be pushed as input. Depending on the attribute type the dimensions x and why need to be given. The time stamp of the event is set to the actual time and the attribute quality is set to valid.

Parameters:
attr_name The name of the attribute
filt_names The filterable fields name
filt_vals The filterable fields value (as double)
p_data Pointer to the data to be pushed
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_event ( string  attr_name,
vector< string > &  filt_names,
vector< double > &  filt_vals,
Tango::DevUShort *  p_data,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push a user event for an attribute with Tango::DevUShort attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name and a pointer to the data to be pushed as input. Depending on the attribute type the dimensions x and why need to be given. The time stamp of the event is set to the actual time and the attribute quality is set to valid.

Parameters:
attr_name The name of the attribute
filt_names The filterable fields name
filt_vals The filterable fields value (as double)
p_data Pointer to the data to be pushed
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_event ( string  attr_name,
vector< string > &  filt_names,
vector< double > &  filt_vals,
Tango::DevBoolean *  p_data,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push a user event for an attribute with Tango::DevBoolean attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name and a pointer to the data to be pushed as input. Depending on the attribute type the dimensions x and why need to be given. The time stamp of the event is set to the actual time and the attribute quality is set to valid.

Parameters:
attr_name The name of the attribute
filt_names The filterable fields name
filt_vals The filterable fields value (as double)
p_data Pointer to the data to be pushed
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_event ( string  attr_name,
vector< string > &  filt_names,
vector< double > &  filt_vals,
Tango::DevString *  p_data,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push a user event for an attribute with Tango::DevString attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name and a pointer to the data to be pushed as input. Depending on the attribute type the dimensions x and why need to be given. The time stamp of the event is set to the actual time and the attribute quality is set to valid.

Parameters:
attr_name The name of the attribute
filt_names The filterable fields name
filt_vals The filterable fields value (as double)
p_data Pointer to the data to be pushed
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_event ( string  attr_name,
vector< string > &  filt_names,
vector< double > &  filt_vals,
Tango::DevDouble *  p_data,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push a user event for an attribute with Tango::DevDouble attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name and a pointer to the data to be pushed as input. Depending on the attribute type the dimensions x and why need to be given. The time stamp of the event is set to the actual time and the attribute quality is set to valid.

Parameters:
attr_name The name of the attribute
filt_names The filterable fields name
filt_vals The filterable fields value (as double)
p_data Pointer to the data to be pushed
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_event ( string  attr_name,
vector< string > &  filt_names,
vector< double > &  filt_vals,
Tango::DevFloat *  p_data,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push a user event for an attribute with Tango::DevFloat attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name and a pointer to the data to be pushed as input. Depending on the attribute type the dimensions x and why need to be given. The time stamp of the event is set to the actual time and the attribute quality is set to valid.

Parameters:
attr_name The name of the attribute
filt_names The filterable fields name
filt_vals The filterable fields value (as double)
p_data Pointer to the data to be pushed
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_event ( string  attr_name,
vector< string > &  filt_names,
vector< double > &  filt_vals,
Tango::DevLong64 *  p_data,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push a user event for an attribute with Tango::DevLong64 attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name and a pointer to the data to be pushed as input. Depending on the attribute type the dimensions x and why need to be given. The time stamp of the event is set to the actual time and the attribute quality is set to valid.

Parameters:
attr_name The name of the attribute
filt_names The filterable fields name
filt_vals The filterable fields value (as double)
p_data Pointer to the data to be pushed
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_event ( string  attr_name,
vector< string > &  filt_names,
vector< double > &  filt_vals,
Tango::DevLong *  p_data,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push a user event for an attribute with Tango::DevLong attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name and a pointer to the data to be pushed as input. Depending on the attribute type the dimensions x and why need to be given. The time stamp of the event is set to the actual time and the attribute quality is set to valid.

Parameters:
attr_name The name of the attribute
filt_names The filterable fields name
filt_vals The filterable fields value (as double)
p_data Pointer to the data to be pushed
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_event ( string  attr_name,
vector< string > &  filt_names,
vector< double > &  filt_vals,
Tango::DevShort *  p_data,
long  x = 1,
long  y = 0,
bool  release = false 
)

Push a user event for an attribute with Tango::DevShort attribute data type.

The event is pushed to the notification daemon.

The method needs the attribue name and a pointer to the data to be pushed as input. Depending on the attribute type the dimensions x and why need to be given. The time stamp of the event is set to the actual time and the attribute quality is set to valid.

Parameters:
attr_name The name of the attribute
filt_names The filterable fields name
filt_vals The filterable fields value (as double)
p_data Pointer to the data to be pushed
x The attribute x length. Default value is 1
y The attribute y length. Default value is 0
release The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions:
DevFailed If the attribute data type is not coherent. Click here to read DevFailed exception specification

void Tango::DeviceImpl::push_event ( string  attr_name,
vector< string > &  filt_names,
vector< double > &  filt_vals,
DevFailed *  except = NULL 
)

Push a user event for a state or status attribute or return an exception as user event for any attribute.

The event is pushed to the notification daemon.

The method needs the attribue name as input. For the state and status attributes the actual state and status values are pushed. In case of an exception, the exception is pushed as a user event for the attribute.

Parameters:
attr_name The name of the attribute
filt_names The filterable fields name
filt_vals The filterable fields value (as double)
except Pointer to a Tango::DevFailed exception. Default value is NULL.

virtual void Tango::DeviceImpl::read_attr ( Attribute  )  [inline, virtual]

Set the attribute read value.

Default method to set an attribute read value. This method must be redefined in sub-classes when attributes are needed

Parameters:
attr The attribute object
Exceptions:
DevFailed This method does not throw exception but a redefined method can. Click here to read DevFailed exception specification

virtual void Tango::DeviceImpl::read_attr_hardware ( vector< long > &   )  [inline, virtual]

Read the hardware to return attribute value(s).

Default method to implement an action necessary on a device to read the hardware involved in a a read attribute CORBA call. This method must be redefined in sub-classes in order to support attribute reading

Parameters:
attr_list Reference to a vector with Integer object. Each element in this vector is the index in the device object attribute vector of an attribute to be read.
Exceptions:
DevFailed This method does not throw exception but a redefined method can. Click here to read DevFailed exception specification

virtual Tango::AttributeValueList* Tango::DeviceImpl::read_attributes ( const Tango::DevVarStringArray &  names  )  throw (Tango::DevFailed, CORBA::SystemException) [virtual]

Read attribute(s) value.

Invoked when the client request the read_attributes CORBA operation. It returns to the client one AttributeValue structure for each wanted attribute.

Parameters:
names The attribute(s) name list
Returns:
A sequence of AttributeValue structure. One structure is initialised for each wanted attribute with the attribute value, the date and the attribute value quality. Click here to read AttributeValue structure definition.
Exceptions:
DevFailed Thrown if the command does not exist. Click here to read DevFailed exception specification

void Tango::DeviceImpl::register_signal ( long  signo  ) 

Register a signal.

Register this device as device to be informed when signal signo is sent to to the device server process

Parameters:
signo The signal number
Exceptions:
DevFailed Thrown if the signal number is out of range or if the operating system failed to register a signal for the process. Click here to read DevFailed exception specification

void Tango::DeviceImpl::remove_attribute ( string &  rem_attr_name,
bool  free_it = false 
)

Remove one attribute from the device attribute list.

Attributes are normally constructed in the DeviceClass::attribute_factory() method. Nevertheless, it is still possible to add a new attribute to a device with the DeviceImpl::add_attribute method. This remove_Attribute method delete the attribute from the device attribute list.

Parameters:
rem_attr_name The name of the attribute to be removed
free_it Boolean set to true if the object passed as first argument must be freed. Default value is false.
Exceptions:
DevFailed Click here to read DevFailed exception specification

void Tango::DeviceImpl::remove_attribute ( Attr rem_attr,
bool  free_it = false 
)

Remove one attribute from the device attribute list.

Attributes are normally constructed in the DeviceClass::attribute_factory() method. Nevertheless, it is still possible to add a new attribute to a device with the DeviceImpl::add_attribute method. This remove_Attribute method delete the attribute from the device attribute list.

Parameters:
rem_attr Pointer to the attribute to be removed
free_it Boolean set to true if the object passed as first argument must be freed. Default value is false.
Exceptions:
DevFailed Click here to read DevFailed exception specification

void Tango::DeviceImpl::set_archive_event ( string  attr_name,
bool  implemented,
bool  detect = true 
)

Set an implemented flag for the attribute to indicate that the server fires archive events manually, without the polling to be started.

If the detect parameter is set to true, the criteria specified for the archive event are verified and the event is only pushed if they are fullfilled. If detect is set to false the event is fired without any value checking!

Parameters:
attr_name The name of the attribute
implemented True when the server fires archive events manually.
detect Triggers the verification of the archive event properties when set to true. Default value is true.

virtual void Tango::DeviceImpl::set_attribute_config ( const Tango::AttributeConfigList &  new_conf  )  throw (Tango::DevFailed, CORBA::SystemException) [virtual]

Set attribute(s) configuration.

Invoked when the client request the set_attribute_config CORBA operation. It updates the device attribute configuration actually used by the device but this method also updates the Tango database. One structure of the AttributeConfig type is needed for each attribute to update configuration. Click here to read AttributeConfig structure specification.

Parameters:
new_conf The attribute(s) new configuration structure sequence
Exceptions:
DevFailed Thrown if the command does not exist. Click here to read DevFailed exception specification

void Tango::DeviceImpl::set_change_event ( string  attr_name,
bool  implemented,
bool  detect = true 
)

Set an implemented flag for the attribute to indicate that the server fires change events manually, without the polling to be started.

If the detect parameter is set to true, the criteria specified for the change event are verified and the event is only pushed if they are fullfilled. If detect is set to false the event is fired without any value checking!

Parameters:
attr_name The name of the attribute
implemented True when the server fires change events manually.
detect Triggers the verification of the change event properties when set to true. Default value is true.

void Tango::DeviceImpl::set_d_var ( Tango::Device_ptr  d  )  [inline]

Set the associated CORBA object reference.

Set the associated CORBA object reference. Tango supports only a one to one servant-CORBA object link.

Parameters:
d The CORBA object reference

void Tango::DeviceImpl::set_device_attr ( MultiAttribute ptr  )  [inline]

Set device multi attribute object.

Set the pointer to the device multi attribute object

Returns:
Pointer to the device multi attribute object

void Tango::DeviceImpl::set_obj_id ( PortableServer::ObjectId_var  o  )  [inline]

Set the associated CORBA object identifier.

Set the associated CORBA object identifier.

Parameters:
o The CORBA object identifier

void Tango::DeviceImpl::set_state ( const Tango::DevState &  new_state  )  [inline]

Set device state.

Parameters:
new_state The new device state

void Tango::DeviceImpl::set_status ( const string &  new_status  )  [inline]

Set device status.

Parameters:
new_status The new device status

virtual void Tango::DeviceImpl::signal_handler ( long  signo  )  [virtual]

Signal handler.

The method executed when the signal arrived in the device server process. This method is defined as virtual and then, can be redefined following device needs.

Parameters:
signo The signal number

virtual Tango::DevState Tango::DeviceImpl::state (  )  throw (CORBA::SystemException) [virtual]

Get device state.

It's the master method executed when the device state is requested via a CORBA attribute. It updates the device black-box and return the device state. This method calls the state_cmd device method but catch all the execption and does not re-throw them because exception can't be thrown to a client for CORBA attribute

Returns:
The device state

virtual char* Tango::DeviceImpl::status (  )  throw (CORBA::SystemException) [virtual]

Get device status.

It's the master method executed when the device status is requested via a CORBA attribute. It updates the device black-box and return the device state. This method calls the status_cmd device method but catch all the execption and does not re-throw them because exception can't be thrown to a client for CORBA attribute

Returns:
The device status

void Tango::DeviceImpl::unregister_signal ( long  signo  ) 

Unregister a signal.

Unregister this device as device to be informed when signal signo is sent to to the device server process

Parameters:
signo The signal number
Exceptions:
DevFailed Thrown if the signal number is out of range or if the operating system failed to unregister a signal for the process. Unregister a device for a signal number for a device not previously registered is not an error. This simply will do nothing. Click here to read DevFailed exception specification

virtual void Tango::DeviceImpl::write_attr_hardware ( vector< long > &   )  [inline, virtual]

Write the hardware for attributes.

Default method to implement an action necessary on a device to write the hardware involved in a a write attribute. This method must be redefined in sub-classes in order to support writable attribute

Parameters:
attr_list Reference to a vector of Integer objects. Each element in this vector is the index in the main attribute vector of an attribute to be written.
Exceptions:
DevFailed This method does not throw exception but a redefined method can. Click here to read DevFailed exception specification

virtual void Tango::DeviceImpl::write_attributes ( const Tango::AttributeValueList &  values  )  throw (Tango::DevFailed, CORBA::SystemException) [virtual]

Write attribute(s) value.

Invoked when the client request the write_attributes CORBA operation. It sets the attribute(s) with the new value(s) passed as parameter.

Parameters:
values The attribute(s) new value(s). One structure is initialised for each wanted attribute with the attribute value. The attribute quality and date are not used by this method. Click here to read AttributeValue structure definition.
Exceptions:
DevFailed Thrown if the command does not exist. Click here to read DevFailed exception specification


The documentation for this class was generated from the following files:
Tango Device Server User's Guide



ALBA - Control Team / DESY - Hasylab Petra III

ELETTRA - Controls and Diagnostics / ESRF - Software Engineering Group

SOLEIL - Controle Commande et Acquisition / MAX-lab - MAX 4

FRM2 - Control group