Logo Search packages:      
Sourcecode: tango version File versions  Download package

Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes | Friends

Tango::WAttribute Class Reference

#include <w_attribute.h>

Inheritance diagram for Tango::WAttribute:
Inheritance graph
[legend]
Collaboration diagram for Tango::WAttribute:
Collaboration graph
[legend]

List of all members.

Public Types

enum  alarm_flags {
  min_level, max_level, rds, min_warn,
  max_warn, numFlags
}

Public Member Functions

void add_write_value (Tango::DevVarShortArray *)
void add_write_value (Tango::DevVarLong64Array *)
void add_write_value (Tango::DevVarULongArray *)
void add_write_value (Tango::DevVarULong64Array *)
void add_write_value (Tango::DevVarStateArray *)
void add_write_value (Tango::DevEncoded &)
void add_write_value (Tango::DevVarLongArray *)
void add_write_value (Tango::DevVarDoubleArray *)
void add_write_value (Tango::DevVarStringArray *)
void add_write_value (Tango::DevVarFloatArray *)
void add_write_value (Tango::DevVarBooleanArray *)
void add_write_value (Tango::DevVarUShortArray *)
void add_write_value (Tango::DevVarCharArray *)
bool archive_event_subscribed ()
void Attribute_2_AttributeValue (Tango::AttributeValue_3 *, DeviceImpl *)
void Attribute_2_AttributeValue (Tango::AttributeValue_4 *, DeviceImpl *)
void AttributeValue_4_2_AttributeValue_3 (Tango::AttributeValue_4 *, Tango::AttributeValue_3 *)
bool change_event_subscribed ()
bool check_scalar_wattribute ()
void check_written_value (const CORBA::Any &, unsigned long, unsigned long)
void check_written_value (const DevVarEncodedArray &, unsigned long, unsigned long)
void check_written_value (const AttrValUnion &, unsigned long, unsigned long)
void copy_data (const Tango::AttrValUnion &)
void copy_data (const CORBA::Any &)
void delete_seq ()
DeviceImplget_att_device ()
long get_attr_idx ()
omni_mutex * get_attr_mutex ()
Tango::DevVarBooleanArray * get_boolean_value ()
DispLevel get_disp_level ()
Tango::DevVarDoubleArray * get_double_value ()
Tango::DevVarEncodedArray * get_encoded_value ()
Tango::DevVarFloatArray * get_float_value ()
Tango::DevVarBooleanArray * get_last_written_boo ()
Tango::DevVarDoubleArray * get_last_written_db ()
Tango::DevEncodedget_last_written_encoded ()
Tango::DevVarFloatArray * get_last_written_fl ()
Tango::DevVarLongArray * get_last_written_lg ()
Tango::DevVarLong64Array * get_last_written_lg64 ()
Tango::DevVarShortArray * get_last_written_sh ()
Tango::DevVarStateArray * get_last_written_state ()
Tango::DevVarStringArray * get_last_written_str ()
Tango::DevVarCharArray * get_last_written_uch ()
Tango::DevVarULongArray * get_last_written_ulg ()
Tango::DevVarULong64Array * get_last_written_ulg64 ()
Tango::DevVarUShortArray * get_last_written_ush ()
Tango::DevVarLong64Array * get_long64_value ()
Tango::DevVarLongArray * get_long_value ()
string & get_mem_value ()
string & get_name_lower ()
unsigned long get_name_size ()
Tango::DevVarShortArray * get_short_value ()
Tango::DevVarStateArray * get_state_value ()
Tango::DevVarStringArray * get_string_value ()
Tango::DevLong64 * get_tmp_scalar_long64 ()
Tango::DevState * get_tmp_scalar_state ()
Tango::DevULong * get_tmp_scalar_ulong ()
Tango::DevULong64 * get_tmp_scalar_ulong64 ()
Tango::DevVarCharArray * get_uchar_value ()
Tango::DevVarULong64Array * get_ulong64_value ()
Tango::DevVarULongArray * get_ulong_value ()
omni_mutex * get_user_attr_mutex ()
bool get_user_set_write_value ()
Tango::DevVarUShortArray * get_ushort_value ()
bool get_value_flag ()
long get_w_dim_x ()
long get_w_dim_y ()
Tango::TimeValget_when ()
bool is_memorized ()
bool is_memorized_init ()
bool periodic_event_subscribed ()
bool quality_event_subscribed ()
void rollback ()
void set_archive_event_sub ()
void set_attr_idx (long new_idx)
void set_change_event_sub ()
void set_memorized (bool mem)
void set_memorized_init (bool mem_init)
void set_periodic_event_sub ()
void set_properties (const Tango::AttributeConfig_3 &, string &)
void set_properties (const Tango::AttributeConfig &, string &)
void set_quality_event_sub ()
virtual void set_rvalue ()
void set_time ()
void set_user_event_sub ()
void set_user_set_write_value (bool val)
void set_value_flag (bool val)
void set_write_value (Tango::DevEncoded *, long x=1, long y=0)
void set_written_date ()
void upd_database (const Tango::AttributeConfig_3 &, string &)
void upd_database (const Tango::AttributeConfig &, string &)
bool user_event_subscribed ()
void wanted_date (bool flag)
Constructors

