Tango Core Classes Reference  9.3.3
Tango::DeviceImpl Class Referenceabstract

Base class for all TANGO device. More...

#include "tango.h"

Inheritance diagram for Tango::DeviceImpl:
Collaboration diagram for Tango::DeviceImpl:

Public Member Functions

Constructors

Miscellaneous constructors

 DeviceImpl (DeviceClass *device_class, string &dev_name)
 Constructs a newly allocated DeviceImpl object from its name. More...
 
 DeviceImpl (DeviceClass *device_class, string &dev_name, string &desc)
 Constructs a newly allocated DeviceImpl object from its name and its description. More...
 
 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. More...
 
 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. More...
 
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. More...
 
void set_status (const string &new_status)
 Set device status. More...
 
void append_status (const string &stat, bool new_line=false)
 Appends a string to the device status. More...
 
Tango::DevState & get_state ()
 Get device state. More...
 
Tango::DevState & get_prev_state ()
 Get device's previous state. More...
 
void set_state (const Tango::DevState &new_state)
 Set device state. More...
 
string & get_name ()
 Get device name. More...
 
DeviceClassget_device_class ()
 Get device class singleton. More...
 
MultiAttributeget_device_attr ()
 Get device multi attribute object. More...
 
void set_device_attr (MultiAttribute *ptr)
 Set device multi attribute object. More...
 
DbDeviceget_db_device ()
 Get a pointer to the associated DbDevice object. More...
 
void set_d_var (Tango::Device_ptr d)
 Set the associated CORBA object reference. More...
 
Tango::Device_var get_d_var ()
 Get the associated CORBA object reference. More...
 
void set_obj_id (PortableServer::ObjectId_var o)
 Set the associated CORBA object identifier. More...
 
PortableServer::ObjectId_var & get_obj_id ()
 Get the associated CORBA object identifier. More...
 
virtual PortableServer::POA_ptr _default_POA ()
 Return device POA. More...
 
Miscellaneous methods
virtual void init_device ()=0
 Intialise a device. More...
 
virtual void delete_device ()
 Delete a device. More...
 
virtual void always_executed_hook (void)
 Hook method. More...
 
virtual void read_attr_hardware (vector< long > &attr_list)
 Read the hardware to return attribute value(s). More...
 
virtual void read_attr (Attribute &attr)
 Set the attribute read value. More...
 
virtual void write_attr_hardware (vector< long > &attr_list)
 Write the hardware for attributes. More...
 
virtual Tango::DevState dev_state ()
 Get device state. More...
 
virtual Tango::ConstDevString dev_status ()
 Get device status. More...
 
void add_attribute (Attr *new_attr)
 Add a new attribute to the device attribute list. More...
 
void remove_attribute (Attr *rem_attr, bool free_it=false, bool clean_db=true)
 Remove one attribute from the device attribute list. More...
 
void remove_attribute (string &rem_attr_name, bool free_it=false, bool clean_db=true)
 Remove one attribute from the device attribute list. More...
 
void add_command (Command *new_cmd, bool device=false)
 Add a new command to the device command list. More...
 
void remove_command (Command *rem_cmd, bool free_it=false, bool clean_db=true)
 Remove one command from the device command list. More...
 
void remove_command (const string &rem_cmd_name, bool free_it=false, bool clean_db=true)
 Remove one command from the device command list. More...
 
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. More...
 
bool is_there_subscriber (const string &att_name, EventType event_type)
 Check if there is subscriber(s) listening for the event. More...
 
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. More...
 
Tango::DevVarShortArray * create_DevVarShortArray (short *ptr, long length)
 Create a DevVarShortArray type. More...
 
Tango::DevVarLongArray * create_DevVarLongArray (DevLong *ptr, long length)
 Create a DevVarLongArray type. More...
 
Tango::DevVarLong64Array * create_DevVarLong64Array (DevLong64 *ptr, long length)
 Create a DevVarLong64Array type. More...
 
Tango::DevVarFloatArray * create_DevVarFloatArray (float *ptr, long length)
 Create a DevVarFloatArray type. More...
 
Tango::DevVarDoubleArray * create_DevVarDoubleArray (double *ptr, long length)
 Create a DevVarDoubleArray type. More...
 
Tango::DevVarUShortArray * create_DevVarUShortArray (unsigned short *ptr, long length)
 Create a DevVarUShortArray type. More...
 
Tango::DevVarULongArray * create_DevVarULongArray (DevULong *ptr, long length)
 Create a DevVarULongArray type. More...
 
