Tango Core Classes Reference
9.3.3
|
Base class for all TANGO device. More...
#include "tango.h"
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... | |
DeviceClass * | get_device_class () |
Get device class singleton. More... | |
MultiAttribute * | get_device_attr () |
Get device multi attribute object. More... | |
void | set_device_attr (MultiAttribute *ptr) |
Set device multi attribute object. More... | |
DbDevice * | get_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. | |
DeviceClass * | device_class |
Pointer to the device-class object associated with the device. | |
MultiAttribute * | dev_attr |
Pointer to the multi attribute object. | |
DbDevice * | db_dev |
Pointer to the associated DbDevice object. | |
string | adm_device_name |
The administration device name. | |
Base class for all TANGO device.
This class inherits from CORBA classes where all the network layer is implemented.
$Author$ $Revision$
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
device_class | Pointer to the device class object |
dev_name | The device name |
Tango::DeviceImpl::DeviceImpl | ( | DeviceClass * | device_class, |
string & | dev_name, | ||
string & | desc | ||
) |
Constructs a newly allocated DeviceImpl object from its name and its description.
The device state is set to unknown and the device status is set to Not Initialised
device_class | Pointer to the device class object |
dev_name | The device name |
desc | The device description |
Tango::DeviceImpl::DeviceImpl | ( | DeviceClass * | device_class, |
string & | dev_name, | ||
string & | desc, | ||
Tango::DevState | dev_state, | ||
string & | dev_status | ||
) |
Constructs a newly allocated DeviceImpl object from all its creation parameters.
The device is constructed from its name, its description, an original state and status
device_class | Pointer to the device class object |
dev_name | The device name |
desc | The device description |
dev_state | The device initial state |
dev_status | The device initial status |
Tango::DeviceImpl::DeviceImpl | ( | DeviceClass * | device_class, |
const char * | dev_name, | ||
const char * | desc = "A TANGO device" , |
||
Tango::DevState | dev_state = Tango::UNKNOWN , |
||
const char * | dev_status = StatusNotSet |
||
) |
Constructs a newly allocated DeviceImpl object from all its creation parameters with some default values.
The device is constructed from its name, its description, an original state and status. This constructor defined default values for the description, state and status parameters. The default device description is A TANGO device. The default device state is UNKNOWN and the default device status is Not initialised.
device_class | Pointer to the device class object |
dev_name | The device name |
desc | The device desc |
dev_state | The device initial state |
dev_status | The device initial status |
|
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.
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.
new_attr | Pointer to the new attribute to be added to the list. This pointer must point to "heap" allocated memory (or to static memory) and not to "stack" allocated memory |
DevFailed | Click here to read DevFailed exception specification |
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.
new_cmd | Pointer 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 |
device | Set this flag to true if the command must be added for only this device Default is false (command added for the device class) |
DevFailed | Click here to read DevFailed exception specification |
|
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
DevFailed | This method does not throw exception but a redefined method can. Click here to read DevFailed exception specification |
|
inline |
Appends a string to the device status.
stat | The string to be appened to the device status |
new_line | If true, appends a new line character before the string |
References device_status.
|
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
ptr | Pointer to the basic type data buffer |
length | Number of element in the previous buffer |
|
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
ptr | Pointer to the basic type data buffer |
length | Number of element in the previous buffer |
|
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
ptr | Pointer to the basic type data buffer |
length | Number of element in the previous buffer |
|
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
ptr | Pointer to the basic type data buffer |
length | Number of element in the previous buffer |
|
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
ptr | Pointer to the basic type data buffer |
length | Number of element in the previous buffer |
|
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
ptr | Pointer to the basic type data buffer |
length | Number of element in the previous buffer |
|
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
ptr | Pointer to the basic type data buffer |
length | Number of element in the previous buffer |
|
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
ptr | Pointer to the basic type data buffer |
length | Number of element in the previous buffer |
|
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
ptr | Pointer to the basic type data buffer |
length | Number of element in the previous buffer |
|
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
ptr | Pointer to the basic type data buffer |
length | Number of element in the previous buffer |
|
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.
DevFailed | This method does not throw exception but a redefined method can. Click here to read DevFailed exception specification |
|
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
DevFailed | If it is necessary to read attribute(s) and a problem occurs during the reading. Click here to read DevFailed exception specification |
|
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
DevFailed | This method does not throw exception but a redefined method can. Click here to read DevFailed exception specification |
|
protected |
Get attribute polling period.
Returns attribute polling period (in mS) or 0 if the attribute is not polled
att_name | The attribute name |
|
protected |
Get command polling period.
Returns command polling period (in mS) or 0 if the command is not polled
cmd_name | The command name |
|
inline |
Get the associated CORBA object reference.
Get the associated CORBA object reference. Tango supports only a one to one servant-CORBA object link.
|
inline |
Get a pointer to the associated DbDevice object.
Return a pointer to DbDevice object associated with the device
References Tango::Util::_UseDb, db_dev, device_name, and Tango::Except::throw_exception().
|
inline |
Get device multi attribute object.
Return a pointer to the device multi attribute object
References dev_attr.
|
inline |
Get device class singleton.
Return the device class singleton (device_class field)
References device_class.
|
inline |
|
inline |
Get the associated CORBA object identifier.
Return the CORBA object identifier as a _var type variable
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).
obj_type | The object type (command or attribute) |
obj_name | The object name |
DevFailed | Thrown if the object is not found. Click here to read DevFailed exception specification |
|
inline |
Get device's previous state.
Return the device dev_prev_state field. This method is used for the on_state_change event
|
inline |
Get device state.
Return the device dev_state field. This method does the same thing than the default state_cmd method.
References device_state.
|
inline |
Get device status.
Return the device dev_status field. This method does the same thing than the default status_cmd method.
References device_status.
|
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.
DevFailed | This method does not throw exception but a redefined method can. Click here to read DevFailed exception specification |
|
protected |
Check if attribute is polled.
Returns true if attribute with name given as parameter is polled.
att_name | The attribute name |
|
protected |
Check if command is polled.
Returns true if command with name given as parameter is polled.
cmd_name | The command name |
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.
att_name | The attribute name |
event_type | The event type |
DevFailed | Thrown if the attribute is not found. Click here to read DevFailed exception specification |
|
protected |
Start polling one attribute.
Ask Tango polling system to poll one attribute
att_name | The attribute name |
period | The polling period (mS) |
|
protected |
Start polling a command.
Ask Tango polling system to poll a command
cmd_name | The command name |
period | The polling period (mS) |
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.
attr_name | The name of the attribute |
except | Pointer to a Tango::DevFailed exception. Default value is NULL. |
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().
attr_name | The name of the attribute |
p_data | Pointer to the data to be pushed |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_archive_event | ( | string | attr_name, |
Tango::DevBoolean * | p_data, | ||
struct timeval & | t, | ||
Tango::AttrQuality | qual, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push an archive event for an attribute with Tango::DevBoolean attribute data type.
The event is pushed to the 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().
attr_name | The name of the attribute |
p_data | Pointer to the data to be pushed |
t | The time stamp |
qual | The attribute quality factor |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_archive_event | ( | string | attr_name, |
Tango::DevDouble * | p_data, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push an archive event for an attribute with Tango::DevDouble attribute data type.
The event is pushed to the 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().
attr_name | The name of the attribute |
p_data | Pointer to the data to be pushed |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_archive_event | ( | string | attr_name, |
Tango::DevDouble * | p_data, | ||
struct timeval & | t, | ||
Tango::AttrQuality | qual, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push an archive event for an attribute with Tango::DevDouble attribute data type.
The event is pushed to the 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().
attr_name | The name of the attribute |
p_data | Pointer to the data to be pushed |
t | The time stamp |
qual | The attribute quality factor |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_archive_event | ( | string | attr_name, |
Tango::DevEncoded * | p_data, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push an archive event for an attribute with Tango::DevEncoded attribute data type.
The event is pushed to the 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().
attr_name | The name of the attribute |
p_data | Pointer to the data to be pushed |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_archive_event | ( | string | attr_name, |
Tango::DevEncoded * | p_data, | ||
struct timeval & | t, | ||
Tango::AttrQuality | qual, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push an archive event for an attribute with Tango::DevEncoded attribute data type.
The event is pushed to the 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().
attr_name | The name of the attribute |
p_data | Pointer to the data to be pushed |
t | The time stamp |
qual | The attribute quality factor |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_archive_event | ( | string | attr_name, |
Tango::DevFloat * | p_data, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push an archive event for an attribute with Tango::DevFloat attribute data type.
The event is pushed to the 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().
attr_name | The name of the attribute |
p_data | Pointer to the data to be pushed |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_archive_event | ( | string | attr_name, |
Tango::DevFloat * | p_data, | ||
struct timeval & | t, | ||
Tango::AttrQuality | qual, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push an archive event for an attribute with Tango::DevFloat attribute data type.
The event is pushed to the 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().
attr_name | The name of the attribute |
p_data | Pointer to the data to be pushed |
t | The time stamp |
qual | The attribute quality factor |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_archive_event | ( | string | attr_name, |
Tango::DevLong * | p_data, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push an archive event for an attribute with Tango::DevLong attribute data type.
The event is pushed to the 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().
attr_name | The name of the attribute |
p_data | Pointer to the data to be pushed |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_archive_event | ( | string | attr_name, |
Tango::DevLong * | p_data, | ||
struct timeval & | t, | ||
Tango::AttrQuality | qual, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push an archive event for an attribute with Tango::DevLong attribute data type.
The event is pushed to the 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().
attr_name | The name of the attribute |
p_data | Pointer to the data to be pushed |
t | The time stamp |
qual | The attribute quality factor |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_archive_event | ( | string | attr_name, |
Tango::DevLong64 * | p_data, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push an archive event for an attribute with Tango::DevLong64 attribute data type.
The event is pushed to the 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().
attr_name | The name of the attribute |
p_data | Pointer to the data to be pushed |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_archive_event | ( | string | attr_name, |
Tango::DevLong64 * | p_data, | ||
struct timeval & | t, | ||
Tango::AttrQuality | qual, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push an archive event for an attribute with Tango::DevLong64 attribute data type.
The event is pushed to the 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().
attr_name | The name of the attribute |
p_data | Pointer to the data to be pushed |
t | The time stamp |
qual | The attribute quality factor |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_archive_event | ( | string | attr_name, |
Tango::DevShort * | p_data, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push an archive event for an attribute with Tango::DevShort attribute data type.
The event is pushed to the 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().
attr_name | The name of the attribute |
p_data | Pointer to the data to be pushed |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_archive_event | ( | string | attr_name, |
Tango::DevShort * | p_data, | ||
struct timeval & | t, | ||
Tango::AttrQuality | qual, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push an archive event for an attribute with Tango::DevShort attribute data type.
The event is pushed to the 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().
attr_name | The name of the attribute |
p_data | Pointer to the data to be pushed |
t | The time stamp |
qual | The attribute quality factor |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_archive_event | ( | string | attr_name, |
Tango::DevState * | p_data, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push an archive event for an attribute with Tango::DevState attribute data type.
The event is pushed to the 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().
attr_name | The name of the attribute |
p_data | Pointer to the data to be pushed |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_archive_event | ( | string | attr_name, |
Tango::DevState * | p_data, | ||
struct timeval & | t, | ||
Tango::AttrQuality | qual, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push an archive event for an attribute with Tango::DevState attribute data type.
The event is pushed to the 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().
attr_name | The name of the attribute |
p_data | Pointer to the data to be pushed |
t | The time stamp |
qual | The attribute quality factor |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_archive_event | ( | string | attr_name, |
Tango::DevString * | p_data, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push an archive event for an attribute with Tango::DevString attribute data type.
The event is pushed to the 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().
attr_name | The name of the attribute |
p_data | Pointer to the data to be pushed |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_archive_event | ( | string | attr_name, |
Tango::DevString * | p_data, | ||
struct timeval & | t, | ||
Tango::AttrQuality | qual, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push an archive event for an attribute with Tango::DevString attribute data type.
The event is pushed to the 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().
attr_name | The name of the attribute |
p_data | Pointer to the data to be pushed |
t | The time stamp |
qual | The attribute quality factor |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_archive_event | ( | string | attr_name, |
Tango::DevString * | p_str_data, | ||
Tango::DevUChar * | p_data, | ||
long | size, | ||
bool | release = false |
||
) |
Push an archive event for an attribute with Tango::DevEncoded attribute data type when the data are specified using two pointers.
The event is pushed to the 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().
attr_name | The name of the attribute |
p_str_data | Pointer to the data string part to be pushed |
p_data | Pointer to the data part to be pushed |
size | Size of the data to be pushed (Pointed to by p_data) |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_archive_event | ( | string | attr_name, |
Tango::DevString * | p_str_data, | ||
Tango::DevUChar * | p_data, | ||
long | size, | ||
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().
attr_name | The name of the attribute |
p_str_data | Pointer to the data string part to be pushed |
p_data | Pointer to the data to be pushed |
size | Size of the data to be pushed (Pointed to by p_data) |
t | The time stamp |
qual | The attribute quality factor |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_archive_event | ( | string | attr_name, |
Tango::DevUChar * | p_data, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push an archive event for an attribute with Tango::DevUChar attribute data type.
The event is pushed to the 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().
attr_name | The name of the attribute |
p_data | Pointer to the data to be pushed |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_archive_event | ( | string | attr_name, |
Tango::DevUChar * | p_data, | ||
struct timeval & | t, | ||
Tango::AttrQuality | qual, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push an archive event for an attribute with Tango::DevUChar attribute data type.
The event is pushed to the 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().
attr_name | The name of the attribute |
p_data | Pointer to the data to be pushed |
t | The time stamp |
qual | The attribute quality factor |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_archive_event | ( | string | attr_name, |
Tango::DevULong * | p_data, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push an archive event for an attribute with Tango::DevULong attribute data type.
The event is pushed to the 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().
attr_name | The name of the attribute |
p_data | Pointer to the data to be pushed |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_archive_event | ( | string | attr_name, |
Tango::DevULong * | p_data, | ||
struct timeval & | t, | ||
Tango::AttrQuality | qual, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push an archive event for an attribute with Tango::DevULong attribute data type.
The event is pushed to the 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().
attr_name | The name of the attribute |
p_data | Pointer to the data to be pushed |
t | The time stamp |
qual | The attribute quality factor |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_archive_event | ( | string | attr_name, |
Tango::DevULong64 * | p_data, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push an archive event for an attribute with Tango::DevLong64 attribute data type.
The event is pushed to the 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().
attr_name | The name of the attribute |
p_data | Pointer to the data to be pushed |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_archive_event | ( | string | attr_name, |
Tango::DevULong64 * | p_data, | ||
struct timeval & | t, | ||
Tango::AttrQuality | qual, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push an archive event for an attribute with Tango::DevULong64 attribute data type.
The event is pushed to the 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().
attr_name | The name of the attribute |
p_data | Pointer to the data to be pushed |
t | The time stamp |
qual | The attribute quality factor |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_archive_event | ( | string | attr_name, |
Tango::DevUShort * | p_data, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push an archive event for an attribute with Tango::DevUShort attribute data type.
The event is pushed to the 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().
attr_name | The name of the attribute |
p_data | Pointer to the data to be pushed |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_archive_event | ( | string | attr_name, |
Tango::DevUShort * | p_data, | ||
struct timeval & | t, | ||
Tango::AttrQuality | qual, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push an archive event for an attribute with Tango::DevUShort attribute data type.
The event is pushed to the 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().
attr_name | The name of the attribute |
p_data | Pointer to the data to be pushed |
t | The time stamp |
qual | The attribute quality factor |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_change_event | ( | string | attr_name, |
DevFailed * | except = NULL |
||
) |
Push a change event for a state or status attribute or return an exception as change event for any attribute.
The event is pushed to the 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.
attr_name | The name of the attribute |
except | Pointer to a Tango::DevFailed exception. Default value is NULL. |
void Tango::DeviceImpl::push_change_event | ( | string | attr_name, |
Tango::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().
attr_name | The name of the attribute |
p_data | Pointer to the data to be pushed |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_change_event | ( | string | attr_name, |
Tango::DevBoolean * | p_data, | ||
struct timeval & | t, | ||
Tango::AttrQuality | qual, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push a change event for an attribute with Tango::DevBoolean attribute data type.
The event is pushed to the 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().
attr_name | The name of the attribute |
p_data | Pointer to the data to be pushed |
t | The time stamp |
qual | The attribute quality factor |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_change_event | ( | string | attr_name, |
Tango::DevDouble * | p_data, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push a change event for an attribute with Tango::DevDouble attribute data type.
The event is pushed to the 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().
attr_name | The name of the attribute |
p_data | Pointer to the data to be pushed |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_change_event | ( | string | attr_name, |
Tango::DevDouble * | p_data, | ||
struct timeval & | t, | ||
Tango::AttrQuality | qual, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push a change event for an attribute with Tango::DevDouble attribute data type.
The event is pushed to the 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().
attr_name | The name of the attribute |
p_data | Pointer to the data to be pushed |
t | The time stamp |
qual | The attribute quality factor |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_change_event | ( | string | attr_name, |
Tango::DevEncoded * | p_data, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push a change event for an attribute with Tango::DevEncoded attribute data type.
The event is pushed to the 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().
attr_name | The name of the attribute |
p_data | Pointer to the data to be pushed |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_change_event | ( | string | attr_name, |
Tango::DevEncoded * | p_data, | ||
struct timeval & | t, | ||
Tango::AttrQuality | qual, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push a change event for an attribute with Tango::DevEncoded attribute data type.
The event is pushed to the 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().
attr_name | The name of the attribute |
p_data | Pointer to the data to be pushed |
t | The time stamp |
qual | The attribute quality factor |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_change_event | ( | string | attr_name, |
Tango::DevFloat * | p_data, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push a change event for an attribute with Tango::DevFloat attribute data type.
The event is pushed to the 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().
attr_name | The name of the attribute |
p_data | Pointer to the data to be pushed |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_change_event | ( | string | attr_name, |
Tango::DevFloat * | p_data, | ||
struct timeval & | t, | ||
Tango::AttrQuality | qual, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push a change event for an attribute with Tango::DevFloat attribute data type.
The event is pushed to the 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().
attr_name | The name of the attribute |
p_data | Pointer to the data to be pushed |
t | The time stamp |
qual | The attribute quality factor |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_change_event | ( | string | attr_name, |
Tango::DevLong * | p_data, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push a change event for an attribute with Tango::DevLong attribute data type.
The event is pushed to the 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().
attr_name | The name of the attribute |
p_data | Pointer to the data to be pushed |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_change_event | ( | string | attr_name, |
Tango::DevLong * | p_data, | ||
struct timeval & | t, | ||
Tango::AttrQuality | qual, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push a change event for an attribute with Tango::DevLong attribute data type.
The event is pushed to the 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().
attr_name | The name of the attribute |
p_data | Pointer to the data to be pushed |
t | The time stamp |
qual | The attribute quality factor |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_change_event | ( | string | attr_name, |
Tango::DevLong64 * | p_data, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push a change event for an attribute with Tango::DevLong64 attribute data type.
The event is pushed to the 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().
attr_name | The name of the attribute |
p_data | Pointer to the data to be pushed |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_change_event | ( | string | attr_name, |
Tango::DevLong64 * | p_data, | ||
struct timeval & | t, | ||
Tango::AttrQuality | qual, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push a change event for an attribute with Tango::DevLong64 attribute data type.
The event is pushed to the 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().
attr_name | The name of the attribute |
p_data | Pointer to the data to be pushed |
t | The time stamp |
qual | The attribute quality factor |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_change_event | ( | string | attr_name, |
Tango::DevShort * | p_data, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push a change event for an attribute with Tango::DevShort attribute data type.
The event is pushed to the 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().
attr_name | The name of the attribute |
p_data | Pointer to the data to be pushed |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_change_event | ( | string | attr_name, |
Tango::DevShort * | p_data, | ||
struct timeval & | t, | ||
Tango::AttrQuality | qual, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push a change event for an attribute with Tango::DevShort attribute data type.
The event is pushed to the 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().
attr_name | The name of the attribute |
p_data | Pointer to the data to be pushed |
t | The time stamp |
qual | The attribute quality factor |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_change_event | ( | string | attr_name, |
Tango::DevState * | p_data, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push a change event for an attribute with Tango::DevState attribute data type.
The event is pushed to the 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().
attr_name | The name of the attribute |
p_data | Pointer to the data to be pushed |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_change_event | ( | string | attr_name, |
Tango::DevState * | p_data, | ||
struct timeval & | t, | ||
Tango::AttrQuality | qual, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push a change event for an attribute with Tango::DevState attribute data type.
The event is pushed to the 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().
attr_name | The name of the attribute |
p_data | Pointer to the data to be pushed |
t | The time stamp |
qual | The attribute quality factor |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_change_event | ( | string | attr_name, |
Tango::DevString * | p_data, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push a change event for an attribute with Tango::DevString attribute data type.
The event is pushed to the 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().
attr_name | The name of the attribute |
p_data | Pointer to the data to be pushed |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_change_event | ( | string | attr_name, |
Tango::DevString * | p_data, | ||
struct timeval & | t, | ||
Tango::AttrQuality | qual, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push a change event for an attribute with Tango::DevString attribute data type.
The event is pushed to the 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().
attr_name | The name of the attribute |
p_data | Pointer to the data to be pushed |
t | The time stamp |
qual | The attribute quality factor |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_change_event | ( | string | attr_name, |
Tango::DevString * | p_str_data, | ||
Tango::DevUChar * | p_data, | ||
long | size, | ||
bool | release = false |
||
) |
Push a change event for an attribute with Tango::DevEncoded attribute data type when the DevEncoded data are specified by two pointers.
The event is pushed to the 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().
attr_name | The name of the attribute |
p_str_data | Pointer to the data string part to be pushed |
p_data | Pointer to the data to be pushed |
size | The data number (pointed to by p_data) |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_change_event | ( | string | attr_name, |
Tango::DevString * | p_str_data, | ||
Tango::DevUChar * | p_data, | ||
long | size, | ||
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().
attr_name | The name of the attribute |
p_str_data | Pointer to the data string part to be pushed |
p_data | Pointer to the data to be pushed |
size | Size of the data to be ushed (pointed to be p_data |
t | The time stamp |
qual | The attribute quality factor |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_change_event | ( | string | attr_name, |
Tango::DevUChar * | p_data, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push a change event for an attribute with Tango::DevUChar attribute data type.
The event is pushed to the 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().
attr_name | The name of the attribute |
p_data | Pointer to the data to be pushed |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_change_event | ( | string | attr_name, |
Tango::DevUChar * | p_data, | ||
struct timeval & | t, | ||
Tango::AttrQuality | qual, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push a change event for an attribute with Tango::DevUChar attribute data type.
The event is pushed to the 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().
attr_name | The name of the attribute |
p_data | Pointer to the data to be pushed |
t | The time stamp |
qual | The attribute quality factor |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_change_event | ( | string | attr_name, |
Tango::DevULong * | p_data, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push a change event for an attribute with Tango::DevULong attribute data type.
The event is pushed to the 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().
attr_name | The name of the attribute |
p_data | Pointer to the data to be pushed |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_change_event | ( | string | attr_name, |
Tango::DevULong * | p_data, | ||
struct timeval & | t, | ||
Tango::AttrQuality | qual, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push a change event for an attribute with Tango::DevULong attribute data type.
The event is pushed to the 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().
attr_name | The name of the attribute |
p_data | Pointer to the data to be pushed |
t | The time stamp |
qual | The attribute quality factor |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_change_event | ( | string | attr_name, |
Tango::DevULong64 * | p_data, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push a change event for an attribute with Tango::DevULong64 attribute data type.
The event is pushed to the 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().
attr_name | The name of the attribute |
p_data | Pointer to the data to be pushed |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_change_event | ( | string | attr_name, |
Tango::DevULong64 * | p_data, | ||
struct timeval & | t, | ||
Tango::AttrQuality | qual, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push a change event for an attribute with Tango::DevULong64 attribute data type.
The event is pushed to the 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().
attr_name | The name of the attribute |
p_data | Pointer to the data to be pushed |
t | The time stamp |
qual | The attribute quality factor |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_change_event | ( | string | attr_name, |
Tango::DevUShort * | p_data, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
void push_change_event (string attr_name, Tango::DevBoolea Push a change event for an attribute with Tango::DevUShort attribute data type.
The event is pushed to the 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().
attr_name | The name of the attribute |
p_data | Pointer to the data to be pushed |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_change_event | ( | string | attr_name, |
Tango::DevUShort * | p_data, | ||
struct timeval & | t, | ||
Tango::AttrQuality | qual, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push a change event for an attribute with Tango::DevUShort attribute data type.
The event is pushed to the 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().
attr_name | The name of the attribute |
p_data | Pointer to the data to be pushed |
t | The time stamp |
qual | The attribute quality factor |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
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
attr_name | The name of the attribute |
ctr | The user counter |
DevFailed | If the attribute name is unknown. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_event | ( | string | attr_name, |
vector< string > & | filt_names, | ||
vector< double > & | filt_vals, | ||
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.
attr_name | The name of the attribute |
filt_names | The filterable fields name |
filt_vals | The filterable fields value (as double) |
except | Pointer to a Tango::DevFailed exception. Default value is NULL. |
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.
attr_name | The name of the attribute |
filt_names | The filterable fields name |
filt_vals | The filterable fields value (as double) |
p_data | Pointer to the data to be pushed |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_event | ( | string | attr_name, |
vector< string > & | filt_names, | ||
vector< double > & | filt_vals, | ||
Tango::DevBoolean * | p_data, | ||
struct timeval & | t, | ||
Tango::AttrQuality | qual, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push a user event for an attribute with Tango::DevBoolean attribute data type.
The event is pushed to the 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.
attr_name | The name of the attribute |
filt_names | The filterable fields name |
filt_vals | The filterable fields value (as double) |
p_data | Pointer to the data to be pushed |
t | The time stamp |
qual | The attribute quality factor |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_event | ( | string | attr_name, |
vector< string > & | filt_names, | ||
vector< double > & | filt_vals, | ||
Tango::DevDouble * | p_data, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push a user event for an attribute with Tango::DevDouble attribute data type.
The event is pushed to the 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.
attr_name | The name of the attribute |
filt_names | The filterable fields name |
filt_vals | The filterable fields value (as double) |
p_data | Pointer to the data to be pushed |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_event | ( | string | attr_name, |
vector< string > & | filt_names, | ||
vector< double > & | filt_vals, | ||
Tango::DevDouble * | p_data, | ||
struct timeval & | t, | ||
Tango::AttrQuality | qual, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push a user event for an attribute with Tango::DevDouble attribute data type.
The event is pushed to the 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.
attr_name | The name of the attribute |
filt_names | The filterable fields name |
filt_vals | The filterable fields value (as double) |
p_data | Pointer to the data to be pushed |
t | The time stamp |
qual | The attribute quality factor |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_event | ( | string | attr_name, |
vector< string > & | filt_names, | ||
vector< double > & | filt_vals, | ||
Tango::DevEncoded * | p_data, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push a user event for an attribute with Tango::DevEncoded attribute data type.
The event is pushed to the 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.
attr_name | The name of the attribute |
filt_names | The filterable fields name |
filt_vals | The filterable fields value (as double) |
p_data | Pointer to the data to be pushed |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_event | ( | string | attr_name, |
vector< string > & | filt_names, | ||
vector< double > & | filt_vals, | ||
Tango::DevEncoded * | p_data, | ||
struct timeval & | t, | ||
Tango::AttrQuality | qual, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push a user event for an attribute with Tango::DevEncoded attribute data type.
The event is pushed to the 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.
attr_name | The name of the attribute |
filt_names | The filterable fields name |
filt_vals | The filterable fields value (as double) |
p_data | Pointer to the data to be pushed |
t | The time stamp |
qual | The attribute quality factor |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_event | ( | string | attr_name, |
vector< string > & | filt_names, | ||
vector< double > & | filt_vals, | ||
Tango::DevFloat * | p_data, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push a user event for an attribute with Tango::DevFloat attribute data type.
The event is pushed to the 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.
attr_name | The name of the attribute |
filt_names | The filterable fields name |
filt_vals | The filterable fields value (as double) |
p_data | Pointer to the data to be pushed |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_event | ( | string | attr_name, |
vector< string > & | filt_names, | ||
vector< double > & | filt_vals, | ||
Tango::DevFloat * | p_data, | ||
struct timeval & | t, | ||
Tango::AttrQuality | qual, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push a user event for an attribute with Tango::DevFloat attribute data type.
The event is pushed to the 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.
attr_name | The name of the attribute |
filt_names | The filterable fields name |
filt_vals | The filterable fields value (as double) |
p_data | Pointer to the data to be pushed |
t | The time stamp |
qual | The attribute quality factor |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_event | ( | string | attr_name, |
vector< string > & | filt_names, | ||
vector< double > & | filt_vals, | ||
Tango::DevLong * | p_data, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push a user event for an attribute with Tango::DevLong attribute data type.
The event is pushed to the 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.
attr_name | The name of the attribute |
filt_names | The filterable fields name |
filt_vals | The filterable fields value (as double) |
p_data | Pointer to the data to be pushed |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_event | ( | string | attr_name, |
vector< string > & | filt_names, | ||
vector< double > & | filt_vals, | ||
Tango::DevLong * | p_data, | ||
struct timeval & | t, | ||
Tango::AttrQuality | qual, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push a user event for an attribute with Tango::DevLong attribute data type.
The event is pushed to the 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.
attr_name | The name of the attribute |
filt_names | The filterable fields name |
filt_vals | The filterable fields value (as double) |
p_data | Pointer to the data to be pushed |
t | The time stamp |
qual | The attribute quality factor |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_event | ( | string | attr_name, |
vector< string > & | filt_names, | ||
vector< double > & | filt_vals, | ||
Tango::DevLong64 * | p_data, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push a user event for an attribute with Tango::DevLong64 attribute data type.
The event is pushed to the 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.
attr_name | The name of the attribute |
filt_names | The filterable fields name |
filt_vals | The filterable fields value (as double) |
p_data | Pointer to the data to be pushed |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_event | ( | string | attr_name, |
vector< string > & | filt_names, | ||
vector< double > & | filt_vals, | ||
Tango::DevLong64 * | p_data, | ||
struct timeval & | t, | ||
Tango::AttrQuality | qual, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push a user event for an attribute with Tango::DevLong64 attribute data type.
The event is pushed to the 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.
attr_name | The name of the attribute |
filt_names | The filterable fields name |
filt_vals | The filterable fields value (as double) |
p_data | Pointer to the data to be pushed |
t | The time stamp |
qual | The attribute quality factor |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_event | ( | string | attr_name, |
vector< string > & | filt_names, | ||
vector< double > & | filt_vals, | ||
Tango::DevShort * | p_data, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push a user event for an attribute with Tango::DevShort attribute data type.
The event is pushed to the 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.
attr_name | The name of the attribute |
filt_names | The filterable fields name |
filt_vals | The filterable fields value (as double) |
p_data | Pointer to the data to be pushed |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_event | ( | string | attr_name, |
vector< string > & | filt_names, | ||
vector< double > & | filt_vals, | ||
Tango::DevShort * | p_data, | ||
struct timeval & | t, | ||
Tango::AttrQuality | qual, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push a user event for an attribute with Tango::DevShort attribute data type.
The event is pushed to the 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.
attr_name | The name of the attribute |
filt_names | The filterable fields name |
filt_vals | The filterable fields value (as double) |
p_data | Pointer to the data to be pushed |
t | The time stamp |
qual | The attribute quality factor |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_event | ( | string | attr_name, |
vector< string > & | filt_names, | ||
vector< double > & | filt_vals, | ||
Tango::DevState * | p_data, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push a user event for an attribute with Tango::DevState attribute data type.
The event is pushed to the 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.
attr_name | The name of the attribute |
filt_names | The filterable fields name |
filt_vals | The filterable fields value (as double) |
p_data | Pointer to the data to be pushed |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_event | ( | string | attr_name, |
vector< string > & | filt_names, | ||
vector< double > & | filt_vals, | ||
Tango::DevState * | p_data, | ||
struct timeval & | t, | ||
Tango::AttrQuality | qual, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push a user event for an attribute with Tango::DevState attribute data type.
The event is pushed to the 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.
attr_name | The name of the attribute |
filt_names | The filterable fields name |
filt_vals | The filterable fields value (as double) |
p_data | Pointer to the data to be pushed |
t | The time stamp |
qual | The attribute quality factor |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_event | ( | string | attr_name, |
vector< string > & | filt_names, | ||
vector< double > & | filt_vals, | ||
Tango::DevString * | p_data, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push a user event for an attribute with Tango::DevString attribute data type.
The event is pushed to the 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.
attr_name | The name of the attribute |
filt_names | The filterable fields name |
filt_vals | The filterable fields value (as double) |
p_data | Pointer to the data to be pushed |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_event | ( | string | attr_name, |
vector< string > & | filt_names, | ||
vector< double > & | filt_vals, | ||
Tango::DevString * | p_data, | ||
struct timeval & | t, | ||
Tango::AttrQuality | qual, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push a user event for an attribute with Tango::DevString attribute data type.
The event is pushed to the 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.
attr_name | The name of the attribute |
filt_names | The filterable fields name |
filt_vals | The filterable fields value (as double) |
p_data | Pointer to the data to be pushed |
t | The time stamp |
qual | The attribute quality factor |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_event | ( | string | attr_name, |
vector< string > & | filt_names, | ||
vector< double > & | filt_vals, | ||
Tango::DevString * | p_str_data, | ||
Tango::DevUChar * | p_data, | ||
long | size, | ||
bool | release = false |
||
) |
Push a user event for an attribute with Tango::DevEncoded attribute data type when the attribute data are specified with 2 pointers.
The event is pushed to the 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.
attr_name | The name of the attribute |
filt_names | The filterable fields name |
filt_vals | The filterable fields value (as double) |
p_str_data | Pointer to the string sent with the data |
p_data | Pointer to the data to be pushed |
size | The data number (pointed to by p_data) |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_event | ( | string | attr_name, |
vector< string > & | filt_names, | ||
vector< double > & | filt_vals, | ||
Tango::DevString * | p_str_data, | ||
Tango::DevUChar * | p_data, | ||
long | size, | ||
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.
attr_name | The name of the attribute |
filt_names | The filterable fields name |
filt_vals | The filterable fields value (as double) |
p_str_data | Pointer to the data string part |
p_data | Pointer to the data to be pushed |
size | The data number (pointed to by p_data) |
t | The time stamp |
qual | The attribute quality factor |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_event | ( | string | attr_name, |
vector< string > & | filt_names, | ||
vector< double > & | filt_vals, | ||
Tango::DevUChar * | p_data, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push a user event for an attribute with Tango::DevUChar attribute data type.
The event is pushed to the 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.
attr_name | The name of the attribute |
filt_names | The filterable fields name |
filt_vals | The filterable fields value (as double) |
p_data | Pointer to the data to be pushed |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_event | ( | string | attr_name, |
vector< string > & | filt_names, | ||
vector< double > & | filt_vals, | ||
Tango::DevUChar * | p_data, | ||
struct timeval & | t, | ||
Tango::AttrQuality | qual, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push a user event for an attribute with Tango::DevUChar attribute data type.
The event is pushed to the 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.
attr_name | The name of the attribute |
filt_names | The filterable fields name |
filt_vals | The filterable fields value (as double) |
p_data | Pointer to the data to be pushed |
t | The time stamp |
qual | The attribute quality factor |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_event | ( | string | attr_name, |
vector< string > & | filt_names, | ||
vector< double > & | filt_vals, | ||
Tango::DevULong * | p_data, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push a user event for an attribute with Tango::DevULong attribute data type.
The event is pushed to the 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.
attr_name | The name of the attribute |
filt_names | The filterable fields name |
filt_vals | The filterable fields value (as double) |
p_data | Pointer to the data to be pushed |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_event | ( | string | attr_name, |
vector< string > & | filt_names, | ||
vector< double > & | filt_vals, | ||
Tango::DevULong * | p_data, | ||
struct timeval & | t, | ||
Tango::AttrQuality | qual, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push a user event for an attribute with Tango::DevULong attribute data type.
The event is pushed to the 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.
attr_name | The name of the attribute |
filt_names | The filterable fields name |
filt_vals | The filterable fields value (as double) |
p_data | Pointer to the data to be pushed |
t | The time stamp |
qual | The attribute quality factor |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_event | ( | string | attr_name, |
vector< string > & | filt_names, | ||
vector< double > & | filt_vals, | ||
Tango::DevULong64 * | p_data, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push a user event for an attribute with Tango::DevULong64 attribute data type.
The event is pushed to the 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.
attr_name | The name of the attribute |
filt_names | The filterable fields name |
filt_vals | The filterable fields value (as double) |
p_data | Pointer to the data to be pushed |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_event | ( | string | attr_name, |
vector< string > & | filt_names, | ||
vector< double > & | filt_vals, | ||
Tango::DevULong64 * | p_data, | ||
struct timeval & | t, | ||
Tango::AttrQuality | qual, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push a user event for an attribute with Tango::DevULong64 attribute data type.
The event is pushed to the 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.
attr_name | The name of the attribute |
filt_names | The filterable fields name |
filt_vals | The filterable fields value (as double) |
p_data | Pointer to the data to be pushed |
t | The time stamp |
qual | The attribute quality factor |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_event | ( | string | attr_name, |
vector< string > & | filt_names, | ||
vector< double > & | filt_vals, | ||
Tango::DevUShort * | p_data, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push a user event for an attribute with Tango::DevUShort attribute data type.
The event is pushed to the 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.
attr_name | The name of the attribute |
filt_names | The filterable fields name |
filt_vals | The filterable fields value (as double) |
p_data | Pointer to the data to be pushed |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::push_event | ( | string | attr_name, |
vector< string > & | filt_names, | ||
vector< double > & | filt_vals, | ||
Tango::DevUShort * | p_data, | ||
struct timeval & | t, | ||
Tango::AttrQuality | qual, | ||
long | x = 1 , |
||
long | y = 0 , |
||
bool | release = false |
||
) |
Push a user event for an attribute with Tango::DevUShort attribute data type.
The event is pushed to the 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.
attr_name | The name of the attribute |
filt_names | The filterable fields name |
filt_vals | The filterable fields value (as double) |
p_data | Pointer to the data to be pushed |
t | The time stamp |
qual | The attribute quality factor |
x | The attribute x length. Default value is 1 |
y | The attribute y length. Default value is 0 |
release | The release flag. If true, memory pointed to by p_data will be freed after being send to the client. Default value is false. |
DevFailed | If the attribute data type is not coherent. Click here to read DevFailed exception specification |
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.
pipe_name | The name of the pipe |
except | Pointer to a Tango::DevFailed exception. |
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.
pipe_name | The name of the pipe |
p_data | Pointer to the Pipe blob to be sent with the event |
reuse_it | Flag 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 |
DevFailed | If the pipe data type is not coherent. Click here to read DevFailed exception specification |
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.
pipe_name | The name of the pipe |
p_data | Pointer to the data to be pushed |
t | The time stamp |
reuse_it | Flag 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 |
DevFailed | If the pipe data type is not coherent. Click here to read DevFailed exception specification |
|
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
attr | The attribute object |
DevFailed | This method does not throw exception but a redefined method can. Click here to read DevFailed exception specification |
|
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
attr_list | Reference to a vector with Integer object. Each element in this vector is the index in the device object attribute vector of an attribute to be read. |
DevFailed | This method does not throw exception but a redefined method can. Click here to read DevFailed exception specification |
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.
signo | The signal number |
own_handler | A 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 |
DevFailed | Thrown if the signal number is out of range or if the operating system failed to register a signal for the process. Click here to read DevFailed exception specification |
void Tango::DeviceImpl::remove_attribute | ( | 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.
rem_attr | Pointer to the attribute to be removed |
free_it | Boolean set to true if the object passed as first argument must be freed. Default value is false. |
clean_db | Clean all attributes related information (included polling info if the attribute is polled) from database. Default value is true |
DevFailed | Click here to read DevFailed exception specification |
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.
rem_attr_name | The name of the attribute to be removed |
free_it | Boolean set to true if the attribute object must be freed. Default value is false. |
clean_db | Clean all attributes related information (included polling info if the attribute is polled) from database. Default value is true |
DevFailed | Click here to read DevFailed exception specification |
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.
rem_cmd | Pointer to the command to be removed |
free_it | Boolean set to true if the object passed as first argument must be freed. Default value is false. |
clean_db | Clean command related information (included polling info if the command is polled) from database. Default value is true |
DevFailed | Click here to read DevFailed exception specification |
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.
rem_cmd_name | The name of the command to be removed |
free_it | Boolean set to true if the command object must be freed. Default value is false. |
clean_db | Clean command related information (included polling info if the command is polled) from database. Default value is true |
DevFailed | Click here to read DevFailed exception specification |
void Tango::DeviceImpl::set_archive_event | ( | string | attr_name, |
bool | implemented, | ||
bool | detect = true |
||
) |
Set an implemented flag for the attribute to indicate that the server fires archive events manually, without the polling to be started.
If the detect parameter is set to true, the criteria specified for the archive event are verified and the event is only pushed if they are fulfilled. If detect is set to false the event is fired without any value checking!
attr_name | The name of the attribute |
implemented | True when the server fires archive events manually. |
detect | Triggers the verification of the archive event properties when set to true. Default value is true. |
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!
attr_name | The name of the attribute |
implemented | True when the server fires change events manually. |
detect | Triggers the verification of the change event properties when set to true. Default value is true. |
|
inline |
Set the associated CORBA object reference.
Set the associated CORBA object reference. Tango supports only a one to one servant-CORBA object link.
d | The CORBA object reference |
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.
attr_name | The name of the attribute |
implemented | True when the server fires data ready event. |
|
inline |
Set device multi attribute object.
Set the pointer to the device multi attribute object
References dev_attr.
|
inline |
Set the associated CORBA object identifier.
Set the associated CORBA object identifier.
o | The CORBA object identifier |
|
inline |
|
inline |
|
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.
signo | The signal number |
|
protected |
Stop polling one attribute.
Ask Tango polling system to stop polling one attribute
att_name | The attribute name |
|
protected |
Stop polling one command.
Ask Tango polling system to stop polling one command
cmd_name | The command name |
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
signo | The signal number |
DevFailed | Thrown if the signal number is out of range or if the operating system failed to unregister a signal for the process. Unregister a device for a signal number for a device not previously registered is not an error. This simply will do nothing. Click here to read DevFailed exception specification |
|
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
attr_list | Reference to a vector of Integer objects. Each element in this vector is the index in the main attribute vector of an attribute to be written. |
DevFailed | This method does not throw exception but a redefined method can. Click here to read DevFailed exception specification |