Tango Core Classes Reference  9.2.5
Tango::SpectrumAttr Class Reference

User class to create a one dimension attribute object. More...

#include "tango.h"

Inheritance diagram for Tango::SpectrumAttr:
Collaboration diagram for Tango::SpectrumAttr:

Public Member Functions

Constructors

Two constructors are defined for this class

 SpectrumAttr (const char *name, long data_type, long max_x)
 Constructs a newly allocated SpectrumAttr object. More...
 
 SpectrumAttr (const char *name, long data_type, Tango::AttrWriteType w_type, long max_x)
 Constructs a newly allocated SpectrumAttr object. More...
 
 SpectrumAttr (const char *name, long data_type, long max_x, DispLevel level)
 Constructs a newly allocated SpectrumAttr object. More...
 
 SpectrumAttr (const char *name, long data_type, Tango::AttrWriteType w_type, long max_x, DispLevel level)
 Constructs a newly allocated SpectrumAttr object. More...
 
 SpectrumAttr (const char *_n)
 
Destructor

Only one desctructor is defined for this class

 ~SpectrumAttr ()
 The object desctructor.
 
- Public Member Functions inherited from 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. 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)
 
virtual ~Attr ()
 The object desctructor.
 
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...
 

Detailed Description

User class to create a one 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
taurel
Revision
28373

Constructor & Destructor Documentation

Tango::SpectrumAttr::SpectrumAttr ( const char *  name,
long  data_type,
long  max_x 
)

Constructs a newly allocated SpectrumAttr object.

The attribute display level is set to OPERATOR. The attribute write type is set to READ

Parameters
nameThe attribute name
data_typeThe attribute data type
max_xThe attribute maximum x dimension
Tango::SpectrumAttr::SpectrumAttr ( const char *  name,
long  data_type,
Tango::AttrWriteType  w_type,
long  max_x 
)

Constructs a newly allocated SpectrumAttr object.

The attribute display level is set to OPERATOR.

Parameters
nameThe attribute name
data_typeThe attribute data type
w_typeThe attribute write type (READ, WRITE, READ_WRITE)
max_xThe attribute maximum x dimension
Tango::SpectrumAttr::SpectrumAttr ( const char *  name,
long  data_type,
long  max_x,
DispLevel  level 
)

Constructs a newly allocated SpectrumAttr object.

The attribute write type is set to READ

Parameters
nameThe attribute name
data_typeThe attribute data type
max_xThe attribute maximum x dimension
levelThe attribute display type
Tango::SpectrumAttr::SpectrumAttr ( const char *  name,
long  data_type,
Tango::AttrWriteType  w_type,
long  max_x,
DispLevel  level 
)

Constructs a newly allocated SpectrumAttr object.

Parameters
nameThe attribute name
data_typeThe attribute data type
w_typeThe attribute write type (READ, WRITE, READ_WRITE)
max_xThe attribute maximum x dimension
levelThe attribute display type

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