Tango::DevVarULong64Array * create_DevVarULong64Array (DevULong64 *ptr, long length)
 Create a DevVarULong64Array type. More...
 
Tango::DevVarStringArray * create_DevVarStringArray (char **ptr, long length)
 Create a DevVarStringArray type. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
void push_archive_event (string attr_name, DevFailed *except=NULL)
 Push an archive event for state or status attribute or push an exception as archive event for any attribute. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
Push data ready event methods

This method allows the user to push a data ready event

void set_data_ready_event (string attr_name, bool implemented)
 Set an implemented flag for the attribute to indicate that the server fires data ready event for this attribute. More...
 
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. More...
 
Push pipe event methods.

These methods allow to fire pipe events

void push_pipe_event (const string &pipe_name, DevFailed *except)
 Push a pipe event with exception data as value The method needs the pipe name as input. More...
 
void push_pipe_event (const string &pipe_name, Tango::DevicePipeBlob *p_data, bool reuse_it=false)
 Push a pipe event. More...
 
void push_pipe_event (const string &pipe_name, Tango::DevicePipeBlob *p_data, struct timeval &t, bool reuse_it=false)
 Push a pipe event with a specified timestamp. More...
 
Signal related methods

These methods allow a signal management at device level

void register_signal (long signo, bool own_handler=false)
 Register a signal to be executed in a signal handler. More...
 
void unregister_signal (long signo)
 Unregister a signal. More...
 
virtual void signal_handler (long signo)
 Signal handler. More...
 

Protected Member Functions

Polling related methods
bool is_attribute_polled (const string &att_name)
 Check if attribute is polled. More...
 
bool is_command_polled (const string &cmd_name)
 Check if command is polled. More...
 
int get_attribute_poll_period (const string &att_name)
 Get attribute polling period. More...
 
int get_command_poll_period (const string &cmd_name)
 Get command polling period. More...
 
void poll_attribute (const string &att_name, int period)
 Start polling one attribute. More...
 
void poll_command (const string &cmd_name, int period)
 Start polling a command. More...
 
void stop_poll_attribute (const string &att_name)
 Stop polling one attribute. More...
 
void stop_poll_command (const string &cmd_name)
 Stop polling one command. More...
 

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.
 
DbDevicedb_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$ $Revision$

Constructor & Destructor Documentation

◆ DeviceImpl() [1/4]

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_classPointer to the device class object
dev_nameThe device name

◆ DeviceImpl() [2/4]

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_classPointer to the device class object
dev_nameThe device name
descThe device description

◆ DeviceImpl() [3/4]

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_classPointer to the device class object
dev_nameThe device name
descThe device description
dev_stateThe device initial state
dev_statusThe device initial status

◆ DeviceImpl() [4/4]

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_classPointer to the device class object
dev_nameThe device name
descThe device desc
dev_stateThe device initial state
dev_statusThe device initial status

Member Function Documentation

◆ _default_POA()

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

◆ add_attribute()

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_attrPointer 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
DevFailedClick here to read DevFailed exception specification

◆ add_command()

void Tango::DeviceImpl::add_command ( Command new_cmd,
bool  device = false 
)

Add a new command to the device command list.

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

Parameters
new_cmdPointer to the new command to be added to the list. This pointer must point to "heap" allocated memory (or to static memory) and not to "stack" allocated memory
deviceSet this flag to true if the command must be added for only this device Default is false (command added for the device class)
Exceptions
DevFailedClick here to read DevFailed exception specification

◆ always_executed_hook()

virtual void Tango::DeviceImpl::always_executed_hook ( void  )
inlinevirtual

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 fulfill the needs

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

◆ append_status()

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

Appends a string to the device status.

Parameters
statThe string to be appened to the device status
new_lineIf true, appends a new line character before the string

References device_status.

◆ create_DevVarCharArray()

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
ptrPointer to the basic type data buffer
lengthNumber of element in the previous buffer
Returns
Pointer to the created DevVarCharArray type data

◆ create_DevVarDoubleArray()

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
ptrPointer to the basic type data buffer
lengthNumber of element in the previous buffer
Returns
Pointer to the created DevVarDoubleArray type data

◆ create_DevVarFloatArray()

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
ptrPointer to the basic type data buffer
lengthNumber of element in the previous buffer
Returns
Pointer to the created DevVarFloatArray type data

◆ create_DevVarLong64Array()

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
ptrPointer to the basic type data buffer
lengthNumber of element in the previous buffer
Returns
Pointer to the created DevVarLong64Array type data