Miscellaneous constructors

 WAttribute (vector< AttrProperty > &prop_list, Attr &tmp_attr, string &dev_name, long idx)
Destructor

Only one desctructor is defined for this class

 ~WAttribute ()
Attribute configuration methods

Miscellaneous methods dealing with attribute min and max value property

bool is_min_value ()
void get_min_value (Tango::DevShort &min_value)
void get_min_value (Tango::DevLong &min_value)
void get_min_value (Tango::DevLong64 &min_value)
void get_min_value (Tango::DevDouble &min_value)
void get_min_value (Tango::DevFloat &min_value)
void get_min_value (Tango::DevUShort &min_value)
void get_min_value (Tango::DevUChar &min_value)
void get_min_value (Tango::DevULong &min_value)
void get_min_value (Tango::DevULong64 &min_value)
bool is_max_value ()
void get_max_value (Tango::DevShort &max_value)
void get_max_value (Tango::DevLong &max_value)
void get_max_value (Tango::DevLong64 &max_value)
void get_max_value (Tango::DevDouble &max_value)
void get_max_value (Tango::DevFloat &max_value)
void get_max_value (Tango::DevUShort &max_value)
void get_max_value (Tango::DevUChar &max_value)
void get_max_value (Tango::DevULong &max_value)
void get_max_value (Tango::DevULong64 &max_value)
void set_min_value (Tango::DevShort &min_value)
void set_min_value (Tango::DevLong &min_value)
void set_min_value (Tango::DevLong64 &min_value)
void set_min_value (Tango::DevDouble &min_value)
void set_min_value (Tango::DevFloat &min_value)
void set_min_value (Tango::DevUShort &min_value)
void set_min_value (Tango::DevUChar &min_value)
void set_min_value (Tango::DevULong &min_value)
void set_min_value (Tango::DevULong64 &min_value)
void set_max_value (Tango::DevShort &max_value)
void set_max_value (Tango::DevLong &max_value)
void set_max_value (Tango::DevLong64 &max_value)
void set_max_value (Tango::DevDouble &max_value)
void set_max_value (Tango::DevFloat &max_value)
void set_max_value (Tango::DevUShort &max_value)
void set_max_value (Tango::DevUChar &max_value)
void set_max_value (Tango::DevULong &max_value)
void set_max_value (Tango::DevULong64 &max_value)
Get new value for attribute

Miscellaneous method to retrieve from the WAttribute object the new value for the attribute.

long get_write_value_length ()
struct timeval & get_write_date ()
void get_write_value (Tango::DevShort &val)
void get_write_value (const Tango::DevShort *&ptr)
void get_write_value (Tango::DevLong &val)
void get_write_value (const Tango::DevLong *&ptr)
void get_write_value (Tango::DevLong64 &val)
void get_write_value (const Tango::DevLong64 *&ptr)
void get_write_value (Tango::DevFloat &val)
void get_write_value (const Tango::DevFloat *&ptr)
void get_write_value (Tango::DevDouble &val)
void get_write_value (const Tango::DevDouble *&ptr)
void get_write_value (Tango::DevString &val)
void get_write_value (const Tango::ConstDevString *&ptr)
void get_write_value (Tango::DevBoolean &val)
void get_write_value (const Tango::DevBoolean *&ptr)
void get_write_value (Tango::DevUShort &val)
void get_write_value (const Tango::DevUShort *&ptr)
void get_write_value (Tango::DevUChar &val)
void get_write_value (const Tango::DevUChar *&ptr)
void get_write_value (Tango::DevULong &val)
void get_write_value (const Tango::DevULong *&ptr)
void get_write_value (Tango::DevULong64 &val)
void get_write_value (const Tango::DevULong64 *&ptr)
void get_write_value (Tango::DevState &val)
void get_write_value (const Tango::DevState *&ptr)
void get_write_value (Tango::DevEncoded &val)
void get_write_value (const Tango::DevEncoded *&ptr)
Set new value for attribute

