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

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

Tango::Attribute Class Reference

#include <attribute.h>

Inheritance diagram for Tango::Attribute:
Inheritance graph
[legend]
Collaboration diagram for Tango::Attribute:
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_4 *, DeviceImpl *)
void Attribute_2_AttributeValue (Tango::AttributeValue_3 *, DeviceImpl *)
void AttributeValue_4_2_AttributeValue_3 (Tango::AttributeValue_4 *, Tango::AttributeValue_3 *)
bool change_event_subscribed ()
bool check_scalar_wattribute ()
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::DevVarLong64Array * get_long64_value ()
Tango::DevVarLongArray * get_long_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 ()
Tango::DevVarUShortArray * get_ushort_value ()
bool get_value_flag ()
Tango::TimeValget_when ()
bool periodic_event_subscribed ()
bool quality_event_subscribed ()
void set_archive_event_sub ()
void set_attr_idx (long new_idx)
void set_change_event_sub ()
void set_periodic_event_sub ()
void set_properties (const Tango::AttributeConfig &, string &)
void set_properties (const Tango::AttributeConfig_3 &, string &)
void set_quality_event_sub ()
virtual void set_rvalue ()
void set_time ()
void set_user_event_sub ()
void set_value_flag (bool val)
void upd_database (const Tango::AttributeConfig &, string &)
void upd_database (const Tango::AttributeConfig_3 &, string &)
bool user_event_subscribed ()
void wanted_date (bool flag)
Constructors

Miscellaneous constructors

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

Only one desctructor is defined for this class

virtual ~Attribute ()
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 Member Functions

void check_str_prop (const AttributeConfig &, DbData &, long &, DbData &, long &)
void set_data_size ()
void throw_err_data_type (const char *, string &)
void throw_err_format (const char *, string &)

Private Attributes

DevEncoded enc_help
AttributeExtext
string name_lower
unsigned long name_size

Friends

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

Detailed Description

This class represents a Tango attribute.

Author:
taurel
Revision:
15556

Definition at line 450 of file attribute.h.


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

Generated by  Doxygen 1.6.0   Back to index