◆ create_DevVarLongArray()

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
ptrPointer to the basic type data buffer
lengthNumber of element in the previous buffer
Returns
Pointer to the created DevVarLongArray type data

◆ create_DevVarShortArray()

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
ptrPointer to the basic type data buffer
lengthNumber of element in the previous buffer
Returns
Pointer to the created DevVarShortArray type data

◆ create_DevVarStringArray()

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
ptrPointer to the basic type data buffer
lengthNumber of element in the previous buffer
Returns
Pointer to the created DevVarStringArray type data

◆ create_DevVarULong64Array()

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
ptrPointer to the basic type data buffer
lengthNumber of element in the previous buffer
Returns
Pointer to the created DevVarULong64Array type data

◆ create_DevVarULongArray()

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
ptrPointer to the basic type data buffer
lengthNumber of element in the previous buffer
Returns
Pointer to the created DevVarULongArray type data

◆ create_DevVarUShortArray()

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
ptrPointer to the basic type data buffer
lengthNumber of element in the previous buffer
Returns
Pointer to the created DevVarUShortArray type data

◆ delete_device()

virtual void Tango::DeviceImpl::delete_device ( )
inlinevirtual

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
DevFailedThis method does not throw exception but a redefined method can. Click here to read DevFailed exception specification

◆ dev_state()

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 the other device state, this method simply returns the state This method can be redefined in sub-classes in case of the default behaviour does not fulfill the needs

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

◆ dev_status()

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 fulfill the needs

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

◆ get_attribute_poll_period()

int Tango::DeviceImpl::get_attribute_poll_period ( const string &  att_name)
protected

Get attribute polling period.

Returns attribute polling period (in mS) or 0 if the attribute is not polled

Parameters
att_nameThe attribute name
Returns
The attribute polling period in mS

◆ get_command_poll_period()

int Tango::DeviceImpl::get_command_poll_period ( const string &  cmd_name)
protected

Get command polling period.

Returns command polling period (in mS) or 0 if the command is not polled

Parameters
cmd_nameThe command name
Returns
The command polling period in mS

◆ get_d_var()

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

◆ get_db_device()

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

References Tango::Util::_UseDb, db_dev, device_name, and Tango::Except::throw_exception().

◆ get_device_attr()

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

References dev_attr.

◆ get_device_class()

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

References device_class.

◆ get_name()

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

Get device name.

Return the device name (dev_name field)

Returns
Device name

References device_name.

◆ get_obj_id()

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

◆ get_polled_obj_by_type_name()

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_typeThe object type (command or attribute)
obj_nameThe object name
Returns
An iterator pointing to the polled object in the polled object list
Exceptions
DevFailedThrown if the object is not found. Click here to read DevFailed exception specification

◆ get_prev_state()

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

◆ get_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

References device_state.

◆ get_status()

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

References device_status.

◆ init_device()

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
DevFailedThis method does not throw exception but a redefined method can. Click here to read DevFailed exception specification

◆ is_attribute_polled()

bool Tango::DeviceImpl::is_attribute_polled ( const string &  att_name)
protected

Check if attribute is polled.

Returns true if attribute with name given as parameter is polled.

Parameters
att_nameThe attribute name
Returns
Boolean set to true if attribute is polled

◆ is_command_polled()

bool Tango::DeviceImpl::is_command_polled ( const string &  cmd_name)
protected

Check if command is polled.

Returns true if command with name given as parameter is polled.

Parameters
cmd_nameThe command name
Returns
Boolean set to true if command is polled

◆ is_there_subscriber()

bool Tango::DeviceImpl::is_there_subscriber ( const string &  att_name,
EventType  event_type 
)

Check if there is subscriber(s) listening for the event.

This method returns a boolean set to true if there are some subscriber(s) listening on the event specified by the two method arguments. Be aware that there is some delay (up to 600 sec) between this method returning false and the last subscriber unsubscription or crash... The device interface change event is not supported by this method.

Parameters
att_nameThe attribute name
event_typeThe event type
Returns
A boolean set to true if there are some subscriber listening on this event
Exceptions
DevFailedThrown if the attribute is not found. Click here to read DevFailed exception specification

◆ poll_attribute()

void Tango::DeviceImpl::poll_attribute ( const string &  att_name,
int  period 
)
protected

Start polling one attribute.

Ask Tango polling system to poll one attribute

Parameters
att_nameThe attribute name
periodThe polling period (mS)

◆ poll_command()

void Tango::DeviceImpl::poll_command ( const string &  cmd_name,
int  period 
)
protected

Start polling a command.

Ask Tango polling system to poll a command

Parameters
cmd_nameThe command name
periodThe polling period (mS)