Miscellaneous method to set a WAttribute value

void set_write_value (Tango::DevShort val)
void set_write_value (Tango::DevShort *val, long x=1, long y=0)
void set_write_value (vector< Tango::DevShort > &val, long x=1, long y=0)
void set_write_value (Tango::DevLong val)
void set_write_value (Tango::DevLong *val, long x=1, long y=0)
void set_write_value (vector< Tango::DevLong > &val, long x=1, long y=0)
void set_write_value (Tango::DevLong64 val)
void set_write_value (Tango::DevLong64 *val, long x=1, long y=0)
void set_write_value (vector< Tango::DevLong64 > &val, long x=1, long y=0)
void set_write_value (Tango::DevDouble val)
void set_write_value (Tango::DevDouble *val, long x=1, long y=0)
void set_write_value (vector< Tango::DevDouble > &val, long x=1, long y=0)
void set_write_value (Tango::DevString val)
void set_write_value (string &val)
void set_write_value (Tango::DevString *val, long x=1, long y=0)
void set_write_value (vector< string > &val, long x=1, long y=0)
void set_write_value (Tango::DevFloat val)
void set_write_value (Tango::DevFloat *val, long x=1, long y=0)
void set_write_value (vector< Tango::DevFloat > &val, long x=1, long y=0)
void set_write_value (Tango::DevBoolean val)
void set_write_value (Tango::DevBoolean *val, long x=1, long y=0)
void set_write_value (vector< Tango::DevBoolean > &val, long x=1, long y=0)
void set_write_value (Tango::DevUShort val)
void set_write_value (Tango::DevUShort *val, long x=1, long y=0)
void set_write_value (vector< Tango::DevUShort > &val, long x=1, long y=0)
void set_write_value (Tango::DevUChar val)
void set_write_value (Tango::DevUChar *val, long x=1, long y=0)
void set_write_value (vector< Tango::DevUChar > &val, long x=1, long y=0)
void set_write_value (Tango::DevULong val)
void set_write_value (Tango::DevULong *val, long x=1, long y=0)
void set_write_value (vector< Tango::DevULong > &val, long x=1, long y=0)
void set_write_value (Tango::DevULong64 val)
void set_write_value (Tango::DevULong64 *val, long x=1, long y=0)
void set_write_value (vector< Tango::DevULong64 > &val, long x=1, long y=0)
void set_write_value (Tango::DevState val)
void set_write_value (Tango::DevState *val, long x=1, long y=0)
void set_write_value (vector< Tango::DevState > &val, long x=1, long y=0)
Check attribute methods

Miscellaneous method returning boolean flag accorrding to attribute state

bool is_writ_associated ()
bool is_min_alarm ()
bool is_max_alarm ()
bool is_min_warning ()
bool is_max_warning ()
bool is_rds_alarm ()
bitset< numFlags > & is_alarmed ()
bool is_polled ()
bool check_alarm ()
Get/Set object members.

These methods allows the external world to get/set DeviceImpl instance data members

Tango::AttrWriteType get_writable ()
string & get_name ()
long get_data_type ()
Tango::AttrDataFormat get_data_format ()
string & get_assoc_name ()
long get_assoc_ind ()
void set_assoc_ind (long val)
Tango::TimeValget_date ()
void set_date (Tango::TimeVal &new_date)
void set_date (struct timeval &t)
void set_date (time_t new_date)
string & get_label ()
Tango::AttrQuality & get_quality ()
void set_quality (Tango::AttrQuality qua, bool send_event=false)
long get_data_size ()
long get_x ()
long get_max_dim_x ()
long get_y ()
long get_max_dim_y ()
long get_polling_period ()
void get_properties (Tango::AttributeConfig &conf)
void get_properties_2 (Tango::AttributeConfig_2 &conf)
void get_properties_3 (Tango::AttributeConfig_3 &conf)
void set_properties (const Tango::AttributeConfig &conf, Tango::DeviceImpl *dev)
void set_properties (const Tango::AttributeConfig_3 &conf, Tango::DeviceImpl *dev)
void set_attr_serial_model (AttrSerialModel ser_model)
AttrSerialModel get_attr_serial_model ()
void set_user_attr_mutex (omni_mutex *mut_ptr)
Set attribute value methods.

