Tango Core Classes Reference
9.3.3
|
User class to create a no dimension attribute object. More...
#include "tango.h"
Public Member Functions | |
Constructors | |
Two constructors are defined for this class | |
Attr (const char *name, long data_type, Tango::AttrWriteType w_type=Tango::READ, const char *assoc=AssocWritNotSpec) | |
Constructs a newly allocated Attr object. More... | |
Attr (const char *name, long data_type, Tango::DispLevel disp, Tango::AttrWriteType w_type=Tango::READ, const char *assoc=AssocWritNotSpec) | |
Constructs a newly allocated Attr object. More... | |
Attr (const char *name, Tango::DispLevel disp=Tango::OPERATOR) | |
Constructs a newly allocated Attr object. More... | |
Destructor | |
Only one destructor is defined for this class | |
virtual | ~Attr () |
The object destructor. | |
Miscellaneous methods | |
void | set_default_properties (UserDefaultAttrProp &prop) |
Set default attribute properties. More... | |
void | set_disp_level (Tango::DispLevel level) |
Set the attribute display level. More... | |
void | set_polling_period (long update) |
Set the attribute polling update period. More... | |
void | set_memorized () |
Set the attribute as memorized in database (only for scalar and writable attribute) By default the setpoint will be written to the attribute during initialisation! Use method set_memorized_init() with false as argument if you don't want this feature. | |
void | set_memorized_init (bool write_on_init) |
Set the initialisation flag for memorized attributes true = the setpoint value will be written to the attribute on initialisation false = only the attribute setpoint is initialised. More... | |
void | set_change_event (bool implemented, bool detect) |
Set a flag to indicate that the server fires change events manually without the polling to be started for the attribute. More... | |
bool | is_change_event () |
Check if the change event is fired manually for this attribute. More... | |
bool | is_check_change_criteria () |
Check if the change event criteria should be checked when firing the event manually. More... | |
void | set_archive_event (bool implemented, bool detect) |
Set a flag to indicate that the server fires archive events manually without the polling to be started for the attribute 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. More... | |
bool | is_archive_event () |
Check if the archive event is fired manually for this attribute. More... | |
bool | is_check_archive_criteria () |
Check if the archive event criteria should be checked when firing the event manually. More... | |
void | set_data_ready_event (bool implemented) |
Set a flag to indicate that the server fires data ready events. More... | |
bool | is_data_ready_event () |
Check if the data ready event is fired for this attribute. More... | |
User class to create a no dimension attribute object.
Information from this class and information fetched out from the Tango database allows the Tango core software to create the Attribute object for the attribute created by the user.
$Author$ $Revision$
Tango::Attr::Attr | ( | const char * | name, |
long | data_type, | ||
Tango::AttrWriteType | w_type = Tango::READ , |
||
const char * | assoc = AssocWritNotSpec |
||
) |
Constructs a newly allocated Attr object.
The attribute display level is set to OPERATOR.
name | The attribute name |
data_type | The attribute data type |
w_type | The attribute type (read, write, read with write ...) |
assoc | Name of the associated writable attribute. This is used only the read with write attribute |
Tango::Attr::Attr | ( | const char * | name, |
long | data_type, | ||
Tango::DispLevel | disp, | ||
Tango::AttrWriteType | w_type = Tango::READ , |
||
const char * | assoc = AssocWritNotSpec |
||
) |
Constructs a newly allocated Attr object.
name | The attribute name |
data_type | The attribute data type |
disp | The attribute display level |
w_type | The attribute type (read, write, read with write ...) |
assoc | Name of the associated writable attribute. This is used only the read with write attribute |
Tango::Attr::Attr | ( | const char * | name, |
Tango::DispLevel | disp = Tango::OPERATOR |
||
) |
Constructs a newly allocated Attr object.
name | The attribute name |
disp | The attribute display level |
|
inline |
Check if the archive event is fired manually for this attribute.
|
inline |
Check if the change event is fired manually for this attribute.
|
inline |
Check if the archive event criteria should be checked when firing the event manually.
|
inline |
Check if the change event criteria should be checked when firing the event manually.
|
inline |
Check if the data ready event is fired for this attribute.
|
inline |
Set a flag to indicate that the server fires archive events manually without the polling to be started for the attribute 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 checking!
implemented | True when the server fires archive events manually. |
detect | Triggers the verification of the archive event properties when set to true. |
|
inline |
Set a flag to indicate that the server fires change events manually without the polling to be started for the attribute.
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 checking!
implemented | True when the server fires change events manually. |
detect | Triggers the verification of the change event properties when set to true. |
|
inline |
Set a flag to indicate that the server fires data ready events.
implemented | True when the server fires data ready events |
void Tango::Attr::set_default_properties | ( | UserDefaultAttrProp & | prop | ) |
Set default attribute properties.
prop | The user default property class |
|
inline |
Set the attribute display level.
level | The attribute display level |
|
inline |
Set the initialisation flag for memorized attributes true = the setpoint value will be written to the attribute on initialisation false = only the attribute setpoint is initialised.
No action is taken on the attribute
write_on_init | If true the setpoint value will be written to the attribute on initialisation |
|
inline |
Set the attribute polling update period.
update | The attribute polling period (in mS) |