◆ push_archive_event() [1/29]

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

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

The event is pushed to the event system.

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_nameThe name of the attribute
exceptPointer to a Tango::DevFailed exception. Default value is NULL.

◆ push_archive_event() [2/29]

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 event system.

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_nameThe name of the attribute
p_dataPointer to the data to be pushed
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_archive_event() [3/29]

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 event system.

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_nameThe name of the attribute
p_dataPointer to the data to be pushed
tThe time stamp
qualThe attribute quality factor
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_archive_event() [4/29]

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 event system.

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_nameThe name of the attribute
p_dataPointer to the data to be pushed
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_archive_event() [5/29]

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 event system.

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_nameThe name of the attribute
p_dataPointer to the data to be pushed
tThe time stamp
qualThe attribute quality factor
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_archive_event() [6/29]

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 event system.

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_nameThe name of the attribute
p_dataPointer to the data to be pushed
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_archive_event() [7/29]

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 event system.

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_nameThe name of the attribute
p_dataPointer to the data to be pushed
tThe time stamp
qualThe attribute quality factor
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_archive_event() [8/29]

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 event system.

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_nameThe name of the attribute
p_dataPointer to the data to be pushed
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_archive_event() [9/29]

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 event system.

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_nameThe name of the attribute
p_dataPointer to the data to be pushed
tThe time stamp
qualThe attribute quality factor
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_archive_event() [10/29]

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 event system.

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_nameThe name of the attribute
p_dataPointer to the data to be pushed
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_archive_event() [11/29]

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 event system.

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_nameThe name of the attribute
p_dataPointer to the data to be pushed
tThe time stamp
qualThe attribute quality factor
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_archive_event() [12/29]

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 event system.

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_nameThe name of the attribute
p_dataPointer to the data to be pushed
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_archive_event() [13/29]

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 event system.

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_nameThe name of the attribute
p_dataPointer to the data to be pushed
tThe time stamp
qualThe attribute quality factor
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_archive_event() [14/29]

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 event system.

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_nameThe name of the attribute
p_dataPointer to the data to be pushed
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_archive_event() [15/29]

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 event system.

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_nameThe name of the attribute
p_dataPointer to the data to be pushed
tThe time stamp
qualThe attribute quality factor
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_archive_event() [16/29]

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 event system.

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_nameThe name of the attribute
p_dataPointer to the data to be pushed
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_archive_event() [17/29]

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 event system.

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_nameThe name of the attribute
p_dataPointer to the data to be pushed
tThe time stamp
qualThe attribute quality factor
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_archive_event() [18/29]

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 event system.

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_nameThe name of the attribute
p_dataPointer to the data to be pushed
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_archive_event() [19/29]

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 event system.

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_nameThe name of the attribute
p_dataPointer to the data to be pushed
tThe time stamp
qualThe attribute quality factor
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_archive_event() [20/29]

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 event system.

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_nameThe name of the attribute
p_str_dataPointer to the data string part to be pushed
p_dataPointer to the data part to be pushed
sizeSize of the data to be pushed (Pointed to by p_data)
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_archive_event() [21/29]

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 event system.

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_nameThe name of the attribute
p_str_dataPointer to the data string part to be pushed
p_dataPointer to the data to be pushed
sizeSize of the data to be pushed (Pointed to by p_data)
tThe time stamp
qualThe attribute quality factor
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_archive_event() [22/29]

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 event system.

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_nameThe name of the attribute
p_dataPointer to the data to be pushed
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_archive_event() [23/29]

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 event system.

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_nameThe name of the attribute
p_dataPointer to the data to be pushed
tThe time stamp
qualThe attribute quality factor
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_archive_event() [24/29]

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 event system.

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_nameThe name of the attribute
p_dataPointer to the data to be pushed
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_archive_event() [25/29]

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 event system.

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_nameThe name of the attribute
p_dataPointer to the data to be pushed
tThe time stamp
qualThe attribute quality factor
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_archive_event() [26/29]

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 event system.

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_nameThe name of the attribute
p_dataPointer to the data to be pushed
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_archive_event() [27/29]

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 event system.

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_nameThe name of the attribute
p_dataPointer to the data to be pushed
tThe time stamp
qualThe attribute quality factor
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_archive_event() [28/29]

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 event system.

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_nameThe name of the attribute
p_dataPointer to the data to be pushed
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_archive_event() [29/29]

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 event system.

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_nameThe name of the attribute
p_dataPointer to the data to be pushed
tThe time stamp
qualThe attribute quality factor
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_change_event() [1/29]

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 event system.

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_nameThe name of the attribute
exceptPointer to a Tango::DevFailed exception. Default value is NULL.