These methods allows the external world to set attribute object internal value

void set_value (Tango::DevShort *p_data, long x=1, long y=0, bool release=false)
void set_value (Tango::DevLong *p_data, long x=1, long y=0, bool release=false)
void set_value (Tango::DevLong64 *p_data, long x=1, long y=0, bool release=false)
void set_value (Tango::DevFloat *p_data, long x=1, long y=0, bool release=false)
void set_value (Tango::DevDouble *p_data, long x=1, long y=0, bool release=false)
void set_value (Tango::DevString *p_data, long x=1, long y=0, bool release=false)
void set_value (Tango::DevBoolean *p_data, long x=1, long y=0, bool release=false)
void set_value (Tango::DevUShort *p_data, long x=1, long y=0, bool release=false)
void set_value (Tango::DevUChar *p_data, long x=1, long y=0, bool release=false)
void set_value (Tango::DevULong *p_data, long x=1, long y=0, bool release=false)
void set_value (Tango::DevULong64 *p_data, long x=1, long y=0, bool release=false)
void set_value (Tango::DevState *p_data, long x=1, long y=0, bool release=false)
void set_value (Tango::DevEncoded *p_data, long x=1, long y=0, bool release=false)
void set_value (Tango::DevString *p_data_str, Tango::DevUChar *p_data, long size, bool release=false)
void set_value (Tango::EncodedAttribute *attr)
void set_value_date_quality (Tango::DevShort *p_data, time_t t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
void set_value_date_quality (Tango::DevShort *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
void set_value_date_quality (Tango::DevLong *p_data, time_t t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
void set_value_date_quality (Tango::DevLong *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
void set_value_date_quality (Tango::DevLong64 *p_data, time_t t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
void set_value_date_quality (Tango::DevLong64 *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
void set_value_date_quality (Tango::DevFloat *p_data, time_t t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
void set_value_date_quality (Tango::DevFloat *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
void set_value_date_quality (Tango::DevDouble *p_data, time_t t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
void set_value_date_quality (Tango::DevDouble *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
void set_value_date_quality (Tango::DevString *p_data, time_t t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
void set_value_date_quality (Tango::DevString *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
void set_value_date_quality (Tango::DevBoolean *p_data, time_t t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
void set_value_date_quality (Tango::DevBoolean *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
void set_value_date_quality (Tango::DevUShort *p_data, time_t t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
void set_value_date_quality (Tango::DevUShort *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
void set_value_date_quality (Tango::DevUChar *p_data, time_t t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
void set_value_date_quality (Tango::DevUChar *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
void set_value_date_quality (Tango::DevULong *p_data, time_t t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
void set_value_date_quality (Tango::DevULong *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
void set_value_date_quality (Tango::DevULong64 *p_data, time_t t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
void set_value_date_quality (Tango::DevULong64 *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
void set_value_date_quality (Tango::DevState *p_data, time_t t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
void set_value_date_quality (Tango::DevState *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
void set_value_date_quality (Tango::DevEncoded *p_data, time_t t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
void set_value_date_quality (Tango::DevString *p_data_str, Tango::DevUChar *p_data, long size, time_t t, Tango::AttrQuality qual, bool release=false)
void set_value_date_quality (Tango::DevEncoded *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
void set_value_date_quality (Tango::DevString *p_data_str, Tango::DevUChar *p_data, long size, struct timeval &t, Tango::AttrQuality qual, bool release=false)
void fire_change_event (DevFailed *except=NULL)
void set_change_event (bool implemented, bool detect=true)
bool is_change_event ()
bool is_check_change_criteria ()
void fire_archive_event (DevFailed *except=NULL)
void set_archive_event (bool implemented, bool detect=true)
bool is_archive_event ()
bool is_check_archive_criteria ()
void set_data_ready_event (bool implemented)
bool is_data_ready_event ()
void fire_event (vector< string > &filt_names, vector< double > &filt_vals, DevFailed *except=NULL)
void remove_configuration ()

Protected Member Functions

bool check_level_alarm ()
virtual bool check_rds_alarm ()
bool check_warn_alarm ()
string & get_attr_value (vector< AttrProperty > &prop_list, const char *name)
long get_lg_attr_value (vector< AttrProperty > &prop_list, const char *name)
virtual void init_event_prop (vector< AttrProperty > &prop_list)
virtual void init_opt_prop (vector< AttrProperty > &prop_list, string &dev_name)
void upd_att_prop_db (Tango::Attr_CheckVal &, const char *)

Protected Attributes

bitset< numFlags > alarm
bitset< numFlags > alarm_conf
long dim_x
long dim_y
vector< AttrProperty >::iterator pos_end
Tango::DevBoolean tmp_boo [2]
Tango::DevUChar tmp_cha [2]
Tango::DevDouble tmp_db [2]
Tango::DevEncoded tmp_enc [2]
Tango::DevFloat tmp_fl [2]
Tango::DevLong tmp_lo [2]
Tango::DevShort tmp_sh [2]
Tango::DevString tmp_str [2]
Tango::DevUShort tmp_ush [2]
Class data members
bool value_flag
Tango::TimeVal when
bool date
Tango::AttrQuality quality
string name
Tango::AttrWriteType writable
long data_type
Tango::AttrDataFormat data_format
long max_x
long max_y
string label
string description
string unit
string standard_unit
string display_unit
string format
string writable_attr_name
string min_alarm_str
string max_alarm_str
string min_value_str
string max_value_str
string min_warning_str
string max_warning_str
string delta_val_str
string delta_t_str
long assoc_ind
Tango::Attr_CheckVal min_alarm
Tango::Attr_CheckVal max_alarm
Tango::Attr_CheckVal min_warning
Tango::Attr_CheckVal max_warning
Tango::Attr_CheckVal min_value
Tango::Attr_CheckVal max_value
Tango::Attr_Value value
long data_size
bool check_min_value
bool check_max_value
Tango::Attr_CheckVal delta_val
long delta_t

Private Attributes

Tango::DevVarBooleanArray boolean_array_val
const Tango::DevBoolean * boolean_ptr
Tango::DevBoolean boolean_val
Tango::DevVarDoubleArray double_array_val
const Tango::DevDouble * double_ptr
Tango::DevDouble double_val
const Tango::DevEncodedencoded_ptr
Tango::DevEncoded encoded_val
Tango::DevVarFloatArray float_array_val
const Tango::DevFloat * float_ptr
Tango::DevFloat float_val
Tango::DevVarLongArray long_array_val
const Tango::DevLong * long_ptr
Tango::DevLong long_val
string mem_value
bool memorized
bool memorized_init
Tango::DevBoolean old_boolean_val
Tango::DevDouble old_double_val
Tango::DevEncoded old_encoded_val
Tango::DevFloat old_float_val
Tango::DevLong old_long_val
Tango::DevShort old_short_val
Tango::DevString old_str_val
Tango::DevUChar old_uchar_val
Tango::DevUShort old_ushort_val
Tango::DevVarShortArray short_array_val
const Tango::DevShort * short_ptr
Tango::DevShort short_val
Tango::DevVarStringArray str_array_val
const Tango::ConstDevString * str_ptr
Tango::DevString str_val
bool string_allocated
Tango::DevVarCharArray uchar_array_val
const Tango::DevUChar * uchar_ptr
Tango::DevUChar uchar_val
Tango::DevVarUShortArray ushort_array_val
const Tango::DevUShort * ushort_ptr
Tango::DevUShort ushort_val
long w_dim_x
long w_dim_y
WAttributeExtw_ext
struct timeval write_date

Friends

class EventSubscriptionChangeCmd
class EventSupplier
ostream & operator<< (ostream &, Attribute &)

Detailed Description

This class represents a writable attribute. It inherits from the Attribute class and only add what is specific to writable attribute.

Author:
taurel
Revision:
15556

Definition at line 165 of file w_attribute.h.


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

Generated by  Doxygen 1.6.0   Back to index