◆ push_change_event() [2/29]

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 event system.

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_nameThe name of the attribute
p_dataPointer to the data to be pushed
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_change_event() [3/29]

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 event system.

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_nameThe name of the attribute
p_dataPointer to the data to be pushed
tThe time stamp
qualThe attribute quality factor
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_change_event() [4/29]

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 event system.

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_nameThe name of the attribute
p_dataPointer to the data to be pushed
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_change_event() [5/29]

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 event system.

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_nameThe name of the attribute
p_dataPointer to the data to be pushed
tThe time stamp
qualThe attribute quality factor
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_change_event() [6/29]

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 event system.

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_nameThe name of the attribute
p_dataPointer to the data to be pushed
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_change_event() [7/29]

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 event system.

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_nameThe name of the attribute
p_dataPointer to the data to be pushed
tThe time stamp
qualThe attribute quality factor
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_change_event() [8/29]

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 event system.

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_nameThe name of the attribute
p_dataPointer to the data to be pushed
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_change_event() [9/29]

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 event system.

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_nameThe name of the attribute
p_dataPointer to the data to be pushed
tThe time stamp
qualThe attribute quality factor
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_change_event() [10/29]

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 event system.

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_nameThe name of the attribute
p_dataPointer to the data to be pushed
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_change_event() [11/29]

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 event system.

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_nameThe name of the attribute
p_dataPointer to the data to be pushed
tThe time stamp
qualThe attribute quality factor
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_change_event() [12/29]

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 event system.

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_nameThe name of the attribute
p_dataPointer to the data to be pushed
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_change_event() [13/29]

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 event system.

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_nameThe name of the attribute
p_dataPointer to the data to be pushed
tThe time stamp
qualThe attribute quality factor
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_change_event() [14/29]

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 event system.

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_nameThe name of the attribute
p_dataPointer to the data to be pushed
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_change_event() [15/29]

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 event system.

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_nameThe name of the attribute
p_dataPointer to the data to be pushed
tThe time stamp
qualThe attribute quality factor
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_change_event() [16/29]

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 event system.

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_nameThe name of the attribute
p_dataPointer to the data to be pushed
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_change_event() [17/29]

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 event system.

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_nameThe name of the attribute
p_dataPointer to the data to be pushed
tThe time stamp
qualThe attribute quality factor
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_change_event() [18/29]

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 event system.

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_nameThe name of the attribute
p_dataPointer to the data to be pushed
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_change_event() [19/29]

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 event system.

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_nameThe name of the attribute
p_dataPointer to the data to be pushed
tThe time stamp
qualThe attribute quality factor
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_change_event() [20/29]

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 event system.

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_nameThe name of the attribute
p_str_dataPointer to the data string part to be pushed
p_dataPointer to the data to be pushed
sizeThe data number (pointed to by p_data)
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_change_event() [21/29]

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 event system.

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_nameThe name of the attribute
p_str_dataPointer to the data string part to be pushed
p_dataPointer to the data to be pushed
sizeSize of the data to be ushed (pointed to be p_data
tThe time stamp
qualThe attribute quality factor
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_change_event() [22/29]

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 event system.

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_nameThe name of the attribute
p_dataPointer to the data to be pushed
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_change_event() [23/29]

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 event system.

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_nameThe name of the attribute
p_dataPointer to the data to be pushed
tThe time stamp
qualThe attribute quality factor
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_change_event() [24/29]

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 event system.

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_nameThe name of the attribute
p_dataPointer to the data to be pushed
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_change_event() [25/29]

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 event system.

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_nameThe name of the attribute
p_dataPointer to the data to be pushed
tThe time stamp
qualThe attribute quality factor
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_change_event() [26/29]

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 event system.

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_nameThe name of the attribute
p_dataPointer to the data to be pushed
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_change_event() [27/29]

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 event system.

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_nameThe name of the attribute
p_dataPointer to the data to be pushed
tThe time stamp
qualThe attribute quality factor
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_change_event() [28/29]

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 event system.

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_nameThe name of the attribute
p_dataPointer to the data to be pushed
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_change_event() [29/29]

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 event system.

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_nameThe name of the attribute
p_dataPointer to the data to be pushed
tThe time stamp
qualThe attribute quality factor
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_data_ready_event()

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 event system.

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

Parameters
attr_nameThe name of the attribute
ctrThe user counter
Exceptions
DevFailedIf the attribute name is unknown. Click here to read DevFailed exception specification

◆ push_event() [1/29]

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 event system.

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_nameThe name of the attribute
filt_namesThe filterable fields name
filt_valsThe filterable fields value (as double)
exceptPointer to a Tango::DevFailed exception. Default value is NULL.

◆ push_event() [2/29]

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 event system.

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_nameThe name of the attribute
filt_namesThe filterable fields name
filt_valsThe filterable fields value (as double)
p_dataPointer to the data to be pushed
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_event() [3/29]

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 event system.

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_nameThe name of the attribute
filt_namesThe filterable fields name
filt_valsThe filterable fields value (as double)
p_dataPointer to the data to be pushed
tThe time stamp
qualThe attribute quality factor
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_event() [4/29]

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 event system.

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_nameThe name of the attribute
filt_namesThe filterable fields name
filt_valsThe filterable fields value (as double)
p_dataPointer to the data to be pushed
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_event() [5/29]

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 event system.

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_nameThe name of the attribute
filt_namesThe filterable fields name
filt_valsThe filterable fields value (as double)
p_dataPointer to the data to be pushed
tThe time stamp
qualThe attribute quality factor
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_event() [6/29]

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 event system.

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_nameThe name of the attribute
filt_namesThe filterable fields name
filt_valsThe filterable fields value (as double)
p_dataPointer to the data to be pushed
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_event() [7/29]

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 event system.

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_nameThe name of the attribute
filt_namesThe filterable fields name
filt_valsThe filterable fields value (as double)
p_dataPointer to the data to be pushed
tThe time stamp
qualThe attribute quality factor
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_event() [8/29]

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 event system.

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_nameThe name of the attribute
filt_namesThe filterable fields name
filt_valsThe filterable fields value (as double)
p_dataPointer to the data to be pushed
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_event() [9/29]

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 event system.

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_nameThe name of the attribute
filt_namesThe filterable fields name
filt_valsThe filterable fields value (as double)
p_dataPointer to the data to be pushed
tThe time stamp
qualThe attribute quality factor
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_event() [10/29]

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 event system.

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_nameThe name of the attribute
filt_namesThe filterable fields name
filt_valsThe filterable fields value (as double)
p_dataPointer to the data to be pushed
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_event() [11/29]

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 event system.

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_nameThe name of the attribute
filt_namesThe filterable fields name
filt_valsThe filterable fields value (as double)
p_dataPointer to the data to be pushed
tThe time stamp
qualThe attribute quality factor
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_event() [12/29]

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 event system.

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_nameThe name of the attribute
filt_namesThe filterable fields name
filt_valsThe filterable fields value (as double)
p_dataPointer to the data to be pushed
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_event() [13/29]

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 event system.

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_nameThe name of the attribute
filt_namesThe filterable fields name
filt_valsThe filterable fields value (as double)
p_dataPointer to the data to be pushed
tThe time stamp
qualThe attribute quality factor
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_event() [14/29]

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 event system.

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_nameThe name of the attribute
filt_namesThe filterable fields name
filt_valsThe filterable fields value (as double)
p_dataPointer to the data to be pushed
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_event() [15/29]

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 event system.

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_nameThe name of the attribute
filt_namesThe filterable fields name
filt_valsThe filterable fields value (as double)
p_dataPointer to the data to be pushed
tThe time stamp
qualThe attribute quality factor
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_event() [16/29]

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 event system.

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_nameThe name of the attribute
filt_namesThe filterable fields name
filt_valsThe filterable fields value (as double)
p_dataPointer to the data to be pushed
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_event() [17/29]

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 event system.

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_nameThe name of the attribute
filt_namesThe filterable fields name
filt_valsThe filterable fields value (as double)
p_dataPointer to the data to be pushed
tThe time stamp
qualThe attribute quality factor
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_event() [18/29]

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 event system.

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_nameThe name of the attribute
filt_namesThe filterable fields name
filt_valsThe filterable fields value (as double)
p_dataPointer to the data to be pushed
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_event() [19/29]

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 event system.

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_nameThe name of the attribute
filt_namesThe filterable fields name
filt_valsThe filterable fields value (as double)
p_dataPointer to the data to be pushed
tThe time stamp
qualThe attribute quality factor
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_event() [20/29]

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 event system.

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_nameThe name of the attribute
filt_namesThe filterable fields name
filt_valsThe filterable fields value (as double)
p_str_dataPointer to the string sent with the data
p_dataPointer to the data to be pushed
sizeThe data number (pointed to by p_data)
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_event() [21/29]

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 event system.

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_nameThe name of the attribute
filt_namesThe filterable fields name
filt_valsThe filterable fields value (as double)
p_str_dataPointer to the data string part
p_dataPointer to the data to be pushed
sizeThe data number (pointed to by p_data)
tThe time stamp
qualThe attribute quality factor
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_event() [22/29]

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 event system.

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_nameThe name of the attribute
filt_namesThe filterable fields name
filt_valsThe filterable fields value (as double)
p_dataPointer to the data to be pushed
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_event() [23/29]

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 event system.

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_nameThe name of the attribute
filt_namesThe filterable fields name
filt_valsThe filterable fields value (as double)
p_dataPointer to the data to be pushed
tThe time stamp
qualThe attribute quality factor
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_event() [24/29]

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 event system.

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_nameThe name of the attribute
filt_namesThe filterable fields name
filt_valsThe filterable fields value (as double)
p_dataPointer to the data to be pushed
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_event() [25/29]

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 event system.

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_nameThe name of the attribute
filt_namesThe filterable fields name
filt_valsThe filterable fields value (as double)
p_dataPointer to the data to be pushed
tThe time stamp
qualThe attribute quality factor
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_event() [26/29]

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 event system.

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_nameThe name of the attribute
filt_namesThe filterable fields name
filt_valsThe filterable fields value (as double)
p_dataPointer to the data to be pushed
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_event() [27/29]

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 event system.

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_nameThe name of the attribute
filt_namesThe filterable fields name
filt_valsThe filterable fields value (as double)
p_dataPointer to the data to be pushed
tThe time stamp
qualThe attribute quality factor
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_event() [28/29]

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 event system.

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_nameThe name of the attribute
filt_namesThe filterable fields name
filt_valsThe filterable fields value (as double)
p_dataPointer to the data to be pushed
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_event() [29/29]

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 event system.

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_nameThe name of the attribute
filt_namesThe filterable fields name
filt_valsThe filterable fields value (as double)
p_dataPointer to the data to be pushed
tThe time stamp
qualThe attribute quality factor
xThe attribute x length. Default value is 1
yThe attribute y length. Default value is 0
releaseThe release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false.
Exceptions
DevFailedIf the attribute data type is not coherent. Click here to read DevFailed exception specification

◆ push_pipe_event() [1/3]

void Tango::DeviceImpl::push_pipe_event ( const string &  pipe_name,
DevFailed *  except 
)

Push a pipe event with exception data as value The method needs the pipe name as input.

Parameters
pipe_nameThe name of the pipe
exceptPointer to a Tango::DevFailed exception.

◆ push_pipe_event() [2/3]

void Tango::DeviceImpl::push_pipe_event ( const string &  pipe_name,
Tango::DevicePipeBlob p_data,
bool  reuse_it = false 
)

Push a pipe event.

The method needs the pipe name and a pointer to the pipe blob to be pushed as input. The time stamp of the event is set to the actual time.

Parameters
pipe_nameThe name of the pipe
p_dataPointer to the Pipe blob to be sent with the event
reuse_itFlag set to true if you don want the push_pipe_event to consume Pipe internal memory. Default value is false which covers 95% of use cases
Exceptions
DevFailedIf the pipe data type is not coherent. Click here to read DevFailed exception specification

◆ push_pipe_event() [3/3]

void Tango::DeviceImpl::push_pipe_event ( const string &  pipe_name,
Tango::DevicePipeBlob p_data,
struct timeval &  t,
bool  reuse_it = false 
)

Push a pipe event with a specified timestamp.

The method needs the pipe name, a pointer to the pipe blob to be pushed and the time stamp for the data as input.

Parameters
pipe_nameThe name of the pipe
p_dataPointer to the data to be pushed
tThe time stamp
reuse_itFlag set to true if you don want the push_pipe_event to consume Pipe internal memory. Default value is false which covers 95% of use cases
Exceptions
DevFailedIf the pipe data type is not coherent. Click here to read DevFailed exception specification

◆ read_attr()

virtual void Tango::DeviceImpl::read_attr ( Attribute attr)
inlinevirtual

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
attrThe attribute object
Exceptions
DevFailedThis method does not throw exception but a redefined method can. Click here to read DevFailed exception specification

◆ read_attr_hardware()

virtual void Tango::DeviceImpl::read_attr_hardware ( vector< long > &  attr_list)
inlinevirtual

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_listReference 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
DevFailedThis method does not throw exception but a redefined method can. Click here to read DevFailed exception specification

◆ register_signal()

void Tango::DeviceImpl::register_signal ( long  signo,
bool  own_handler = false 
)

Register a signal to be executed in a signal handler.

Register this device as device to be informed when signal signo is sent to to the device server process. This method is available only under Linux.

Parameters
signoThe signal number
own_handlerA boolean set to true if you want the device signal handler to be executed in its own handler instead of being executed by the signal thread. If this parameter is set to true, care should be taken on how the handler is written. A default false value is provided
Exceptions
DevFailedThrown 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

◆ remove_attribute() [1/2]

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

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_attrPointer to the attribute to be removed
free_itBoolean set to true if the object passed as first argument must be freed. Default value is false.
clean_dbClean all attributes related information (included polling info if the attribute is polled) from database. Default value is true
Exceptions
DevFailedClick here to read DevFailed exception specification

◆ remove_attribute() [2/2]

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

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_nameThe name of the attribute to be removed
free_itBoolean set to true if the attribute object must be freed. Default value is false.
clean_dbClean all attributes related information (included polling info if the attribute is polled) from database. Default value is true
Exceptions
DevFailedClick here to read DevFailed exception specification

◆ remove_command() [1/2]

void Tango::DeviceImpl::remove_command ( Command rem_cmd,
bool  free_it = false,
bool  clean_db = true 
)

Remove one command from the device command list.

Commands are normally constructed in the DeviceClass::command_factory() method. Nevertheless, it is still possible to add a new command to a device with the DeviceImpl::add_command method. This remove_command method delete the command from the device command list.

Parameters
rem_cmdPointer to the command to be removed
free_itBoolean set to true if the object passed as first argument must be freed. Default value is false.
clean_dbClean command related information (included polling info if the command is polled) from database. Default value is true
Exceptions
DevFailedClick here to read DevFailed exception specification

◆ remove_command() [2/2]

void Tango::DeviceImpl::remove_command ( const string &  rem_cmd_name,
bool  free_it = false,
bool  clean_db = true 
)

Remove one command from the device command list.

Commands are normally constructed in the DeviceClass::command_factory() method. Nevertheless, it is still possible to add a new command to a device with the DeviceImpl::add_command method. This remove_command method delete the command from the device command list.

Parameters
rem_cmd_nameThe name of the command to be removed
free_itBoolean set to true if the command object must be freed. Default value is false.
clean_dbClean command related information (included polling info if the command is polled) from database. Default value is true
Exceptions
DevFailedClick here to read DevFailed exception specification

◆ set_archive_event()

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 fulfilled. If detect is set to false the event is fired without any value checking!

Parameters
attr_nameThe name of the attribute
implementedTrue when the server fires archive events manually.
detectTriggers the verification of the archive event properties when set to true. Default value is true.

◆ set_change_event()

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 fulfilled. If detect is set to false the event is fired without any value checking!

Parameters
attr_nameThe name of the attribute
implementedTrue when the server fires change events manually.
detectTriggers the verification of the change event properties when set to true. Default value is true.

◆ set_d_var()

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
dThe CORBA object reference

◆ set_data_ready_event()

void Tango::DeviceImpl::set_data_ready_event ( string  attr_name,
bool  implemented 
)

Set an implemented flag for the attribute to indicate that the server fires data ready event for this attribute.

Parameters
attr_nameThe name of the attribute
implementedTrue when the server fires data ready event.

◆ set_device_attr()

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

References dev_attr.

◆ set_obj_id()

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

Set the associated CORBA object identifier.

Set the associated CORBA object identifier.

Parameters
oThe CORBA object identifier

◆ set_state()

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

Set device state.

Parameters
new_stateThe new device state

References device_state.

◆ set_status()

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

Set device status.

Parameters
new_statusThe new device status

References device_status.

◆ signal_handler()

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
signoThe signal number

◆ stop_poll_attribute()

void Tango::DeviceImpl::stop_poll_attribute ( const string &  att_name)
protected

Stop polling one attribute.

Ask Tango polling system to stop polling one attribute

Parameters
att_nameThe attribute name

◆ stop_poll_command()

void Tango::DeviceImpl::stop_poll_command ( const string &  cmd_name)
protected

Stop polling one command.

Ask Tango polling system to stop polling one command

Parameters
cmd_nameThe command name

◆ unregister_signal()

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
signoThe signal number
Exceptions
DevFailedThrown 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

◆ write_attr_hardware()

virtual void Tango::DeviceImpl::write_attr_hardware ( vector< long > &  attr_list)
inlinevirtual

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_listReference 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
DevFailedThis method does not throw exception but a redefined method can. Click here to read DevFailed exception specification

The documentation for this class was generated from the following files: