|
Tango Core Classes Reference
9.3.4
|
Tango API exceptions
All the exception thrown by this API are Tango::DevFailed exception. This exception is a variable length array of Tango::DevError type. The Tango::DevError type is a four fields structure. These fields are :
- A string describing the error type. This string replaces an error code and allows a more easy management of include files. This field is called reason
- A string describing in plain text the reason of the error. This field is called desc
- A string giving the name of the method which thrown the exception. This field is named origin
- The error severity. This is an enumeration with three values which are WARN, ERR or PANIC. Its name is severity
This is a variable length array in order to transmit to the client what is the primary error reason. The sequence element 0 describes the primary error. An exception class hierarchy has been implemented within the API to ease API programmers task. All the exception classes inherits from the Tango::DevFailed class. Except for the NamedDevFailedList exception class, they don’t add any new fields to the exception, they just allow easy "catching". Exception classes thrown only by the API layer are :
- ConnectionFailed
- CommunicationFailed
- WrongNameSyntax
- NonDbDevice
- WrongData
- NonSupportedFeature
- AsynCall
- AsynReplyNotArrived
- EventSystemFailed
- NamedDevFailedList
- DeviceUnlocked
On top of these classes, exception thrown by the device (Tango::DevFailed exception) are directly passed to the client.
The ConnectionFailed exception
This exception is thrown when a problem occurs during the connection establishment between the application and the device. The API is stateless. This means that DeviceProxy constructors filter most of the exception except for cases described in the following table.
Method name | device type | error type | Level | reason |
DeviceProxy constructor | with database | TANGO_HOST not set | 0 | API_TangoHostNotSet |
Device not defined in db or Alias not defined in db | 0 | DB_DeviceNotDefined |
1 | API_CommandFailed |
2 | API_DeviceNotDefined |
with database specified in dev name | database server not running | 0 | API_CorbaException |
1 | API_CantConnectToDatabase |
without database | Server running but device not defined in server | 0 | API_CorbaException |
1 | API_DeviceNotExported
|
AttributeProxy constructor | with database | TANGO_HOST not set | 0 | API_TangoHostNotSet |
Device not defined in db | 0 | DB_DeviceNotDefined |
1 | API_CommandFailed |
2 | API_DeviceNotDefined |
Alias not defined in db | 0 | DB_SQLError |
1 | API_CommandFailed |
2 | API_AliasNotDefined |
with database specified in dev name | database server not running | 0 | API_CorbaException |
1 | API_CantConnectToDatabase
|
DeviceProxy or AttributeProxy method call (except command_inout, read_attribute) | without database | Server not running | 0 | API_CorbaException |
1 | API_ServerNotRunning |
with database | Server ot running | 0 | API_DeviceNotExported |
Dead server | 0 | API_CorbaException |
1 | API_CantConnectToDevice |
Dead database server when reconnection needed | 0 | API_CorbaException |
1 | API_CantConnectToDatabase
|
DeviceProxy command_inout and read_attribute or AttributeProxy read and write | without database | Server not running | 0 | API_DeviceNotExported |
1 | API_ServerNotRunning |
2 | API_CommandFailed |
with database | Server not running | 0 | API_DeviceNotExported |
1 | API_CommandFailed |
Dead server | 0 | API_CorbaException |
1 | API_CantConnectToDevice |
2 | API_CommandFailed or API_AttributeFailed |
Dead database server when re-connection needed | 0 | API_DeviceNotExported |
1 | API_CantConnectToDatabase |
2 | API_CommandFailed |
The desc DevError structure field allows a user to get more precise information. These informations are (according to the reason field) :
- DB_DeviceNotDefined: The name of the device not defined in the database
- API_CommandFailed: The device and command name
- API_CantConnectToDevice: The device name
- API_CorbaException: The name of the CORBA exception, its reason, its locality, its completed flag and its minor code
- API_CantConnectToDatabase: The database server host and its port number
- API_DeviceNotExported: The device name
The CommunicationFailed exception
This exception is thrown when a communication problem is detected during the communication between the client application and the device server. It is a two levels Tango::DevError structure. In case of time-out, the DevError structures fields are:
Level | Reason | Desc | Severity |
0 | API_CorbaException | CORBA exception fields translated into a string | ERR |
1 | API_DeviceTimedOut | String with time-out value and device name | ERR |
For all other communication errors, the DevError structures fields are:
Level | Reason | Desc | Severity |
0 | API_CorbaException | CORBA exception fields translated into a string | ERR |
1 | API_CommunicationFailed | String with device, method, command/attribute name | ERR |
The WrongNameSyntax exception
This exception has only one level of Tango::DevError structure. The possible value for the reason field are :
- API_UnsupportedProtocol This error occurs when trying to build a DeviceProxy or an AttributeProxy instance for a device with an unsupported protocol. Refer to the appendix on device naming syntax to get the list of supported database modifier
- API_UnsupportedDBaseModifier This error occurs when trying to build a DeviceProxy or an AttributeProxy instance for a device/attribute with a database modifier unsupported. Refer to the appendix on device naming syntax to get the list of supported database modifier
- API_WrongDeviceNameSyntax This error occurs for all the other error in device name syntax. It is thrown by the DeviceProxy class constructor.
- API_WrongAttributeNameSyntax This error occurs for all the other error in attribute name syntax. It is thrown by the AttributeProxy class constructor.
- API_WrongWildcardUsage This error occurs if there is a bad usage of the wildcard character
The NonDbDevice exception
This exception has only one level of Tango::DevError structure. The reason field is set to API_NonDatabaseDevice. This exception is thrown by the API when using the DeviceProxy or AttributeProxy class database access for non-database device.
The WrongData exception
This exception has only one level of Tango::DevError structure. The possible value for the reason field are :
- API_EmptyDbDatum This error occurs when trying to extract data from an empty DbDatum object
- API_IncompatibleArgumentType This error occurs when trying to extract data with a type different than the type used to send the data
- API_EmptyDeviceAttribute This error occurs when trying to extract data from an empty DeviceAttribute object
- API_IncompatibleAttrArgumentType This error occurs when trying to extract attribute data with a type different than the type used to send the data
- API_EmptyDeviceData This error occurs when trying to extract data from an empty DeviceData object
- API_IncompatibleCmdArgumentType This error occurs when trying to extract command data with a type different than the type used to send the data
The NonSupportedFeature exception
This exception is thrown by the API layer when a request to a feature implemented in Tango device interface release n is requested for a device implementing Tango device interface n-x. There is one possible value for the reason field which is API_UnsupportedFeature.
The AsynCall exception
This exception is thrown by the API layer when a the asynchronous model id badly used. This exception has only one level of Tango::DevError structure. The possible value for the reason field are :
- API_BadAsynPollId This error occurs when using an asynchronous request identifier which is not valid any more.
- API_BadAsyn This error occurs when trying to fire callback when no callback has been previously registered
- API_BadAsynReqType This error occurs when trying to get result of an asynchronous request with an asynchronous request identifier returned by a non-coherent asynchronous request (For instance, using the asynchronous request identifier returned by a command_inout_asynch() method with a read_attribute_reply() attribute).
The AsynReplyNotArrived exception
This exception is thrown by the API layer when:
- a request to get asynchronous reply is made and the reply is not yet arrived
- a blocking wait with timeout for asynchronous reply is made and the timeout expired.
There is one possible value for the reason field which is API_AsynReplyNotArrived.
The EventSystemFailed exception
This exception is thrown by the API layer when subscribing or unsubscribing from an event failed. This exception has only one level of Tango::DevError structure. The possible value for the reason field are :
- API_NotificationServiceFailed This error occurs when the subscribe_event() method failed trying to access the CORBA notification service
- API_EventNotFound This error occurs when you are using an incorrect event_id in the unsubscribe_event() method
- API_InvalidArgs This error occurs when NULL pointers are passed to the subscribe or unsubscribe event methods
- API_MethodArgument This error occurs when trying to subscribe to an event which has already been subscribed to
- API_DSFailedRegisteringEvent This error means that the device server to which the device belongs to failed when it tries to register the event. Most likely, it means that there is no event property defined
- API_EventNotFound Occurs when using a wrong event identifier in the unsubscribe_event method
The NamedDevFailedList exception
This exception is only thrown by the DeviceProxy::write_attributes() method. In this case, it is necessary to have a new class of exception to transfer the error stack for several attribute(s) which failed during the writing. Therefore, this exception class contains for each attributes which failed :
- The name of the attribute
- Its index in the vector passed as argument tof the write_attributes() method
- The error stack
The following piece of code is an example of how to use this class exception
{
for (long i = 0;i < nb_faulty;i++)
{
cout <<
"Attribute " << e.
err_list[i].name <<
" failed!" << endl;
for (
long j = 0;j < e.
err_list[i].err_stack.length();j++)
{
cout <<
"Reason [" << j <<
"] = " << e.
err_list[i].err_stack[j].reason;
cout <<
"Desc [" << j <<
"] = " << e.
err_list[i].err_stack[j].desc;
}
}
}
This exception inherits from Tango::DevFailed. It is possible to catch it with a "catch DevFailed" catch block. In this case, like any other DevFailed exception, there is only one error stack. This stack is initialised with the name of all the attributes which failed in its "reason" field.
The DeviceUnlocked exception
This exception is thrown by the API layer when a device locked by the process has been unlocked by an admin client. This exception has two levels of Tango::DevError structure. There is only possible value for the reason field which is
- API_DeviceUnlocked The device has been unlocked by another client (administration client)
The first level is the message reported by the Tango kernel from the server side. The second layer is added by the client API layer with information on which API call generates the exception and device name.
DbDevImportInfo import_device(string &dev_name)
Import a device from the database.
Easy to use interface to Tango device attribute.
Definition: AttributeProxy.h:58
@ USER_EVENT
User event.
Definition: tango_const.h:1089
bool is_check_change_criteria()
Check if the change event criteria should be checked when firing the event manually.
Definition: attrdesc.h:495
void extract(const CORBA::Any &in, const Tango::DevVarULong64Array *&data)
Extract a unsigned 64 bits long array from a CORBA Any object.
string get_root_blob_name()
Get root blob name.
Definition: w_pipe.h:101
virtual Tango::AttributeValueList_5 * write_read_attributes_5(const Tango::AttributeValueList_4 &values, const Tango::DevVarStringArray &r_names, const Tango::ClntIdent &cl_ident)
Write then read attribute(s) value.
bool is_archive_event()
Check if the archive event is fired manually for this attribute.
Definition: attrdesc.h:516
void insert(vector< DevLong > &vl, vector< string > &vs)
Insert data into a DeviceData for the DevVarLongStringArray data type.
Tango::DevVarShortArray * create_DevVarShortArray(short *ptr, long length)
Create a DevVarShortArray type.
Definition: device.h:729
An exception class.
Definition: apiexcept.h:55
string event
The event name.
Definition: event.h:462
vector< string > sys_extensions
Future extensions.
Definition: devapi.h:340
virtual vector< string > * get_command_list()
Query all commands name.
TimedAttrData(const T *p_data, long x, const T *p_wr_data, long x_wr, Tango::AttrQuality qual, struct timeval when)
Create a new TimedAttrData object for a R/W attribute.
vector< DbHistory > get_class_pipe_property_history(string &class_name, string &pipe_name, string &prop_name)
Get class pipe property history from database.
void set_exceptions(DevicePipeBlob::except_flags fl)
Set one exception flag.
Definition: pipe.h:331
const string & get_name()
Get blob name.
Definition: DevicePipe.h:163
void set_user_pipe_mutex(omni_mutex *mut_ptr)
Set pipe user mutex.
Definition: pipe.h:223
virtual int get_tango_lib_version()
Get device Tango lib version.
bool is_writ_associated()
Check if the attribute has an associated writable attribute.
GroupReplyList write_attribute(const DeviceAttribute &d, bool fwd=true)
Writes an attribute on each device in the group.
Base structure for command information.
Definition: devapi.h:102
Tango::PipeWriteType get_writable()
Get the pipe writable type (RO/RW).
Definition: pipe.h:194
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.
void encode_gray8(unsigned char *gray8, int width, int height)
Encode a 8 bit grayscale image (no compression)
void get_device_pipe_property(string dev_name, DbData &db)
Get device pipe property value.
Definition: Database.h:843
string event
The event name.
Definition: event.h:375
void set_value_date_quality(Tango::DevFloat *p_data, time_t t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
Set internal attribute value, date and quality factor (for Tango::DevFloat attribute data type).
void set_max_warning(const char *def_max_warning)
Set default max_warning property.
Definition: attrdesc.h:194
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.
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.
static TANGO_NORETURN void re_throw_exception(Tango::DevFailed &ex, const string &reason, char *desc, const string &origin, Tango::ErrSeverity sever=Tango::ERR)
Re-throw a TANGO DevFailed exception with one more error.
Definition: except.h:1471
long get_nb_written()
Get the number of written value.
void extract(const CORBA::Any &in, const Tango::DevVarBooleanArray *&data)
Extract a string array from a CORBA Any object.
Tango::AttributeInfoEx AttributeInfoEx
Extended attribute configuration data.
static TANGO_NORETURN void throw_exception(const string &reason, const string &desc, char *origin, Tango::ErrSeverity sever=Tango::ERR)
Generate and throw a TANGO DevFailed exception.
Definition: except.h:651
Command(string &s, Tango::CmdArgType in, Tango::CmdArgType out, Tango::DispLevel level)
Constructs a newly allocated Command object for a command from its name and its input and output para...
void set_write_value(Tango::DevULong *val, long x=1, long y=0)
Set the writable spectrum or image attribute value when the attribute data type is Tango::DevULong.
void set_value_date_quality(Tango::DevFloat *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
Set internal attribute value, date and quality factor (for Tango::DevFloat attribute data type).
void operator<<(bool datum)
The insert operators.
Definition: DeviceData.h:236
void set_user_attr_mutex(omni_mutex *mut_ptr)
Set attribute user mutex.
Definition: attribute.h:482
static TANGO_NORETURN void throw_exception(char *reason, const char *desc, char *origin, Tango::ErrSeverity sever=Tango::ERR)
Generate and throw a TANGO DevFailed exception.
Definition: except.h:301
void set_min_value(const char *def_min_value)
Set default min_value property.
Definition: attrdesc.h:144
Attribute archive event configuration.
Definition: devapi.h:281
TimedAttrData(const T *p_data, long x, const T *p_wr_data, long x_wr, Tango::AttrQuality qual, bool rel, time_t when)
Create a new TimedAttrData object for a R/W attribute.
virtual void push_event(AttrConfEventData *ace)
attribute configuration change event callback method
Definition: devasyn.h:294
TemplCommandIn(const char *cmd_name, void(DeviceImpl::*exe_method)(INARG))
Constructs a newly allocated TemplCommandIn object for a command with a name and an execution method.
Definition: command.h:2587
Classes declaration.
Definition: dbapi.h:102
virtual DeviceAttribute read_attribute(string &att_name)
Read a single attribute.
AttrProp(const string &value_str)
Create a new AttrProp object.
Definition: attrprop.h:98
SpectrumAttr(const char *name, long data_type, Tango::AttrWriteType w_type, long max_x)
Constructs a newly allocated SpectrumAttr object.
string min_alarm
Min alarm level.
Definition: devapi.h:225
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 d...
virtual void set_pipe_config(PipeInfoList &pipes)
Set pipe configuration.
static TANGO_NORETURN void re_throw_exception(Tango::DevFailed &ex, char *reason, char *desc, const string &origin, Tango::ErrSeverity sever=Tango::ERR)
Re-throw a TANGO DevFailed exception with one more error.
Definition: except.h:1625
TemplCommand(string &cmd_name, void(DeviceImpl::*exe_method)(), string &in_desc, string &out_desc, Tango::DispLevel level)
Constructs a newly allocated TemplCommand object for a command with a name, an execution method and a...
CORBA::Any * insert(Tango::DevShort data)
Create a CORBA Any object and insert a Tango::DevShort data in it.
void set_state(const Tango::DevState &new_state)
Set device state.
Definition: device.h:3593
static void print_error_stack(const Tango::DevErrorList &ex)
Print a TANGO error stack.
virtual void add(const std::vector< std::string > &patterns, int tmo_ms=-1)
Attaches any device which name matches one of the specified pattern.
void put_property(DbData &db)
Update device property in database.
Container class for all exception related methods.
Definition: except.h:75
Tango::DispLevel disp_level
Display level.
Definition: devapi.h:206
bool is_check_archive_criteria()
Check if the archive event criteria should be checked when firing the event manually.
Definition: attribute.h:1708
string & get_lower_name()
Return the pipe name in lower case letters.
Definition: pipe.h:152
static TANGO_NORETURN void throw_exception(const char *reason, const char *desc, const string &origin, Tango::ErrSeverity sever=Tango::ERR)
Generate and throw a TANGO DevFailed exception.
Definition: except.h:616
vector< long > writable_attr_list
The list of writable attribute.
Definition: multiattribute.h:275
string description
Attribute description.
Definition: attrprop.h:571
Base class for all TANGO device since version 5.
Definition: device_5.h:74
Attribute event configuration.
Definition: devapi.h:299
virtual bool get_transparency_reconnection()
Get device transparency (reconnection) mode.
Definition: Connection.h:215
Fundamental type for receiving data from device attribute polling buffers.
Definition: devapi.h:634
GroupAttrReplyList read_attribute(const std::string &a, bool fwd=true)
Reads an attribute on each device in the group.
struct timeval & get_write_date()
Retrieve the date of the last attribute writing.
Definition: w_attribute.h:196
virtual void lock(int lock_validity=DEFAULT_LOCK_VALIDITY)
Lock a device.
CORBA::Any * insert(Tango::DevVarFloatArray *data)
Create a CORBA Any object and insert a Tango::DevVarFloatArray data in it.
TemplCommand(string &cmd_name, void(DeviceImpl::*exe_method)(), bool(DeviceImpl::*state_method)(const CORBA::Any &), string &in_desc, string &out_desc)
Constructs a newly allocated TemplCommand object for a command with a name, an execution method,...
This class represents a writable attribute.
Definition: w_attribute.h:69
virtual vector< DeviceDataHistory > * command_history(string &cmd_name, int depth)
Retrieve command history from polling buffer.
bool check_alarm(const char *attr_name)
Check alarm for one attribute with a given name.
Definition: multiattribute.h:214
void delete_class_attribute_property(string class_name, DbData &db)
Delete class attribute property from database.
DeviceAttribute & get_data()
Get attribute data.
vector< TimedCmdData< T > > & get_data()
Get stack data.
string max_alarm
max alarm level
Definition: devapi.h:226
void set_value_date_quality(Tango::DevULong64 *p_data, time_t t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
Set internal attribute value, date and quality factor (for Tango::DevULong64 attribute data type).
virtual void get_property_list(const string &filter, vector< string > &prop_list)
Get list of property names for a device.
void set_disp_level(Tango::DispLevel level)
Set the command display level.
Definition: command.h:370
CORBA::Any * insert(Tango::DevVarDoubleStringArray *data)
Create a CORBA Any object and insert a Tango::DevVarDoubleStringArray data in it.
void set_write_value(Tango::DevBoolean val)
Set the writable scalar attribute value when the attribute data type is Tango::DevBoolean.
vector< string > extensions
For future extensions.
Definition: devapi.h:377
vector< Attribute * > attr_list
The Attribute objects vector.
Definition: multiattribute.h:269
DevicePipeBlob & operator>>(short &datum)
Extract data from a data blob.
void put_class_pipe_property(string class_name, DbData &db)
Put class pipe property value in database.
string unit
The attribute unit.
Definition: attribute.h:2022
void set_max_warning(const T &new_max_warning)
Set attribute maximum warning.
void exceptions(bitset< DevicePipeBlob::numFlags > fl)
Set exception flag.
Definition: pipe.h:295
TimedAttrData(const T *p_data, struct timeval when)
Create a new TimedAttrData object.
This class is a used to pass an attribute value history when the user directly fills the attribute po...
Definition: pollext.h:723
bitset< DevicePipeBlob::numFlags > state()
Get instance insertion/extraction state.
Definition: DevicePipe.h:1071
void push_pipe_event(const string &pipe_name, Tango::DevicePipeBlob *p_data, bool reuse_it=false)
Push a pipe event.
bool has_failed()
Check if the record was a failure.
Definition: devapi.h:661
void set_name(const string &blob_name)
Set blob name.
Definition: DevicePipe.h:155
GroupCmdReplyList command_inout(const std::string &c, const DeviceData &d, bool fwd=true)
Executes a Tango command with the same input data on a group.
MultiClassPipe * get_class_pipe()
Get a pointer to the class pipes object.
Definition: deviceclass.h:276
DbDatum get_host_list()
Get host list.
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.
Tango::DispLevel disp_level
The command display level.
Definition: devapi.h:133
struct Tango::ArchiveEventInfo ArchiveEventInfo
Attribute archive event configuration.
DbDatum get_class_property_list(string &class_name)
Get class property list.
bool is_max_value()
Check if the attribute has a maximum value.
Definition: w_attribute.h:145
PeriodicEventInfo per_event
Attribute periodic event info.
Definition: devapi.h:301
void set_value_date_quality(Tango::DevShort *p_data, time_t t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
Set internal attribute value, date and quality factor (for Tango::DevShort attribute data type).
TimedCmdData(T *p_data, time_t when)
Create a new TimedCmdData object.
static bool compare_exception(Tango::DevFailed &ex1, Tango::DevFailed &ex2)
Compare two Tango DevFailed exceptions for equality.
vector< string > extensions
For future extensions.
Definition: devapi.h:188
vector< TimedAttrData< T > > & get_data()
Get stack data.
string lower_name
The pipe name in lower case.
Definition: pipe.h:427
string & get_name()
Get device name.
Definition: device.h:240
string description
The attribute description.
Definition: attribute.h:2018
virtual Tango::ConstDevString dev_status()
Get device status.
DevErrorList errors
The error stack.
Definition: event.h:295
void server_cleanup()
Cleanup a Tango device server process before exit.
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.
CORBA::Any * insert(Tango::DevState data)
Create a CORBA Any object and insert a Tango::DevState data in it.
UserDefaultPipeProp()
Constructs a newly allocated UserDefaultPipeProp object.
Definition: pipedesc.h:68
virtual DeviceProxy * get_device_proxy()
Get associated DeviceProxy instance.
Definition: AttributeProxy.h:148
Device_5Impl(DeviceClass *device_class, string &dev_name)
Constructs a newly allocated Device_5Impl object from its name.
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.
virtual int get_logging_level(void)
Get current device's logging level.
virtual PipeInfoList * get_pipe_config(vector< string > &pipe_names)
Get pipe configuration for a list of pipes.
enum Tango::_AttrMemorizedType AttrMemorizedType
Possible memorized attribute type.
string & get_name()
Return the command name.
Definition: command.h:286
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.
void get_write_value(const Tango::ConstDevString *&ptr)
Retrieve the new value for writable attribute when attribute data type is Tango::DevString and the at...
Definition: w_attribute.h:311
void set_write_value(Tango::DevFloat val)
Set the writable scalar attribute value when the attribute data type is Tango::DevFloat.
AttributeDimension get_w_dimension()
Get the attribute write dimensions.
@ CONTINUE_ON_ERROR
Read attribute(s) even if one of the written attribute(s) failed.
Definition: tango_const.h:1135
DeviceClass * device_class
Pointer to the device-class object associated with the device.
Definition: device.h:3276
DeviceAttribute()
Create a DeviceAttribute object.
long get_max_dim_x()
Get attribute maximum data size in x dimension.
Definition: attribute.h:412
void set_server_version(const char *vers)
Set the device server version.
Definition: utils.h:357
virtual int subscribe_event(const string &att_name, EventType event, CallBack *cb)
Subscribe for event reception.
Definition: devapi.h:839
void clear()
Clear the stack.
Definition: pollext.h:752
void extract(const CORBA::Any &in, const Tango::DevVarLongStringArray *&data)
Extract a DevVarLongStringArray data from a CORBA Any object.
void set_value_date_quality(Tango::DevUChar *p_data, time_t t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
Set internal attribute value, date and quality factor (for Tango::DevUChar attribute data type).
void set_properties(Tango::MultiAttrProp< T > &props)
Set all modifiable attribute properties in one call.
bool is_data_ready_event()
Check if the data ready event is fired for this attribute.
Definition: attrdesc.h:536
void set_write_value(Tango::DevString val)
Set the writable scalar attribute value when the attribute data type is Tango::DevString.
High level class allowing the user to handle Tango group.
Definition: group.h:735
virtual vector< string > get_logging_target(void)
Get current device's logging targets.
virtual ~Device_5Impl()
The device desctructor.
Definition: device_5.h:154
void remove_command(const string &rem_cmd_name, bool free_it=false, bool clean_db=true)
Remove one command from the device command list.
DbDevice * db_dev
Pointer to the associated DbDevice object.
Definition: device.h:3284
DbDatum get_device_family(string &wildcard)
Get list of device family name.
virtual void set_attribute_config_5(const Tango::AttributeConfigList_5 &new_conf, const Tango::ClntIdent &cl_ident)
Set attribute(s) configuration.
vector< string > enum_labels
Enumeration labels when the attribute data type is DevEnum.
Definition: attribute.h:2132
Tango::DevVarLongArray * create_DevVarLongArray(DevLong *ptr, long length)
Create a DevVarLongArray type.
Definition: device.h:746
struct Tango::PeriodicEventInfo PeriodicEventInfo
Attribute periodic event configuration.
This class is a class representing a command in the TANGO device server pattern.
Definition: command.h:84
Attribute(vector< AttrProperty > &prop_list, Attr &tmp_attr, string &dev_name, long idx)
Create a new Attribute object.
void get_write_value(const Tango::DevLong64 *&ptr)
Retrieve the new value for writable attribute when attribute data type is Tango::DevLong64 and the at...
Definition: w_attribute.h:253
int get_data_elt_type(size_t ind)
Get root blob data element value type.
Definition: DevicePipe.h:970
void get_pipe_property(DbData &db)
Get device pipe property from database.
void get_write_value(const Tango::DevLong *&ptr)
Retrieve the new value for writable attribute when attribute data type is Tango::DevLong and the attr...
Definition: w_attribute.h:234
This class is a class representing a command in the template command model without input or output pa...
Definition: command.h:1292
string min_alarm_str
The attribute minimum alarm level.
Definition: attribute.h:2044
void encode_rgb24(unsigned char *rgb24, int width, int height)
Encode a 24 bit color image (no compression)
@ PULL_CALLBACK
Callback pull model.
Definition: devapi.h:415
Device_4Impl(DeviceClass *device_class, string &dev_name, string &desc)
Constructs a newly allocated Device_4Impl object from its name and its description.
ImageAttr(const char *name, long data_type, Tango::AttrWriteType w_type, long max_x, long max_y)
Constructs a newly allocated ImageAttr object.
void set_description(const char *def_desc)
Set default description property.
Definition: attrdesc.h:94
CORBA::Any * insert(DevVarBooleanArray &data)
Create a CORBA Any object and insert a Tango::DevVarBooleanArray data in it.
void read_alarm(string &status)
Add alarm message to device status.
DeviceProxy * device
Definition: event.h:94
void set_exceptions(except_flags fl)
Set one exception flag.
Definition: DeviceAttribute.h:1005
string out_type_desc
The command output parameter type.
Definition: command.h:1237
bitset< numFlags > exceptions()
Get exception flag.
Definition: DevicePipe.h:562
bool extract(const char *&str, unsigned char *&data, unsigned int &length)
Extract attribute data for DevEncoded attribute.
void set_write_value(Tango::DevULong64 *val, long x=1, long y=0)
Set the writable spectrum or image attribute value when the attribute data type is Tango::DevULong64.
bitset< numFlags > state()
Get instance extraction state.
Definition: DeviceAttribute.h:1029
virtual void cancel_all_polling_asynch_request()
Cancel all pending asynchronous request.
static TANGO_IMP_EXP ApiUtil * instance()
Retrieve the ApiUtil instance.
Definition: devapi.h:771
bool extract(vector< DevLong > &vl, vector< string > &vs)
Extract data from a DeviceData for the DevVarLongStringArray data type.
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.
A database object for a device server which can be used to query or modify server database informatio...
Definition: dbapi.h:158
bool has_failed() const
Check if an error has occurred.
Definition: group.h:492
Attr(const char *name, Tango::DispLevel disp=Tango::OPERATOR)
Constructs a newly allocated Attr object.
virtual string name()
Get attribute name.
Definition: AttributeProxy.h:140
Command(string &s, Tango::CmdArgType in, Tango::CmdArgType out)
Constructs a newly allocated Command object for a command from its name and its input and output para...
CORBA::Any * command_handler(DeviceImpl *device, string &command, const CORBA::Any &in_any)
Execute a command.
void delete_class_pipe_property(string class_name, DbData &db)
Delete class pipe property from database.
virtual PortableServer::POA_ptr _default_POA()
Return device POA.
void put_class_attribute_property(string class_name, DbData &db)
Put class attribute property value in database.
DevicePipe & operator>>(short &datum)
Extract data from a device pipe.
void set_str(const string &value_str)
Set string representation of the compound attribute property values.
Definition: attrprop.h:479
void set_quality(Tango::AttrQuality qua, bool send_event=false)
Set attribute data quality.
void set_unit(const char *def_unit)
Set default unit property.
Definition: attrdesc.h:104
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.
long write_attribute_asynch(const DeviceAttribute &d, bool fwd=true)
Writes an attribute on each device in the group asynchronously.
void set_value(Tango::DevLong64 *p_data, long x=1, long y=0, bool release=false)
Set internal attribute value (for Tango::DevLong64 attribute data type).
int get_dim_x()
Get attribute X dimension.
Definition: DeviceAttribute.h:1179
Command(const char *s, Tango::CmdArgType in, Tango::CmdArgType out, const char *in_desc, const char *out_desc, Tango::DispLevel level)
Constructs a newly allocated Command object for a command from its name, its input and output paramet...
TimedAttrData(const T *p_data, long x, const T *p_wr_data, long x_wr, Tango::AttrQuality qual, time_t when)
Create a new TimedAttrData object for a R/W attribute.
AttributeEventInfo events
The attribute events configuration.
Definition: devapi.h:339
void put_device_attribute_property(string dev_name, DbData &db)
Put device attribute property value in database.
string archive_rel_change
Archive relative change threshold.
Definition: devapi.h:282
void set_description(const string &def_desc)
Set default description property.
Definition: pipedesc.h:88
virtual bool is_attribute_polled(string &att_name)
Check if one attribute is polled.
Attribute configuration data extension.
Definition: devapi.h:205
void set_min_value(const char *min_value)
Set attribute minimum value.
static TANGO_NORETURN void re_throw_exception(Tango::DevFailed &ex, char *reason, char *desc, char *origin, Tango::ErrSeverity sever=Tango::ERR)
Re-throw a TANGO DevFailed exception with one more error.
Definition: except.h:1141
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.
void fire_event(vector< string > &filt_names, vector< double > &filt_vals, DevFailed *except=NULL)
Fire a user event for the attribute value.
Tango::AttrWriteType writable
The attribute writable flag.
Definition: attribute.h:1984
static TANGO_NORETURN void re_throw_exception(Tango::DevFailed &ex, char *reason, const char *desc, char *origin, Tango::ErrSeverity sever=Tango::ERR)
Re-throw a TANGO DevFailed exception with one more error.
Definition: except.h:1063
CORBA::Any * insert(Tango::DevUShort data)
Create a CORBA Any object and insert a Tango::DevUShort data in it.
Tango::DispLevel get_disp_level()
Return the pipe display level.
Definition: pipe.h:187
size_t length()
Get stack depth.
Definition: pollext.h:740
DeviceClass(string &s)
Construct a newly allocated DeviceClass object.
void delete_pipe_property(DbData &db)
Remove device pipe property from database.
string unit
Attribute unit.
Definition: attrprop.h:575
Tango::DevVarLong64Array * create_DevVarLong64Array(DevLong64 *ptr, long length)
Create a DevVarLong64Array type.
Definition: device.h:763
bool extract(std::vector< DevLong > &vl, std::vector< std::string > &vs)
Get command data and extract them (DevVarLongStringArray)
void set_enum_labels(vector< string > &def_enum_labels)
Set default enumeration labels.
Definition: attrdesc.h:284
Tango::Device_var get_d_var()
Get the associated CORBA object reference.
Definition: device.h:302
void put_device_pipe_property(string dev_name, DbData &db)
Put device pipe property value in database.
void add_device(DbDevInfo &dev_info)
Add a device into the database.
void get_write_value(Tango::DevFloat &val)
Retrieve the new value for writable attribute when attribute data type is Tango::DevFloat.
Definition: w_attribute.h:263
string type
The TANGO device type name.
Definition: deviceclass.h:416
This class represents a Tango attribute.
Definition: attribute.h:150
static TANGO_IMP_EXP void cleanup()
Destroy the ApiUtil instance.
Definition: ApiUtil.h:75
void set_min_warning(const char *def_min_warning)
Set default min_warning property.
Definition: attrdesc.h:184
TimedAttrData(const T *p_data, long x, Tango::AttrQuality qual, struct timeval when)
Create a new TimedAttrData object.
virtual CommandInfo command_query(string cmd_name)
Query the device for single command information.
void put_class_property(string class_name, DbData &db)
Put class property value in database.
TemplCommand(string &cmd_name, void(DeviceImpl::*exe_method)(), bool(DeviceImpl::*state_method)(const CORBA::Any &))
Constructs a newly allocated TemplCommand object for a command with a name, an execution method and a...
long get_tango_lib_release()
Get the TANGO library version number.
Definition: devapi.h:1000
void set_label(const char *def_label)
Set default label property.
Definition: attrdesc.h:84
virtual ~DeviceImpl()
The device desctructor.
void set_write_value(vector< Tango::DevShort > &val, long x=1, long y=0)
Set the writable spectrum or image attribute value when the attribute data type is Tango::DevShort.
bool is_there_subscriber(const string &att_name, EventType event_type)
Check if there is subscriber(s) listening for the event.
DbDatum get_object_list(string &wildcard)
Get object (free property) list.
void set_archive_event_rel_change(const char *def_archive_rel_change)
Set default archive event rel_change property.
Definition: attrdesc.h:264
AttrProp< T > max_warning
Attribute max_warning.
Definition: attrprop.h:611
int get_type()
Get Tango data type of the included data.
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.
TimedAttrData(const T *p_data, long x, long y, time_t when)
Create a new TimedAttrData object.
long max_x
The attribute maximum x dimension.
Definition: attribute.h:2004
void extract(const CORBA::Any &in, Tango::DevShort &data)
Extract a short data from a CORBA Any object.
bool is_max_alarm()
Check if the attribute is in maximum alarm condition .
Definition: attribute.h:246
void unregister_service(string &service_name, string &inst_name)
Unregister a service from the database.
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.
virtual Tango::DevCmdInfo_2 * command_query_2(const char *command)
Get command info.
int get_trace_level()
Get the process trace level.
Definition: utils.h:247
TimedAttrData(const T *p_data, const T *p_wr_data, Tango::AttrQuality qual, struct timeval when)
Create a new TimedAttrData object for a R/W attribute.
virtual void write_attr_hardware(vector< long > &attr_list)
Write the hardware for attributes.
Definition: device.h:503
Base class for all TANGO device-class class.
Definition: deviceclass.h:83
Pipe & operator<<(short &datum)
Insert data into a device pipe.
void set_value_date_quality(Tango::DevDouble *p_data, time_t t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
Set internal attribute value, date and quality factor (for Tango::DevDouble attribute data type).
virtual void get_events(int event_id, CallBack *cb)
Fire event callback in event pull model.
GroupCmdReplyList command_inout(const std::string &c, bool fwd=true)
Executes a Tango command on a group.
CORBA::Any * insert(Tango::DevFloat data)
Create a CORBA Any object and insert a Tango::DevFloat data in it.
string name
The pipe name.
Definition: pipe.h:423
void extract(const CORBA::Any &in, Tango::DevBoolean &data)
Extract a boolean data from a CORBA Any object.
void set_value_date_quality(Tango::DevLong *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
Set internal attribute value, date and quality factor (for Tango::DevLong attribute data type).
void get_write_value(Tango::DevLong64 &val)
Retrieve the new value for writable attribute when attribute data type is Tango::DevLong64.
Definition: w_attribute.h:243
CORBA::Any * insert(Tango::DevVarFloatArray &data)
Create a CORBA Any object and insert a Tango::DevVarFloatArray data in it.
bitset< numFlags > exceptions()
Get exception flag.
Definition: DeviceData.h:534
friend ostream & operator<<(ostream &str, DeviceAttributeHistory &dah)
Print a DeviceAttributeHistory instance.
CORBA::Any * execute(DeviceImpl *dev, const CORBA::Any &in_any)
Invoke the command execution method given at object creation time.
Definition: command.h:3287
CORBA::Any * insert(Tango::DevVarUShortArray *data)
Create a CORBA Any object and insert a Tango::DevVarUShortArray data in it.
void reset()
Reset the object.
Definition: group.h:501
bool is_archive_event()
Check if the archive event is fired manually for this attribute.
Definition: attribute.h:1701
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.
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.
void get_device_attribute_list(string &dev_name, vector< string > &att_list)
Get list of attribute with data in database for a specific device.
virtual ~Attr()
The object destructor.
AttrProp & operator=(const char *value_str)
Assign the string representation of the attribute property value.
Definition: attrprop.h:130
void server_run()
Run the CORBA event loop.
string & get_desc()
Return the pipe description.
Definition: pipe.h:173
void extract(const CORBA::Any &in, const Tango::DevVarFloatArray *&data)
Extract a float array from a CORBA Any object.
DeviceData()
Create a DeviceData object.
long get_size(bool fwd=true)
Return the number of devices in the hierarchy.
int max_dim_x
Max dim X.
Definition: devapi.h:175
void extract(const CORBA::Any &in, const Tango::DevVarDoubleStringArray *&data)
Extract a DevVarDoubleStringArray data from a CORBA Any object.
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.
virtual DeviceProxy * get_device(const std::string &device_name)
Returns a reference to the specified device.
string max_value
Max value.
Definition: devapi.h:184
size_t length()
Get stack depth.
Definition: pollext.h:927
bitset< numFlags > state()
Get instance insertion/extraction state.
Definition: DevicePipe.h:614
DbDatum get_device_domain(string &wildcard)
Get list of device domain names.
void set_write_value(Tango::DevBoolean *val, long x=1, long y=0)
Set the writable spectrum or image attribute value when the attribute data type is Tango::DevBoolean.
CORBA::Any * insert(Tango::DevVarCharArray &data)
Create a CORBA Any object and insert a Tango::DevVarCharArray data in it.
void extract(const CORBA::Any &in, Tango::DevULong &data)
Extract an unsigned long data from a CORBA Any object.
Tango::Attr_CheckVal max_value
The attribute maximum value in binary format.
Definition: attribute.h:2100
CORBA::Any * execute(DeviceImpl *dev, const CORBA::Any &in_any)
Invoke the command execution method given at object creation time.
Definition: command.h:2751
TemplCommand(const char *cmd_name, void(DeviceImpl::*exe_method)(), const char *in_desc, const char *out_desc, Tango::DispLevel level)
Constructs a newly allocated TemplCommand object for a command with a name, an execution method and a...
DeviceData & get_data()
Get command data.
virtual bool is_event_queue_empty(int event_id)
Check if the event queue is empty.
Attribute configuration change event callback execution data.
Definition: event.h:173
static TANGO_NORETURN void throw_named_exception(Tango::DeviceImpl *d, vector< long > &atts, const char *reason, const char *desc, const char *origin, Tango::ErrSeverity sever=Tango::ERR)
Throw a TANGO MultiDevFailed exception.
virtual void write(DeviceAttribute &da)
Write attribute value.
virtual vector< DeviceAttributeHistory > * history(int depth)
Get attribute history from polling buffer.
CORBA::ORB_ptr get_orb()
Get a reference to the CORBA ORB.
Definition: utils.h:222
int get_data_elt_type(size_t ind)
Get root blob data element value type.
Definition: w_pipe.h:153
virtual Tango::AttributeValueList_4 * read_attributes_4(const Tango::DevVarStringArray &names, Tango::DevSource source, const Tango::ClntIdent &cl_ident)
Read attribute(s) value.
void set_type(string &dev_type)
Set the TANGO device type name.
Definition: deviceclass.h:282
void extract(const CORBA::Any &in, Tango::DevString &data)
Extract a string from a CORBA Any object.
bool check_alarm()
Check if the attribute read value is below/above the alarm level.
@ PIPE_EVENT
Device pipe event.
Definition: tango_const.h:1093
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.
Device_3Impl(DeviceClass *device_class, string &dev_name, string &desc, Tango::DevState dev_state, string &dev_status)
Constructs a newly allocated Device_3Impl object from all its creation parameters.
WAttribute(vector< AttrProperty > &prop_list, Attr &tmp_attr, string &dev_name, long idx)
Create a new Writable Attribute object.
int get_dim_y()
Get attribute Y dimension.
Definition: DeviceAttribute.h:1187
TimedCmdData(DevErrorList errs, time_t when)
Create a new TimedCmdData object for errors.
Definition: pollext.h:856
Tango::TimeVal & get_date()
Get attribute date.
Definition: attribute.h:348
virtual vector< string > * get_attribute_list()
Query all attributes name.
void set_write_value(Tango::DevUChar val)
Set the writable scalar attribute value when the attribute data type is Tango::DevUChar.
Tango::AttrDataFormat get_data_format()
Get attribute data format.
Definition: attribute.h:322
void set_value(Tango::DevEncoded *p_data, long x=1, long y=0, bool release=false)
Set internal attribute value (for Tango::DevEncoded attribute data type).
void set_date(struct timeval &t)
Set attribute date.
Definition: attribute.h:368
There is one instance of this class for each device.
Definition: multiattribute.h:95
virtual DevicePipe read_pipe(const string &pipe_name)
Read a pipe.
static TANGO_NORETURN void throw_exception(char *reason, char *desc, const char *origin, Tango::ErrSeverity sever=Tango::ERR)
Generate and throw a TANGO DevFailed exception.
Definition: except.h:338
virtual long read_asynch()
Read attribute value asynchronously in polling model.
Definition: AttributeProxy.h:312
string & get_name()
Get attribute name.
Definition: attribute.h:310
virtual string locking_status()
Get device locking status.
vector< AttributeInfoEx > AttributeInfoListEx
vector of AttributeInfoEx structure
Definition: devapi.h:359
virtual ~Group()
Create a Group instance.
virtual void set_config(AttributeInfo &ai)
Set attribute configuration.
Tango::DevVarStringArray * create_DevVarStringArray(char **ptr, long length)
Create a DevVarStringArray type.
Definition: device.h:862
DevicePipe()
Create a DevicePipe object.
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.
void remove_attribute(string &rem_attr_name, bool free_it=false, bool clean_db=true)
Remove one attribute from the device attribute list.
virtual void pipe_factory()
Create all the pipes supported by this class of device.
Definition: deviceclass.h:145
void set_value(Tango::DevState *p_data, long x=1, long y=0, bool release=false)
Set internal attribute value (for Tango::DevState attribute data type).
virtual CommandInfoList * command_list_query()
Query the device for all commands information.
vector< string > extensions
Future extensions.
Definition: devapi.h:251
void get_min_value(T &min_value)
Gets attribute minimum value or throws an exception if the attribute does not have a minimum value.
string & get_name()
Returns the name of the attribute.
Definition: DeviceAttribute.h:1155
void set_write_value(vector< Tango::DevBoolean > &val, long x=1, long y=0)
Set the writable spectrum or image attribute value when the attribute data type is Tango::DevBoolean.
string desc
The device description.
Definition: device.h:3260
CORBA::Any * return_empty_any(const char *cmd)
Create and return an empty CORBA Any object.
Definition: utils.h:1183
void fire_archive_event(DevFailed *except=NULL)
Fire an archive event for the attribute value.
virtual AttributeInfoList * attribute_list_query()
Query the device for information on all attributes.
virtual string alias()
Returns device alias.
Extended attribute configuration data.
Definition: devapi.h:334
@ ATTR_CONF_EVENT
Attribute configuration change event.
Definition: tango_const.h:1090
TemplCommand(string &cmd_name, void(DeviceImpl::*exe_method)())
Constructs a newly allocated TemplCommand object for a command with a name and an execution method.
void set_name(string &new_name)
Set the command name.
Definition: command.h:293
Tango::DevVarDoubleArray * create_DevVarDoubleArray(double *ptr, long length)
Create a DevVarDoubleArray type.
Definition: device.h:795
void extract(const CORBA::Any &in, const Tango::DevVarDoubleArray *&data)
Extract a double array from a CORBA Any object.
void extract(const CORBA::Any &in, const Tango::DevVarStringArray *&data)
Extract a string array from a CORBA Any object.
string description
Pipe description.
Definition: devapi.h:373
void set_disp_level(Tango::DispLevel level)
Set the attribute display level.
Definition: attrdesc.h:446
WAttribute & get_w_attr_by_name(const char *attr_name)
Get Writable Attribute object from its name.
virtual AttributeInfoListEx * get_attribute_config_ex(vector< string > &att_names)
Get attribute configuration (extended) for a list of attributes.
void set_value_date_quality(Tango::DevUShort *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
Set internal attribute value, date and quality factor (for Tango::DevUShort attribute data type).
static TANGO_NORETURN void throw_exception(char *reason, const string &desc, char *origin, Tango::ErrSeverity sever=Tango::ERR)
Generate and throw a TANGO DevFailed exception.
Definition: except.h:797
virtual void get_property(string &prop_name, DbData &db)
Get single attribute property.
TimedAttrData(const T *p_data, long x, long y, Tango::AttrQuality qual, struct timeval when)
Create a new TimedAttrData object.
virtual vector< DeviceAttribute > * read_attributes(vector< string > &att_names)
Read the list of specified attributes.
void reset_exceptions(DevicePipeBlob::except_flags fl)
Reset one exception flag.
Definition: DevicePipe.h:1027
string get_data_elt_name(size_t ind)
Get root blob data element name.
Definition: w_pipe.h:144
void set_value_date_quality(Tango::DevUShort *p_data, time_t t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
Set internal attribute value, date and quality factor (for Tango::DevUShort attribute data type).
string & get_ds_name()
Get the device server name.
Definition: utils.h:307
string attr_name
The attribute name.
Definition: event.h:95
virtual Tango::DevAttrHistoryList_3 * read_attribute_history_3(const char *name, CORBA::Long n)
Read attribute value history.
TimedAttrData(const T *p_data, time_t when)
Create a new TimedAttrData object.
Tango::AttrQuality & get_quality()
Get attribute data quality.
Definition: attribute.h:386
Device_3Impl(DeviceClass *device_class, string &dev_name)
Constructs a newly allocated Device_3Impl object from its name.
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,...
User class to create a no dimension attribute object.
Definition: attrdesc.h:377
DoubleAttrProp< DevDouble > archive_abs_change
Attribute archive_abs_change.
Definition: attrprop.h:643
A device pipe blob.
Definition: DevicePipe.h:112
void encode_jpeg_gray8(unsigned char *gray8, int width, int height, double quality)
Encode a 8 bit grayscale image as JPEG format.
This class is used to store one element of a command history stack.
Definition: pollext.h:800
void set_max_value(const char *max_value)
Set attribute maximum value.
vector< Attribute * > & get_attribute_list()
Get the vector of attribute objects.
Definition: multiattribute.h:258
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.
long cmd_tag
The command tag.
Definition: devapi.h:104
UserDefaultAttrProp()
Constructs a newly allocated UserDefaultAttrProp object.
Definition: attrdesc.h:74
void set_pipe_serial_model(PipeSerialModel ser_model)
Set pipe serialization model.
void set_root_blob_name(const string &root_blob_name)
Set root blob name.
Definition: DevicePipe.h:875
TimedAttrData(const T *p_data, Tango::AttrQuality qual, struct timeval when)
Create a new TimedAttrData object.
static bool enable_exception(bool exception_mode=true)
Enable/Disable exception.
void exceptions(bitset< numFlags > fl)
Set exception flag.
Definition: DeviceAttribute.h:955
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.
string get_data_elt_name(size_t ind)
Get root blob data element name.
Definition: DevicePipe.h:961
void set_max_alarm(char *new_max_alarm)
Set attribute maximum alarm.
void set_value_date_quality(Tango::DevState *p_data, time_t t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
Set internal attribute value, date and quality factor (for Tango::DevState attribute data type).
TimedAttrData(DevErrorList &errs, time_t when)
Create a new TimedAttrData object for errors.
virtual void signal_handler(long signo)
Signal handler.
MultiAttrProp()
Default constructor.
Definition: attrprop.h:556
void set_write_value(Tango::DevLong64 *val, long x=1, long y=0)
Set the writable spectrum or image attribute value when the attribute data type is Tango::DevLong64.
ChangeEventInfo ch_event
Attribute change event info.
Definition: devapi.h:300
static TANGO_NORETURN void re_throw_exception(Tango::DevFailed &ex, const string &reason, const char *desc, const char *origin, Tango::ErrSeverity sever=Tango::ERR)
Re-throw a TANGO DevFailed exception with one more error.
Definition: except.h:1288
void set_write_value(vector< Tango::DevFloat > &val, long x=1, long y=0)
Set the writable spectrum or image attribute value when the attribute data type is Tango::DevFloat.
void set_delta_val(const char *def_delta_val)
Set default RDS alarm delta_val property.
Definition: attrdesc.h:214
virtual DeviceInfo const & info()
Get device info.
string name
The TANGO device class name.
Definition: deviceclass.h:408
virtual void get_property(string &prop_name, DbData &db)
Get a single device property.
static TANGO_NORETURN void re_throw_exception(Tango::DevFailed &ex, char *reason, char *desc, const char *origin, Tango::ErrSeverity sever=Tango::ERR)
Re-throw a TANGO DevFailed exception with one more error.
Definition: except.h:1102
string & get_assoc_name()
Get name of the associated writable attribute.
Definition: attribute.h:328
long get_polling_period()
Get attribute polling period.
Definition: attribute.h:433
const string & get_root_blob_name()
Get root blob name.
Definition: DevicePipe.h:883
TemplCommand(const char *cmd_name, void(DeviceImpl::*exe_method)())
Constructs a newly allocated TemplCommand object for a command with a name and an execution method.
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,...
A database object for a class which can be used to query or modify class properties.
Definition: dbapi.h:268
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.
CORBA::Any * insert(Tango::DevVarLong64Array *data)
Create a CORBA Any object and insert a Tango::DevVarLong64Array data in it.
string max_alarm_str
The attribute maximun alarm level.
Definition: attribute.h:2048
static TANGO_NORETURN void re_throw_exception(Tango::DevFailed &ex, const string &reason, const char *desc, const string &origin, Tango::ErrSeverity sever=Tango::ERR)
Re-throw a TANGO DevFailed exception with one more error.
Definition: except.h:1252
MultiClassAttribute * class_attr
Pointer to the class multi attribute object.
Definition: deviceclass.h:432
High level class which provides the client with an easy-to-use interface to TANGO devices.
Definition: DeviceProxy.h:56
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.
virtual bool is_event_queue_empty(int event_id)
Check if the event queue is empty.
Definition: AttributeProxy.h:603
GroupReplyList write_attribute_reply(long req_id, long tmo_ms=0)
Returns the acknowledgements of an asynchronous attribute writing.
void set_date(Tango::TimeVal &new_date)
Set attribute date.
Definition: attribute.h:354
DbDatum get_host_server_list(string &host_name)
Get list of device server processes running on a host.
void set_memorized()
Set the attribute as memorized in database (only for scalar and writable attribute) By default the se...
Base class for all TANGO device since version 2.
Definition: device_2.h:79
string out_type_desc
Ouptput parameter description.
Definition: devapi.h:108
static TANGO_NORETURN void throw_named_exception(vector< string > &atts, const char *reason, const char *desc, const char *origin, Tango::ErrSeverity sever=Tango::ERR)
Throw a TANGO MultiDevFailed exception.
Definition: except.h:1770
void get_class_pipe_property(string class_name, DbData &db)
Get class pipe property value.
Definition: Database.h:1191
static TANGO_NORETURN void re_throw_exception(Tango::DevFailed &ex, const string &reason, const string &desc, char *origin, Tango::ErrSeverity sever=Tango::ERR)
Re-throw a TANGO DevFailed exception with one more error.
Definition: except.h:1433
virtual void always_executed_hook(void)
Hook method.
Definition: device.h:455
DevicePipeBlob()
Create a DevicePipeBlob object.
AttrProp< T > delta_val
Attribute delta_val.
Definition: attrprop.h:619
void set_write_value(Tango::DevLong64 val)
Set the writable scalar attribute value when the attribute data type is Tango::DevLong64.
Tango::DevVarUShortArray * create_DevVarUShortArray(unsigned short *ptr, long length)
Create a DevVarUShortArray type.
Definition: device.h:811
string desc
The pipe description.
Definition: pipe.h:431
PortableServer::ObjectId_var & get_obj_id()
Get the associated CORBA object identifier.
Definition: device.h:322
void set_min_alarm(const char *def_min_alarm)
Set default min_alarm property.
Definition: attrdesc.h:164
This class represents a Tango compound attribute property which consists of two values.
Definition: attrprop.h:273
Device_4Impl(DeviceClass *device_class, string &dev_name)
Constructs a newly allocated Device_4Impl object from its name.
static TANGO_NORETURN void throw_exception(const char *reason, const string &desc, const char *origin, Tango::ErrSeverity sever=Tango::ERR)
Generate and throw a TANGO DevFailed exception.
Definition: except.h:582
GroupReplyList write_attribute(const std::vector< DeviceAttribute > &d, bool fwd=true)
Writes several attributes on each device in the group (using DeviceAttribute)
DServer * get_dserver_device()
Get a reference to the dserver device attached to the device server process.
bool dev_started
Device started flag (true when event sent due to device being (re)started and with only a possible bu...
Definition: event.h:379
Device_2Impl(DeviceClass *device_class, string &dev_name, string &desc)
Constructs a newly allocated Device_2Impl object from its name and its description.
This class is a used to store TANGO device server process data and to provide the user with a set of ...
Definition: utils.h:154
Fundamental type for receiving data from device command polling buffers.
Definition: devapi.h:511
const DevErrorList & get_err_stack()
Get the error stack.
Definition: DeviceAttribute.h:1117
long version
The device version.
Definition: device.h:3272
Device information for Database device creation.
Definition: dbapi.h:796
vector< NamedDevFailed > err_list
There is one element in this vector for each attribute which failed during its writing.
Definition: apiexcept.h:99
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.
static TANGO_NORETURN void re_throw_exception(Tango::DevFailed &ex, const char *reason, char *desc, char *origin, Tango::ErrSeverity sever=Tango::ERR)
Re-throw a TANGO DevFailed exception with one more error.
Definition: except.h:986
void set_name(const string &pipe_name)
Set pipe name.
Definition: DevicePipe.h:858
void stop_poll_command(const string &cmd_name)
Stop polling one command.
void unregister_signal(long signo)
Unregister a signal.
virtual string description()
Returns the device description as a string.
bool is_empty()
Check is the instance is empty.
User class to set forwarded attribute default properties.
Definition: fwdattrdesc.h:59
Fundamental type for sending and receiving data from device commands.
Definition: DeviceData.h:64
long assoc_ind
Index in the main attribute vector of the associated writable attribute (if any)
Definition: attribute.h:2076
TimedCmdData(DevErrorList errs, timeval when)
Create a new TimedCmdData object for errors.
Definition: pollext.h:866
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.
TimedAttrData(const T *p_data, long x, long y, Tango::AttrQuality qual, bool rel, struct timeval when)
Create a new TimedAttrData object.
virtual ~Attribute()
The attribute destructor.
virtual Tango::DevSource get_source()
Get device source.
void extract(const CORBA::Any &in, Tango::DevUShort &data)
Extract an unsigned short data from a CORBA Any object.
virtual Tango::AttributeConfigList_3 * get_attribute_config_3(const Tango::DevVarStringArray &names)
Get attribute(s) configuration.
virtual void unsubscribe_event(int ev_id)
Unsubsribe to attribute event.
Definition: AttributeProxy.h:521
long get_data_type()
Get attribute data type.
Definition: attribute.h:316
bool is_svr_starting()
Check if the device server process is in its starting phase.
Definition: utils.h:517
static TANGO_NORETURN void throw_exception(const char *reason, char *desc, char *origin, Tango::ErrSeverity sever=Tango::ERR)
Generate and throw a TANGO DevFailed exception.
Definition: except.h:228
asyn_req_type
Possible asynchronous request type.
Definition: devapi.h:400
void set_exceptions(except_flags fl)
Set one exception flag.
Definition: DevicePipe.h:578
void get_write_value(const Tango::DevULong *&ptr)
Retrieve the new value for writable attribute when attribute data type is Tango::DevULong and the att...
Definition: w_attribute.h:387
virtual void set_logging_level(int level)
Set the device logging level.
void set_val(const T &value)
Set the attribute property value.
Definition: attrprop.h:183
Base class for Tango device access.
Definition: Connection.h:56
void get_attribute_property(DbData &db)
Get device attribute property from database.
virtual void poll(int period)
Set attribute polling period.
string label
Label.
Definition: devapi.h:178
string name
The data element name.
Definition: DevicePipe.h:75
void set_value_date_quality(Tango::DevString *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
Set internal attribute value, date and quality factor (for Tango::DevString attribute data type).
TimedAttrData(const T *p_data, long x, Tango::AttrQuality qual, bool rel, struct timeval when)
Create a new TimedAttrData object.
User class to create a forwarded attribute object.
Definition: fwdattrdesc.h:118
vector< DbHistory > get_device_pipe_property_history(string &dev_name, string &pipe_name, string &prop_name)
Get device pipe property history from database.
bool extract(std::vector< double > &vd, std::vector< std::string > &vs)
Get command data and extract them (DevVarDoubleStringArray)
void set_value(Tango::DevUChar *p_data, long x=1, long y=0, bool release=false)
Set internal attribute value (for Tango::DevUChar attribute data type).
Data ready event callback execution data.
Definition: event.h:269
size_t get_data_elt_nb()
Get root blob data element number.
Definition: DevicePipe.h:944
Device import information from the database.
Definition: dbapi.h:816
Tango::AttrQuality quality
The attribute quality factor.
Definition: attribute.h:1975
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.
string & get_label()
Return the pipe label.
Definition: pipe.h:180
TimedAttrData(const T *p_data, long x, const T *p_wr_data, long x_wr, struct timeval when)
Create a new TimedAttrData object for a R/W attribute.
void set_write_value(vector< Tango::DevULong64 > &val, long x=1, long y=0)
Set the writable spectrum or image attribute value when the attribute data type is Tango::DevULong64.
virtual ~Command()
The object desctructor.
Definition: command.h:225
@ CALL_BACK
Callback mode request.
Definition: devapi.h:402
BlackBox * blackbox_ptr
The device black box pointer.
Definition: device.h:3248
virtual vector< DeviceAttribute > * write_read_attributes(vector< DeviceAttribute > &attr_in, vector< string > &r_names)
Write and read attribute(s)
Base class for Group reply.
Definition: group.h:141
Tango::PipeWriteType writable
Writable type (Read, Read-Write)
Definition: devapi.h:376
void set_max_warning(const char *new_max_warning)
Set attribute maximum warning.
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.
TimedAttrData(const T *p_data, long x, time_t when)
Create a new TimedAttrData object.
virtual int get_poll_period()
Get attribute polling period.
Command(const char *s, Tango::CmdArgType in, Tango::CmdArgType out)
Constructs a newly allocated Command object for a command from its name and its input and output para...
virtual ~Device_3Impl()
The device desctructor.
Definition: device_3.h:170
string max_warning
Max warning level.
Definition: devapi.h:228
Attribute periodic event configuration.
Definition: devapi.h:265
void extract(const CORBA::Any &in, const Tango::DevVarLongArray *&data)
Extract a long array from a CORBA Any object.
vector< DeviceImpl * > get_device_list(const string &name)
Get DeviceList from name.
long read_attributes_asynch(const std::vector< std::string > &al, bool fwd=true)
Reads several attributes on each device in the group asynchronously.
void reset_exceptions(except_flags fl)
Reset one exception flag.
Definition: DeviceData.h:542
void set_value(Tango::DevFloat *p_data, long x=1, long y=0, bool release=false)
Set internal attribute value (for Tango::DevFloat attribute data type).
~MultiAttribute()
The MultiAttribute desctructor.
bitset< DevicePipeBlob::numFlags > exceptions()
Get exception flag.
Definition: DevicePipe.h:1019
void get_write_value(const Tango::DevUShort *&ptr)
Retrieve the new value for writable attribute when attribute data type is Tango::DevUShort and the at...
Definition: w_attribute.h:349
Device information from the database.
Definition: dbapi.h:837
void set_value_date_quality(Tango::DevLong64 *p_data, time_t t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
Set internal attribute value, date and quality factor (for Tango::DevLong64 attribute data type).
virtual void set_source(Tango::DevSource sou)
Set device source.
CORBA::Any * insert(Tango::DevULong64 data)
Create a CORBA Any object and insert a Tango::DevULong64 data in it.
void get_write_value(const Tango::DevEncoded *&ptr)
Retrieve the new value for writable attribute when attribute data type is Tango::DevEncoded and the a...
Definition: w_attribute.h:444
DbDevice * get_db_device()
Get a pointer to the associated DbDevice object.
Definition: utils.h:1204
virtual void put_property(DbData &db)
Put property(ies) for a device.
Tango::AttributeInfo AttributeInfo
Attribute configuration data extension.
Tango::CmdArgType in_type
The command input parameter type.
Definition: command.h:1225
virtual void delete_property(string &prop_name)
Delete a single attribute property.
AttrProp< T > min_alarm
Attribute min_alarm.
Definition: attrprop.h:599
void set_min_alarm(const char *new_min_alarm)
Set attribute minimum alarm.
void set_write_value(Tango::DevState *val, long x=1, long y=0)
Set the writable spectrum or image attribute value when the attribute data type is Tango::DevState.
TemplCommand(const char *cmd_name, void(DeviceImpl::*exe_method)(), bool(DeviceImpl::*state_method)(const CORBA::Any &), const char *in_desc, const char *out_desc, Tango::DispLevel level)
Constructs a newly allocated TemplCommand object for a command with a name, an execution method,...
static TANGO_NORETURN void re_throw_exception(Tango::DevFailed &ex, const char *reason, const string &desc, const char *origin, Tango::ErrSeverity sever=Tango::ERR)
Re-throw a TANGO DevFailed exception with one more error.
Definition: except.h:1360
void unexport_server(string &ds_name)
Unexport all devices from a device server in the database.
TemplCommand(string &cmd_name, void(DeviceImpl::*exe_method)(), string &in_desc, string &out_desc)
Constructs a newly allocated TemplCommand object for a command with a name, an execution method and a...
virtual void poll_command(string &cmd_name, int polling_period)
Poll a command.
static TANGO_NORETURN void throw_exception(char *reason, char *desc, char *origin, Tango::ErrSeverity sever=Tango::ERR)
Generate and throw a TANGO DevFailed exception.
Definition: except.h:375
long delta_t
Delta time after which the read value must be checked again the last written value if the attribute h...
Definition: attribute.h:2128
virtual Tango::DevAttrHistoryList * read_attribute_history_2(const char *name, CORBA::Long n)
Read attribute value history.
T get_val()
Get the attribute property value.
Definition: attrprop.h:161
AttrProp & operator=(const string &value_str)
Assign the string representation of the attribute property value.
Definition: attrprop.h:143
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 ...
Group reply for a write_attribute execution.
Definition: group.h:404
Tango::Attr_CheckVal min_warning
The attribute minimum warning in binary format.
Definition: attribute.h:2088
bool is_command_polled(const string &cmd_name)
Check if command is polled.
void init_types()
Initialise command input and output types.
Definition: command.h:2167
DeviceImpl * get_device_by_name(const string &dev_name)
Get a device reference from its name.
EncodedAttribute()
Create a new EncodedAttribute object.
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.
Device export information to the database.
Definition: dbapi.h:861
TimedCmdData(T *p_data, struct timeval when)
Create a new TimedCmdData object.
DoubleAttrProp< DevDouble > rel_change
Attribute rel_change.
Definition: attrprop.h:631
virtual void set_attribute_config_4(const Tango::AttributeConfigList_3 &new_conf, const Tango::ClntIdent &cl_ident)
Set attribute(s) configuration.
Tango::Attr_CheckVal max_warning
The attribute maximum warning in binary format.
Definition: attribute.h:2092
CORBA::Any * insert(Tango::DevVarDoubleArray *data)
Create a CORBA CORBA::Any object and insert a Tango::DevVarDoubleArray data in it.
A database value.
Definition: dbapi.h:444
void extract(const CORBA::Any &in, const Tango::DevVarCharArray *&data)
Extract a char array from a CORBA Any object.
virtual ~DeviceClass()
The device destructor.
string & get_in_type_desc()
Return the input parameter description.
Definition: command.h:321
ImageAttr(const char *name)
Constructs a newly allocated ImageAttr object.
Definition: attrdesc.h:809
virtual void stop_poll_command(string &cmd_name)
Stop polling a command.
void set_value_date_quality(Tango::DevBoolean *p_data, time_t t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
Set internal attribute value, date and quality factor (for Tango::DevBoolean attribute data type).
void set_value(Tango::DevDouble *p_data, long x=1, long y=0, bool release=false)
Set internal attribute value (for Tango::DevDouble attribute data type).
TemplCommandInOut(const char *cmd_name, OUTARG(DeviceImpl::*exe_method)(INARG))
Constructs a newly allocated TemplCommandInOut object for a command with a name and an execution meth...
Definition: command.h:2030
Tango::CmdArgType out_type
The command output parameter type.
Definition: command.h:1229
bool check_min_value
Flag set to true if a minimum value is defined.
Definition: attribute.h:2112
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.
bool check_max_value
Flag set to true if a maximum alarm is defined.
Definition: attribute.h:2116
Tango::PipeWriteType writable
The pipe R/W type.
Definition: pipe.h:443
AttrDataFormat get_data_format()
Get attribute data format.
bool is_data_ready_event()
Check if the data ready event is fired for this attribute.
Definition: attribute.h:1721
DbDatum get_device_exported_for_class(string &class_name)
Get list of exported device for a class.
virtual void set_attribute_config_3(const Tango::AttributeConfigList_3 &new_conf)
Set attribute(s) configuration.
void set_value(Tango::DevString *p_data, long x=1, long y=0, bool release=false)
Set internal attribute value (for Tango::DevString attribute data type).
void set_write_value(Tango::DevFloat *val, long x=1, long y=0)
Set the writable spectrum or image attribute value when the attribute data type is Tango::DevFloat.
string & get_doc_url()
Get the TANGO device class documentation URL.
Definition: deviceclass.h:216
void set_write_value(Tango::DevULong64 val)
Set the writable scalar attribute value when the attribute data type is Tango::DevULong64.
vector< DeviceImpl * > device_list
The device(s) list.
Definition: deviceclass.h:424
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 at...
static Util * init(int argc, char *argv[])
Create and get the singleton object reference.
DevErrorList errors
The error stack.
Definition: event.h:465
const std::string & obj_name() const
Get object name.
Definition: group.h:209
void put_attribute_alias(string &att_name, string &att_alias)
Define attribute alias.
void add_server(string &ds_name, DbDevInfos &devs)
Create a device server process in database.
TangoSys_Pid get_pid()
Get the device server process identifier.
Definition: utils.h:328
string min_value
Min value.
Definition: devapi.h:183
virtual bool is_allowed(DeviceImpl *dev, const CORBA::Any &in_any)
Check if the command is allowed in the actual device state.
Definition: command.h:263
string lower_name
The command name in lower case.
Definition: command.h:1221
User class to create a two dimensions attribute object.
Definition: attrdesc.h:742
string device_name
The device name.
Definition: device.h:3256
This class is a class representing a pipe in the TANGO device server pattern.
Definition: pipe.h:78
virtual int event_queue_size(int event_id)
Get events number in queue.
Definition: AttributeProxy.h:576
void set_write_value(vector< string > &val, long x=1, long y=0)
Set the writable spectrum or image attribute value when the attribute data type is Tango::DevString.
static TANGO_NORETURN void re_throw_exception(Tango::DevFailed &ex, const char *reason, const char *desc, char *origin, Tango::ErrSeverity sever=Tango::ERR)
Re-throw a TANGO DevFailed exception with one more error.
Definition: except.h:911
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.
virtual Tango::AttributeConfigList_2 * get_attribute_config_2(const Tango::DevVarStringArray &names)
Get attribute(s) configuration.
This class provides method to deal with Tango::DevEncoded attribute format.
Definition: encoded_attribute.h:54
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.
bool is_change_event()
Check if the change event is fired manually for this attribute.
Definition: attrdesc.h:488
virtual void unsubscribe_event(int event_id)
Unsubscribe for event reception.
void set_write_value(Tango::DevShort *val, long x=1, long y=0)
Set the writable spectrum or image attribute value when the attribute data type is Tango::DevShort.
void export_device(DbDevExportInfo &info)
Export a device into the database.
void set_polling_period(long update)
Set the attribute polling update period.
Definition: attrdesc.h:452
bitset< numFlags > & is_alarmed()
Check if the attribute has an alarm defined.
Definition: attribute.h:276
bool operator>>(bool &datum)
The extract operators.
const string & get_name()
Get pipe name.
Definition: DevicePipe.h:866
void device_destroyer(const string &dev_name)
Delete device.
Class used to move/copy a complete device server process database configuration from one Tango host t...
Definition: dbapi.h:1026
ArchiveEventInfo arch_event
Attribute archive event info.
Definition: devapi.h:302
virtual Tango::DevAttrHistory_4 * read_attribute_history_4(const char *name, CORBA::Long n)
Read attribute value history.
=============================================================================
Definition: tango_const.h:36
TimedAttrData(const T *p_data, long x, struct timeval when)
Create a new TimedAttrData object.
void set_value_date_quality(Tango::DevLong *p_data, time_t t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
Set internal attribute value, date and quality factor (for Tango::DevLong attribute data type).
virtual string dev_name()
Return the device name as it is stored locally.
Definition: DeviceProxy.h:316
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.
Command information data extension.
Definition: devapi.h:132
vector< string > enum_labels
Enumerated attribute labels.
Definition: devapi.h:337
AttributeAlarmInfo alarms
The attribute alarms.
Definition: devapi.h:338
DbDatum get_server_list()
Get list of device server processes.
void set_value_date_quality(Tango::DevEncoded *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
Set internal attribute value, date and quality factor (for Tango::DevEncoded attribute data type).
void set_data_elt_names(vector< string > &names)
Set blob data element number and names.
Definition: pipe.h:258
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.
TimedAttrData(const T *p_data, long x, Tango::AttrQuality qual, time_t when)
Create a new TimedAttrData object.
void export_device(DeviceImpl *dev, const char *corba_dev_name="Unused")
Export a device.
virtual AttributeInfoEx attribute_query(string att_name)
Query the device for attribute information.
Definition: DeviceProxy.h:517
bool is_device_restarting(string &d_name)
Check if the device is actually restarted by the device server process admin device with its DevResta...
Definition: utils.h:1075
TimedAttrData(const T *p_data, long x, Tango::AttrQuality qual, bool rel, time_t when)
Create a new TimedAttrData object.
int get_attribute_poll_period(const string &att_name)
Get attribute polling period.
void set_write_value(Tango::DevDouble val)
Set the writable scalar attribute value when the attribute data type is Tango::DevDouble.
void get_write_value(Tango::DevShort &val)
Retrieve the new value for writable attribute when attribute data type is Tango::DevShort.
Definition: w_attribute.h:205
TimedAttrData(const T *p_data, const T *p_wr_data, time_t when)
Create a new TimedAttrData object for a R/W attribute.
virtual DeviceAttribute read()
Read attribute value.
void get_properties(Tango::MultiAttrProp< T > &props)
Get all modifiable attribute properties in one call.
void trigger_attr_polling(DeviceImpl *dev, const string &name)
Trigger polling for polled attribute.
Device_2Impl(DeviceClass *device_class, string &dev_name, string &desc, Tango::DevState dev_state, string &dev_status)
Constructs a newly allocated Device_2Impl object from all its creation parameters.
bool is_min_value()
Check if the attribute has a minimum value.
Definition: w_attribute.h:108
virtual long write_asynch(DeviceAttribute &da)
Write attribute value asynchrnously in polling model.
Definition: AttributeProxy.h:363
virtual ~Device_4Impl()
The device desctructor.
Definition: device_4.h:160
virtual Tango::AttributeValueList * read_attributes_2(const Tango::DevVarStringArray &names, Tango::DevSource source)
Read attribute(s) value.
AttrProp< DevLong > archive_period
Attribute archive_period.
Definition: attrprop.h:627
bool is_svr_shutting_down()
Check if the device server process is in its shutting down sequence.
Definition: utils.h:523
virtual CORBA::Any * command_inout_2(const char *in_cmd, const CORBA::Any &in_data, Tango::DevSource source)
Execute a command.
void set_write_value(vector< Tango::DevLong64 > &val, long x=1, long y=0)
Set the writable spectrum or image attribute value when the attribute data type is Tango::DevLong64.
bool call_failed()
Check if the call failed.
Definition: apiexcept.h:97
static TANGO_IMP long _sleep_between_connect
The loop sleeping time in case of the _daemon flag set to true.
Definition: utils.h:709
void push(TimedAttrData< T > const &elt)
Store a new element in the stack.
Pipe(const string &name, const Tango::DispLevel level, const PipeWriteType pwt=PIPE_READ)
Constructs a newly allocated Pipe object from its name and its display level.
string rel_change
Relative change threshold.
Definition: devapi.h:249
void set_value_date_quality(Tango::DevString *p_data, time_t t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
Set internal attribute value, date and quality factor (for Tango::DevString attribute data type).
void set_attr_serial_model(AttrSerialModel ser_model)
Set attribute serialization model.
void set_default_properties(UserDefaultAttrProp &prop)
Set default attribute properties.
DbDatum get_device_name(string &ds_name, string &class_name)
Get list of devices served by a device server process.
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...
Definition: attrdesc.h:478
long blackbox_depth
The device black box depth.
Definition: device.h:3252
void set_status(const string &new_status)
Set device status.
Definition: device.h:198
void set_archive_event_abs_change(const char *def_archive_abs_change)
Set default archive event abs_change property.
Definition: attrdesc.h:254
virtual int ping()
Ping a device.
Fundamental type for sending an dreceiving data to and from device attributes.
Definition: DeviceAttribute.h:73
bool is_attribute_polled(const string &att_name)
Check if attribute is polled.
vector< DbDevInfo > DbDevInfos
Some typedef and define.
Definition: dbapi.h:57
void set_write_value(vector< Tango::DevUChar > &val, long x=1, long y=0)
Set the writable spectrum or image attribute value when the attribute data type is Tango::DevUChar.
string doc_url
The TANGO device class documentation URL.
Definition: deviceclass.h:412
struct Tango::AttributeEventInfo AttributeEventInfo
Attribute event configuration.
static TANGO_NORETURN void throw_exception(char *reason, const char *desc, const char *origin, Tango::ErrSeverity sever=Tango::ERR)
Generate and throw a TANGO DevFailed exception.
Definition: except.h:265
virtual void add(const std::string &pattern, int tmo_ms=-1)
Attaches any device which name matches the specified pattern.
virtual bool ping(bool fwd=true)
Ping all devices in a group.
static TANGO_NORETURN void re_throw_exception(Tango::DevFailed &ex, const char *reason, const char *desc, const string &origin, Tango::ErrSeverity sever=Tango::ERR)
Re-throw a TANGO DevFailed exception with one more error.
Definition: except.h:1396
CORBA::Any * insert(Tango::DevDouble data)
Create a CORBA Any object and insert a Tango::DevDouble data in it.
MultiAttribute * dev_attr
Pointer to the multi attribute object.
Definition: device.h:3280
virtual void cancel_asynch_request(long id)
Cancel a pending asynchronous request.
Tango::CmdArgType get_out_type()
Return the output parameter type.
Definition: command.h:314
@ CHANGE_EVENT
Change event.
Definition: tango_const.h:1085
static TANGO_NORETURN void throw_exception(const char *reason, const char *desc, char *origin, Tango::ErrSeverity sever=Tango::ERR)
Generate and throw a TANGO DevFailed exception.
Definition: except.h:157
string attr_name
The attribute name.
Definition: event.h:195
vector< DeviceImpl * > & get_device_list()
Get the device object vector.
Definition: deviceclass.h:228
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.
void set_write_value(vector< Tango::DevUShort > &val, long x=1, long y=0)
Set the writable spectrum or image attribute value when the attribute data type is Tango::DevUShort.
string min_warning_str
The attribute minimun warning.
Definition: attribute.h:2060
virtual void init_types()
Init command parameters type.
Definition: command.h:273
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 specifie...
virtual void read_attr_hardware(vector< long > &attr_list)
Read the hardware to return attribute value(s).
Definition: device.h:473
Command(string &s, Tango::CmdArgType in, Tango::CmdArgType out, string &in_desc, string &out_desc, Tango::DispLevel level)
Constructs a newly allocated Command object for a command from its name, its input and output paramet...
struct Tango::PipeInfo PipeInfo
Base structure for pipe information.
~ImageAttr()
The object destructor.
Definition: attrdesc.h:818
DeviceProxy * device
Definition: event.h:288
string pipe_name
The pipe name.
Definition: event.h:461
void get_max_alarm(T &max_al)
Get attribute maximum alarm or throw an exception if the attribute does not have the maximum alarm se...
Tango::DispLevel get_disp_level()
Return the command display level.
Definition: command.h:335
bool is_min_warning()
Check if the attribute is in minimum warning condition .
Definition: attribute.h:253
Tango::CommandInfo CommandInfo
Command information data extension.
void set_max_value(const T &max_value)
Set attribute maximum value.
void get_write_value(Tango::DevBoolean &val)
Retrieve the new value for writable attribute when attribute data type is Tango::DevBoolean.
Definition: w_attribute.h:320
void set_max_warning(char *new_max_warning)
Set attribute maximum warning.
virtual Tango::AttributeValueList_5 * read_attributes_5(const Tango::DevVarStringArray &names, Tango::DevSource source, const Tango::ClntIdent &cl_ident)
Read attribute(s) value.
void get_write_value(const Tango::DevFloat *&ptr)
Retrieve the new value for writable attribute when attribute data type is Tango::DevFloat and the att...
Definition: w_attribute.h:273
string device_name
The device name.
Definition: event.h:376
virtual AttributeInfoEx get_config()
Get attribute configuration.
long out_type
Output parameter data type.
Definition: devapi.h:106
Base class for all TANGO device since version 4.
Definition: device_4.h:80
bool is_check_change_criteria()
Check if the change event criteria should be checked when firing the event manually.
Definition: attribute.h:1649
Tango::AttrDataFormat data_format
The attribute data format.
Definition: attribute.h:1998
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.
string format
Attribute format.
Definition: attrprop.h:587
static TANGO_NORETURN void throw_exception(const string &reason, const string &desc, const char *origin, Tango::ErrSeverity sever=Tango::ERR)
Generate and throw a TANGO DevFailed exception.
Definition: except.h:446
DbDatum get_device_member(string &wildcard)
Get list of device member name.
void get_write_value(const Tango::DevShort *&ptr)
Retrieve the new value for writable attribute when attribute data type is Tango::DevShort and the att...
Definition: w_attribute.h:215
string delta_t_str
The attribute delta time RDS alarm.
Definition: attribute.h:2072
string & get_version_str()
Get the IDL TANGO version.
Definition: utils.h:343
DbDatum get_server_class_list(string &ds_name)
Get list of Tango classes embedded in a device server proess.
static TANGO_NORETURN void re_throw_exception(Tango::DevFailed &ex, char *reason, const char *desc, const char *origin, Tango::ErrSeverity sever=Tango::ERR)
Re-throw a TANGO DevFailed exception with one more error.
Definition: except.h:1025
virtual void add_logging_target(const string &target_type_name)
Add a logging target to the device.
long read_attribute_asynch(const std::string &a, bool fwd=true)
Reads an attribute on each device in the group asynchronously.
An exception class.
Definition: apiexcept.h:80
void set_root_blob_name(const string &name)
Set the root data blob name.
Definition: pipe.h:166
~EncodedAttribute()
The attribute desctructor.
static TANGO_NORETURN void throw_exception(const CORBA::SystemException &ex, const string &origin)
Generate and throw a TANGO DevFailed exception.
virtual CommandInfo get_command_config(const string &cmd_name)
Get command information for a single command.
Definition: DeviceProxy.h:398
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.
void push(Tango::TimedCmdData< T > const &elt)
Store a new element in the stack.
void get_alias_from_attribute(string att_name, string &alias)
Get attribute alias form its name.
SpectrumAttr(const char *name, long data_type, long max_x, DispLevel level)
Constructs a newly allocated SpectrumAttr object.
Device_3Impl(DeviceClass *device_class, string &dev_name, string &desc)
Constructs a newly allocated Device_3Impl object from its name and its description.
AttrProp< DevLong > event_period
Attribute event_period.
Definition: attrprop.h:623
DeviceImpl(DeviceClass *device_class, string &dev_name, string &desc)
Constructs a newly allocated DeviceImpl object from its name and its description.
void get_write_value(Tango::DevUChar &val)
Retrieve the new value for writable attribute when attribute data type is Tango::DevUChar.
Definition: w_attribute.h:358
int ctr
The user counter. Set to 0 if not defined when sent by the server.
Definition: event.h:292
void set_write_value(Tango::DevLong val)
Set the writable scalar attribute value when the attribute data type is Tango::DevLong.
long max_y
The attribute maximum y dimension.
Definition: attribute.h:2010
Tango::Attr_Value value
The attribute value.
Definition: attribute.h:2104
static TANGO_NORETURN void throw_exception(char *reason, char *desc, const string &origin, Tango::ErrSeverity sever=Tango::ERR)
Generate and throw a TANGO DevFailed exception.
Definition: except.h:834
virtual Tango::AttributeValueList_3 * read_attributes_3(const Tango::DevVarStringArray &names, Tango::DevSource source)
Read attribute(s) value.
SpectrumAttr(const char *name)
Constructs a newly allocated SpectrumAttr object.
Definition: attrdesc.h:695
virtual Tango::DevCmdInfoList_2 * command_list_query_2()
Get device command list.
virtual void write_attributes(vector< DeviceAttribute > &attr_in)
Write the specified attributes.
DbDevFullInfo get_device_info(string &dev_name)
Get device information.
Tango::TimeVal when
The date when attribute was read.
Definition: attribute.h:1967
CORBA::Any * insert(Tango::DevVarShortArray *data)
Create a CORBA Any object and insert a Tango::DevVarShortArray data in it.
CORBA::Any * insert(Tango::DevVarDoubleStringArray &data)
Create a CORBA Any object and insert a Tango::DevVarDoubleStringArray data in it.
Command(string &s, Tango::CmdArgType in, Tango::CmdArgType out, string &in_desc, string &out_desc)
Constructs a newly allocated Command object for a command from its name, its input and output paramet...
void exceptions(bitset< numFlags > fl)
Set exception flag.
Definition: DevicePipe.h:542
string name
The command name.
Definition: command.h:1217
virtual DevState state()
Get device state.
void set_value_date_quality(Tango::DevLong64 *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
Set internal attribute value, date and quality factor (for Tango::DevLong64 attribute data type).
AttrProp(const T &value)
Create a new AttrProp object.
Definition: attrprop.h:80
DbDatum get_object_property_list(string &obj_name, string &wildcard)
Get object property list.
string delta_t
Delta t RDS.
Definition: devapi.h:229
Fundamental type for sending/receiving data from device pipes.
Definition: DevicePipe.h:811
string min_value_str
The attribute minimum value.
Definition: attribute.h:2052
Tango::Attr_CheckVal delta_val
Authorized delta between the last written value and the actual read.
Definition: attribute.h:2122
static TANGO_NORETURN void throw_exception(const string &reason, const string &desc, const string &origin, Tango::ErrSeverity sever=Tango::ERR)
Generate and throw a TANGO DevFailed exception.
Definition: except.h:412
Tango::Attr_CheckVal max_alarm
The attribute maximum alarm in binary format.
Definition: attribute.h:2084
cb_sub_model
Possible callback mode.
Definition: devapi.h:413
string display_unit
Display unit.
Definition: devapi.h:181
virtual int get_attribute_poll_period(string &att_name)
Get attribute polling period.
Database(CORBA::ORB *orb=NULL)
Create a TANGO Database object.
vector< string > get_data_elt_names()
Get root blob data elements name.
Definition: DevicePipe.h:952
void extract(const CORBA::Any &in, const Tango::DevVarShortArray *&data)
Extract a short array from a CORBA Any object.
User class to set pipe default properties.
Definition: pipedesc.h:59
struct Tango::ChangeEventInfo ChangeEventInfo
Attribute change event configuration.
void export_device(DbDevExportInfo &dev_info)
Export device info to the database.
GroupAttrReplyList read_attributes(const std::vector< std::string > &al, bool fwd=true)
Reads several attributes on each device in the group.
void set_change_event(bool implemented, bool detect=true)
Set a flag to indicate that the server fires change events manually, without the polling to be starte...
Definition: attribute.h:1631
void trigger_cmd_polling(DeviceImpl *dev, const string &name)
Trigger polling for polled command.
FwdAttr(const string &name, const string &root_attribute=RootAttNotDef)
Constructs a newly allocated FwdAttr object.
virtual int subscribe_event(EventType event, CallBack *cb)
Subscribe to attribute event.
virtual DeviceAttribute write_read(DeviceAttribute &da)
Write the Read attribute value.
string label
Pipe label.
Definition: devapi.h:374
virtual DeviceAttribute * read_reply(long id)
Get asynchronous read attribute call reply.
Definition: AttributeProxy.h:329
TimedAttrData(DevErrorList &errs, timeval when)
Create a new TimedAttrData object for errors.
bool operator>>(T &dest)
Get attribute data and extract them.
Definition: group.h:1778
virtual Tango::DevPipeData * read_pipe_5(const char *name, const Tango::ClntIdent &cl_ident)
Read pipe value.
int get_type()
Get attribute data type.
int max_dim_y
Max dim Y.
Definition: devapi.h:176
virtual string adm_name()
Return the administrator device name.
void set_value_date_quality(Tango::DevState *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
Set internal attribute value, date and quality factor (for Tango::DevState attribute data type).
TimedAttrData(const T *p_data, const T *p_wr_data, struct timeval when)
Create a new TimedAttrData object for a R/W attribute.
string & get_server_version()
Get the device server version.
Definition: utils.h:350
void remove_configuration()
Remove the attribute configuration from the database.
DeviceAttribute * attr_value
The attribute data.
Definition: event.h:97
DbClass * db_class
The associated DbClass object.
Definition: deviceclass.h:428
static TANGO_NORETURN void re_throw_exception(Tango::DevFailed &ex, const string &reason, const string &desc, const string &origin, Tango::ErrSeverity sever=Tango::ERR)
Re-throw a TANGO DevFailed exception with one more error.
Definition: except.h:1180
string label
The attribute label.
Definition: attribute.h:2014
void get_write_value(Tango::DevLong &val)
Retrieve the new value for writable attribute when attribute data type is Tango::DevLong.
Definition: w_attribute.h:224
void set_label(const string &def_label)
Set default label property.
Definition: pipedesc.h:78
MultiClassPipe * class_pipe
Pointer to the class multi pipe object.
Definition: deviceclass.h:436
void set_data_elt_nb(size_t nb)
Set blob data element number.
string & get_ds_exec_name()
Get the device server executable name.
Definition: utils.h:298
ImageAttr(const char *name, long data_type, long max_x, long max_y)
Constructs a newly allocated ImageAttr object.
CORBA::Any * insert(Tango::DevVarLongArray &data)
Create a CORBA Any object and insert a Tango::DevVarLongArray data in it.
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.
Tango::Attr_CheckVal min_value
The attribute minimum value in binary format.
Definition: attribute.h:2096
void set_value(Tango::DevString *p_data_str, Tango::DevUChar *p_data, long size, bool release=false)
Set internal attribute value (for Tango::DevEncoded attribute data type).
long get_max_dim_y()
Get attribute maximum data size in y dimension.
Definition: attribute.h:426
string min_warning
Min warning level.
Definition: devapi.h:227
void set_date(time_t new_date)
Set attribute date.
Definition: attribute.h:374
string & get_host_name()
Get the host name where the device server process is running.
Definition: utils.h:314
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.
long command_inout_asynch(const std::string &c, const DeviceData &d, bool fgt=false, bool fwd=true)
Executes a Tango command with same input data on each device in the group asynchronously.
void set_out_type_desc(const char *desc)
Set the output parameter description field.
Definition: command.h:356
void set_str(const char *value_str)
Set string representation of the attribute property value.
Definition: attrprop.h:197
static TANGO_NORETURN void throw_exception(const string &reason, char *desc, const string &origin, Tango::ErrSeverity sever=Tango::ERR)
Generate and throw a TANGO DevFailed exception.
Definition: except.h:687
virtual DevState state()
Get device state.
User class to create a one dimension attribute object.
Definition: attrdesc.h:635
TimedAttrData(const T *p_data, long x, long y, const T *p_wr_data, long x_wr, long y_wr, Tango::AttrQuality qual, bool rel, time_t when)
Create a new TimedAttrData object for a R/W attribute.
Tango::DispLevel disp_level
The pipe display level.
Definition: pipe.h:439
WPipe()
Constructs a newly allocated WPipe object.
Definition: w_pipe.h:64
string display_unit
The attribute display unit.
Definition: attribute.h:2030
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.
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.
DeviceImpl(DeviceClass *device_class, string &dev_name)
Constructs a newly allocated DeviceImpl object from its name.
void set_max_alarm(const char *new_max_alarm)
Set attribute maximum alarm.
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.
Device_5Impl(DeviceClass *device_class, string &dev_name, string &desc, Tango::DevState dev_state, string &dev_status)
Constructs a newly allocated Device_5Impl object from all its creation parameters.
void set_max_alarm(const char *def_max_alarm)
Set default max_alarm property.
Definition: attrdesc.h:174
TimedAttrData(const T *p_data, long x, const T *p_wr_data, long x_wr, Tango::AttrQuality qual, bool rel, struct timeval when)
Create a new TimedAttrData object for a R/W attribute.
string period
Event period.
Definition: devapi.h:266
void set_write_value(string &val)
Set the writable scalar attribute value when the attribute data type is Tango::DevString.
void set_event_rel_change(const char *def_rel_change)
Set default change event rel_change property.
Definition: attrdesc.h:234
void set_write_value(Tango::DevDouble *val, long x=1, long y=0)
Set the writable spectrum or image attribute value when the attribute data type is Tango::DevDouble.
void reset_exceptions(DevicePipeBlob::except_flags fl)
Reset one exception flag.
Definition: pipe.h:323
virtual Tango::DevInfo_3 * info_3()
Get device info.
void set_value_date_quality(Tango::DevEncoded *p_data, time_t t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
Set internal attribute value, date and quality factor (for Tango::DevEncoded attribute data type).
void set_exceptions(DevicePipeBlob::except_flags fl)
Set one exception flag.
Definition: DevicePipe.h:1035
Device_3Impl(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 Device_3Impl object from all its creation parameters with some default v...
ErrorManagementType
Possible error management with write_read_attribute call.
Definition: tango_const.h:1133
void length(long nb)
Reserve memory for stack elements.
Definition: pollext.h:934
DevicePipe & operator<<(short &datum)
Insert data into a device pipe.
static TANGO_NORETURN void throw_exception(const string &reason, const char *desc, const char *origin, Tango::ErrSeverity sever=Tango::ERR)
Generate and throw a TANGO DevFailed exception.
Definition: except.h:514
MultiAttribute * get_device_attr()
Get device multi attribute object.
Definition: device.h:260
void set_in_type_desc(const char *desc)
Set the input parameter description field.
Definition: command.h:342
virtual void set_timeout_millis(int timeout)
Set device timeout.
DbDatum get_device_service_list(string &service_name)
Get services list from database.
void fire_change_event(DevFailed *except=NULL)
Fire a change event for the attribute value.
void set_min_warning(char *new_min_warning)
Set attribute minimum warning.
bool has_failed()
Check if the call failed.
Definition: DeviceAttribute.h:1037
void set_data_elt_nb(size_t nb)
Set blob data element number.
Definition: DevicePipe.h:909
void poll_attribute(const string &att_name, int period)
Start polling one attribute.
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 an...
void set_class_list(vector< DeviceClass * > *list)
Set the DeviceClass list pointer.
Definition: utils.h:364
vector< DbHistory > get_device_attribute_property_history(string &dev_name, string &prop_name, string &att_name)
Get device attribute property history from database.
Miscellaneous utility methods usefull in a Tango client.
Definition: ApiUtil.h:55
void set_display_unit(const char *def_disp_unit)
Set default display unit property.
Definition: attrdesc.h:124
void get_alias(string dev_name, string &dev_alias)
Get device alias from its name.
virtual DeviceData command_inout_reply(long id)
Check an asynchronous command_inout answer is arrived.
static TANGO_NORETURN void throw_named_exception(Tango::DeviceImpl *d, long att_idx, const char *reason, const char *desc, const char *origin, Tango::ErrSeverity sever=Tango::ERR)
Throw a TANGO MultiDevFailed exception.
bool is_val()
Check if the attribute property value has been assigned.
Definition: attrprop.h:218
AttributeProxy(string &name)
Create a AttributeProxy object.
SerialModel get_serial_model()
Get the serialization model.
Definition: utils.h:394
bool is_empty()
Check if the DeviceData instance is empty.
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 att...
virtual long pending_asynch_call(asyn_req_type req)
Get pending asynchronous request number.
Definition: DeviceProxy.h:1172
DbDatum get_server_name_list()
Get list of all Tango device server process.
bool is_check_archive_criteria()
Check if the archive event criteria should be checked when firing the event manually.
Definition: attrdesc.h:523
DoubleAttrProp & operator=(const vector< T > &values)
Assign the values of the compound attribute property.
Definition: attrprop.h:339
virtual void read_attr(Attribute &attr)
Set the attribute read value.
Definition: device.h:486
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.
virtual CORBA::Any * command_inout_4(const char *in_cmd, const CORBA::Any &in_data, Tango::DevSource source, const Tango::ClntIdent &cl_ident)
Execute a command.
AttrQuality & get_quality()
Get attribute quality factor.
Definition: DeviceAttribute.h:1271
long write_attribute_asynch(const std::vector< DeviceAttribute > &d, bool fwd=true)
Writes several attributes on each device in the group asynchronously.
void put_attribute_property(DbData &db)
Update device attribute property in database.
bool check_alarm()
Check alarm on all attribute(s) with an alarm defined.
void device_destroyer(const char *dev_name)
Delete device.
string attr_name
The attribute name.
Definition: event.h:289
void set_write_value(vector< Tango::DevLong > &val, long x=1, long y=0)
Set the writable spectrum or image attribute value when the attribute data type is Tango::DevLong.
DoubleAttrProp(const string &value_str)
Create a new DoubleAttrProp object.
Definition: attrprop.h:323
CORBA::Any * insert(Tango::DevVarDoubleArray &data)
Create a CORBA Any object and insert a Tango::DevVarDoubleArray data in it.
virtual string status()
Get device status.
CORBA::Any * insert()
Create an empty CORBA Any object.
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)
Set internal attribute value, date and quality factor (for Tango::DevEncoded attribute data type when...
Tango::AttrWriteType get_writable()
Get the attribute writable type (RO/WO/RW).
Definition: attribute.h:304
vector< string > enum_labels
Enumeration labels (For DevEnum data type)
Definition: attrprop.h:647
void set_out_type_desc(string &desc)
Set the output parameter description field.
Definition: command.h:363
void set_value(Tango::DevULong *p_data, long x=1, long y=0, bool release=false)
Set internal attribute value (for Tango::DevULong attribute data type).
void set_min_value(const T &min_value)
Set attribute minimum value.
DbDatum get_class_inheritance_for_device(string &dev_name)
Get device inheritance scheme.
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 spe...
void set_write_value(Tango::DevString *val, long x=1, long y=0)
Set the writable spectrum or image attribute value when the attribute data type is Tango::DevString.
size_t pending_asynch_call(asyn_req_type ty)
Get pending asynchronous requets number.
Definition: ApiUtil.h:98
bool is_polled()
Check if the attribute is polled .
PortableServer::POA_ptr get_poa()
Get a reference to the CORBA Portable Object Adapter (POA)
Definition: utils.h:233
string event
The event name.
Definition: event.h:196
void get_write_value(Tango::DevString &val)
Retrieve the new value for writable attribute when attribute data type is Tango::DevString.
Definition: w_attribute.h:301
virtual bool is_polled()
Check if the attribute is polled.
virtual int get_command_poll_period(string &cmd_name)
Get command polling period.
string label
Attribute label.
Definition: attrprop.h:567
void set_value(Tango::EncodedAttribute *attr)
Set internal attribute value (for Tango::DevEncoded attribute data type).
void delete_attribute_property(DbData &db)
Remove device attribute property from database.
Asynchronous write attribute execution callback data.
Definition: devasyn.h:183
AttrWriteType writable
Writable type (Read, Write,...)
Definition: devapi.h:172
Asynchronous read attribute execution callback data.
Definition: devasyn.h:130
virtual bool contains(const std::string &pattern, bool fwd=true)
Check if the hierarchy contains groups and/or devices which name matches the specified pattern.
virtual DeviceAttribute write_read_attribute(DeviceAttribute &attr_in)
Write and read a single attribute.
@ MEMORIZED_WRITE_INIT
Memorized attribute with memorized value writen at initialization.
Definition: devapi.h:319
User class to set attribute default properties.
Definition: attrdesc.h:65
@ PUSH_CALLBACK
Callback push model.
Definition: devapi.h:414
virtual void push_event(EventData *ed)
Event callback method.
Definition: devasyn.h:284
void set_memorized_init(bool write_on_init)
Set the initialisation flag for memorized attributes true = the setpoint value will be written to the...
Definition: attrdesc.h:467
virtual bool is_locked_by_me()
Check if the device is locked by the caller.
TemplCommandOut(const char *cmd_name, OUTARG(DeviceImpl::*exe_method)())
Constructs a newly allocated TemplCommandOut object for a command with a name and an execution method...
Definition: command.h:3123
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.
string get_info()
Get database info.
Group reply for a command execution.
Definition: group.h:470
AttrProp & operator=(const T &value)
Assign the value of the attribute property.
Definition: attrprop.h:113
Tango::DevVarFloatArray * create_DevVarFloatArray(float *ptr, long length)
Create a DevVarFloatArray type.
Definition: device.h:779
virtual Tango::AttributeValueList_4 * write_read_attributes_4(const Tango::AttributeValueList_4 &values, const Tango::ClntIdent &cl_ident)
Write then read attribute(s) value.
void delete_property(DbData &db)
Remove device property from database.
bool is_max_warning()
Check if the attribute is in maximum warning condition .
Definition: attribute.h:260
void set_min_warning(const T &new_min_warning)
Set attribute minimum warning.
Group reply for a read_attribute execution.
Definition: group.h:535
string get_data_elt_name(size_t ind)
Get blob data element name.
DevicePipeBlob(const string &blob_name)
Create a DevicePipeBlob object with name.
void delete_server(string &ds_name)
Delete a device server process from the database.
void reset_exceptions(except_flags fl)
Reset one exception flag.
Definition: DeviceAttribute.h:983
virtual ~Pipe()
The object desctructor.
Definition: pipe.h:112
const DevErrorList & get_err_stack() const
Get error stack.
Definition: group.h:220
vector< Command * > command_list
The command(s) list.
Definition: deviceclass.h:420
Pipe & get_pipe_by_name(const string &pipe_name, const string &dev_name)
Get a reference to a pipe object.
virtual void write_pipe_5(const Tango::DevPipeData &pipe_value, const Tango::ClntIdent &cl_ident)
Write pipe value.
This class is used to store one element of an attribute history stack.
Definition: pollext.h:153
void set_value_date_quality(Tango::DevULong *p_data, time_t t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
Set internal attribute value, date and quality factor (for Tango::DevULong attribute data type).
long get_nb_read()
Get the number of read value.
Pipe()
Constructs a newly allocated Pipe object.
Definition: pipe.h:89
void set_d_var(Tango::Device_ptr d)
Set the associated CORBA object reference.
Definition: device.h:291
vector< T > get_val()
Get the vector containing the compound attribute property values.
Definition: attrprop.h:415
static TANGO_NORETURN void throw_exception(const string &reason, const char *desc, const string &origin, Tango::ErrSeverity sever=Tango::ERR)
Generate and throw a TANGO DevFailed exception.
Definition: except.h:480
vector< DbHistory > get_property_history(string &obj_name, string &prop_name)
Get object property history from database.
void set_min_value(char *min_value)
Set attribute minimum value.
CORBA::Any * insert(Tango::DevVarULongArray &data)
Create a CORBA Any object and insert a Tango::DevVarULongArray data in it.
~Util()
The class destructor.
void get_device_alias(string dev_alias, string &dev_name)
Get device name from its alias.
void extract(const CORBA::Any &in, Tango::DevFloat &data)
Extract a float data from a CORBA Any object.
UserDefaultFwdAttrProp()
Constructs a newly allocated UserDefaultAttrProp object.
Definition: fwdattrdesc.h:68
Tango::DevState & get_state()
Get device state.
Definition: device.h:216
void reset_exceptions(except_flags fl)
Reset one exception flag.
Definition: DevicePipe.h:570
virtual void remove_all()
Removes all elements in the group.
vector< DbHistory > get_class_property_history(string &class_name, string &prop_name)
Get class property history from database.
CORBA::Any * insert(Tango::DevVarULong64Array &data)
Create a CORBA Any object and insert a Tango::DevVarULong64Array data in it.
long data_type
The attribute data type.
Definition: attribute.h:1992
vector< DeviceImpl * > & get_device_list_by_class(const char *class_name)
Get the list of device references for a given TANGO class.
void set_trace_level(int level)
Set the process trace level.
Definition: utils.h:240
void get_device_from_alias(string alias, string &dev_name)
Get device name from its alias.
string in_type_desc
The command input parameter description.
Definition: command.h:1233
void get_write_value(Tango::DevULong64 &val)
Retrieve the new value for writable attribute when attribute data type is Tango::DevULong64.
Definition: w_attribute.h:396
string standard_unit
Attribute standard_unit.
Definition: attrprop.h:579
vector< Pipe * > & get_pipe_list(const string &dev_name)
Get the pipe object vector.
string & get_label()
Get attribute label property.
Definition: attribute.h:380
long get_data_size()
Get attribute data size.
Definition: attribute.h:400
DeviceAttribute(string &name, vector< short > &val, int dim_x, int dim_y)
Create a DeviceAttribute object from attribute name and value for image attribute.
void get_max_warning(T &max_war)
Get attribute maximum warning or throw an exception if the attribute does not have the maximum warnin...
string root_attr_name
Root attribute name (in case of forwarded attribute)
Definition: devapi.h:335
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.
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.
DbClass * get_db_class()
Get a pointer to the associated DbClass object.
Definition: deviceclass.h:264
void rename_server(const string &old_ds_name, const string &new_ds_name)
Rename a device server in the database.
vector< string > extensions
Future extensions.
Definition: devapi.h:267
virtual void set_attribute_config(AttributeInfoList &atts)
Set attribute configuration.
void exceptions(bitset< numFlags > fl)
Set exception flag.
Definition: DeviceData.h:514
void get_write_value(const Tango::DevBoolean *&ptr)
Retrieve the new value for writable attribute when attribute data type is Tango::DevBoolean and the a...
Definition: w_attribute.h:330
vector< DbHistory > get_class_attribute_property_history(string &class_name, string &att_name, string &prop_name)
Get class attribute property history from database.
void register_signal(long signo, bool own_handler=false)
Register a signal.
std::vector< std::string > get_device_list(bool fwd=true)
Returns the list of devices currently in the hierarchy.
Base class for all TANGO device.
Definition: device.h:91
void get_min_alarm(T &min_al)
Get attribute minimum alarm or throw an exception if the attribute does not have the minimum alarm.
DevErrorList errors
The error stack.
Definition: event.h:99
void set_device_attr(MultiAttribute *ptr)
Set device multi attribute object.
Definition: device.h:270
string format
The attribute format.
Definition: attribute.h:2036
void fill_attr_polling_buffer(DeviceImpl *dev, string &att_name, AttrHistoryStack< T > &data)
Fill polling buffer for polled attribute.
MultiAttribute(string &dev_name, DeviceClass *dev_class, DeviceImpl *dev)
Create a new MultiAttribute object.
TimedAttrData(const T *p_data, Tango::AttrQuality qual, bool rel, time_t when)
Create a new TimedAttrData object.
int get_command_poll_period(const string &cmd_name)
Get command polling period.
void get_write_value(Tango::DevUShort &val)
Retrieve the new value for writable attribute when attribute data type is Tango::DevUShort.
Definition: w_attribute.h:339
string name
The attribute name.
Definition: attribute.h:1980
bool has_failed() const
Check if an error has occurred.
Definition: group.h:187
void set_obj_id(PortableServer::ObjectId_var o)
Set the associated CORBA object identifier.
Definition: device.h:312
virtual void add(Group *group, int tmo_ms=-1)
Attaches a (sub) group.
string & get_name()
Get the TANGO device class name.
Definition: deviceclass.h:210
A high level object which contains the link to the database.
Definition: Database.h:53
CORBA::Any * insert(Tango::DevVarStringArray &data)
Create a CORBA Any object and insert a Tango::DevVarStringArray data in it.
void set_min_alarm(char *new_min_alarm)
Set attribute minimum alarm.
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.
int get_written_dim_x()
Get the attribute write X dimension.
Definition: DeviceAttribute.h:1195
DbDatum get_device_class_list(string &ds_name)
Get list of devices/classes for a specified device server.
void init_types()
Initialise command input and output types.
Definition: command.h:2723
TemplCommand()
Constructs a newly allocated Command object.
Definition: command.h:1303
virtual DbDevImportInfo import_info()
Query the device for import info from the database.
DevicePipe * pipe_value
The pipe data.
Definition: event.h:463
SpectrumAttr(const char *name, long data_type, long max_x)
Constructs a newly allocated SpectrumAttr object.
Single element group reply for a read attribute execution.
Definition: group.h:339
void add_attribute(Attr *new_attr)
Add a new attribute to the device attribute list.
void set_value(Tango::DevShort *p_data, long x=1, long y=0, bool release=false)
Set internal attribute value (for Tango::DevShort attribute data type).
virtual CORBA::Any * execute(DeviceImpl *dev, const CORBA::Any &in_any)=0
Execute the command.
void add_class_to_list(DeviceClass *cl)
Add a DeviceClass to the DeviceClass list pointer.
Definition: utils.h:371
Class used to retrieve database object history.
Definition: dbapi.h:725
CORBA::Any * insert(Tango::DevVarUShortArray &data)
Create a CORBA Any object and insert a Tango::DevVarUShortArray data in it.
void set_assoc_ind(long val)
Set index of the associated writable attribute.
Definition: attribute.h:342
DeviceImpl * get_device_by_name(const char *dev_name)
Get a device reference from its name.
Attribute change event configuration.
Definition: devapi.h:248
Device_2Impl(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 Device_2Impl object from all its creation parameters with some default v...
void set_polling_before_9(bool val)
Set the polling thread algorithm to the algorithum used before Tango 9.
Definition: utils.h:507
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.
TimedAttrData(const T *p_data, Tango::AttrQuality qual, time_t when)
Create a new TimedAttrData object.
vector< DeviceImpl * > & get_device_list_by_class(const string &class_name)
Get the list of device references for a given TANGO class.
void set_type(const char *dev_type)
Set the TANGO device type name.
Definition: deviceclass.h:288
virtual void device_factory(const Tango::DevVarStringArray *dev_list)=0
Create device(s).
bool operator>>(T &dest)
Get command data and extract them.
Definition: group.h:1716
This class is a used to pass a command result history when the user directly fills the command pollin...
Definition: pollext.h:910
void encode_gray16(unsigned short *gray16, int width, int height)
Encode a 16 bit grayscale image (no compression)
vector< Command * > & get_command_list()
Get the command object vector.
Definition: deviceclass.h:234
virtual void command_factory()=0
Create command objects for all command supported by this class of device.
string & get_status()
Get device status.
Definition: device.h:191
@ NONE
The attribute is not memorized.
Definition: devapi.h:317
void delete_device_pipe_property(string dev_name, DbData &db)
Delete device pipe property from database.
string delta_val
Delta val RDS.
Definition: devapi.h:230
string standard_unit
Standard unit.
Definition: devapi.h:180
TimedAttrData(const T *p_data, long x, long y, Tango::AttrQuality qual, bool rel, time_t when)
Create a new TimedAttrData object.
DeviceProxy * device
Definition: event.h:374
virtual DeviceData command_inout(string &cmd_name)
Execute a command (without input data)
CORBA::Any * insert(Tango::DevVarLong64Array &data)
Create a CORBA Any object and insert a Tango::DevVarLong64Array data in it.
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.
void set_exceptions(except_flags fl)
Set one exception flag.
Definition: DeviceData.h:550
virtual void write_attributes_4(const Tango::AttributeValueList_4 &values, const Tango::ClntIdent &cl_ident)
Write attribute(s) value.
void length(long nb)
Reserve memory for stack elements.
Definition: pollext.h:747
static TANGO_NORETURN void throw_exception(char *reason, const string &desc, const string &origin, Tango::ErrSeverity sever=Tango::ERR)
Generate and throw a TANGO DevFailed exception.
Definition: except.h:761
virtual DeviceProxy * get_device(long idx)
Returns a reference to the "idx-th" device in the hierarchy.
Command(const char *s, Tango::CmdArgType in, Tango::CmdArgType out, const char *in_desc, const char *out_desc)
Constructs a newly allocated Command object for a command from its name, its input and output paramet...
void server_set_event_loop(bool(*f_ptr)())
Set the server event loop.
Definition: utils.h:681
static TANGO_NORETURN void re_throw_exception(Tango::DevFailed &ex, const char *reason, const string &desc, const string &origin, Tango::ErrSeverity sever=Tango::ERR)
Re-throw a TANGO DevFailed exception with one more error.
Definition: except.h:1324
CORBA::Any * insert(const char *data)
Create a CORBA Any object and insert a Tango::DevString data in it.
@ NOT_KNOWN
Device too old to get this info.
Definition: devapi.h:316
CORBA::Any * insert(Tango::DevLong64 data)
Create a CORBA Any object and insert a Tango::DevLong64 data in it.
string event
The event name.
Definition: event.h:290
DbDatum get_device_alias_list(string &filter)
Get device alias list.
A high level object for a device interface to the database.
Definition: DbDevice.h:52
virtual Tango::DevCmdHistoryList * command_inout_history_2(const char *command, CORBA::Long n)
Read command value history.
TemplCommand(const char *cmd_name, void(DeviceImpl::*exe_method)(), const char *in_desc, const char *out_desc)
Constructs a newly allocated TemplCommand object for a command with a name, an execution method and a...
void decode_gray16(DeviceAttribute *attr, int *width, int *height, unsigned short **gray16)
Decode a 16 bits grayscale image (GRAY16) and returns a 16 bits gray scale image.
CORBA::Any * insert(DevVarBooleanArray *data)
Create a CORBA Any object and insert a Tango::DevVarBooleanArray data in it.
bool is_change_event()
Check if the change event is fired manually (without polling) for this attribute.
Definition: attribute.h:1642
DbDatum get_class_list(string &wildcard)
Get Tango class list.
void set_write_value(Tango::DevState val)
Set the writable scalar attribute value when the attribute data type is Tango::DevState.
AttrProp< T > max_alarm
Attribute max_alarm.
Definition: attrprop.h:603
void get_write_value(Tango::DevState &val)
Retrieve the new value for writable attribute when attribute data type is Tango::DevState.
Definition: w_attribute.h:415
void delete_attribute_alias(string &att_alias)
Delete attribute alias.
virtual DeviceAttribute * read_attribute_reply(long id)
Check if an asynchronous read_attribute (single attribute) call is arrived.
virtual void remove(const std::string &pattern, bool fwd=true)
Removes any group or device which name matches the specified pattern.
virtual void signal_handler(long signo)
Signal handler.
DoubleAttrProp< DevDouble > abs_change
Attribute abs_change.
Definition: attrprop.h:635
size_t get_data_elt_nb()
Get root blob data element number.
Definition: w_pipe.h:127
virtual int get_timeout_millis()
Get device timeout.
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.
TemplCommand(const char *cmd_name, void(DeviceImpl::*exe_method)(), bool(DeviceImpl::*state_method)(const CORBA::Any &), const char *in_desc, const char *out_desc)
Constructs a newly allocated TemplCommand object for a command with a name, an execution method,...
@ ALL_ASYNCH
All request.
Definition: devapi.h:403
Tango::DevVarULongArray * create_DevVarULongArray(DevULong *ptr, long length)
Create a DevVarULongArray type.
Definition: device.h:828
T value
The data element value.
Definition: DevicePipe.h:76
void get_class_attribute_property(string class_name, DbData &db)
Get class attribute property value.
Definition: Database.h:1062
int get_idl_version()
Get device IDL version.
Definition: Connection.h:175
virtual bool get_locker(LockerInfo &li)
Get device locking information.
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.
virtual void put_property(DbData &db)
Put attribute property(ies)
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.
Tango::DevVarULong64Array * create_DevVarULong64Array(DevULong64 *ptr, long length)
Create a DevVarULong64Array type.
Definition: device.h:846
NotifdEventSupplier * get_notifd_event_supplier()
Get a reference to the notifd TANGO EventSupplier object.
Definition: utils.h:401
void set_archive_event(bool implemented, bool detect=true)
Set a flag to indicate that the server fires archive events manually, without the polling to be start...
Definition: attribute.h:1689
bool is_rds_alarm()
Check if the attribute is in RDS alarm condition .
Definition: attribute.h:267
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.
string cmd_name
The command name.
Definition: devapi.h:103
AttributeInfoEx * attr_conf
The attribute configuration.
Definition: event.h:197
void remove_attribute(Attr *rem_attr, bool free_it=false, bool clean_db=true)
Remove one attribute from the device attribute list.
struct Tango::AttributeAlarmInfo AttributeAlarmInfo
Attribute alarms configuration.
ImageAttr(const char *name, long data_type, long max_x, long max_y, Tango::DispLevel level)
Constructs a newly allocated ImageAttr object.
Util(int argc, char *argv[])
Constructs a newly allocated Util object.
void set_format(const char *def_format)
Set default format property.
Definition: attrdesc.h:134
void get_write_value(const Tango::DevULong64 *&ptr)
Retrieve the new value for writable attribute when attribute data type is Tango::DevLong64 and the at...
Definition: w_attribute.h:406
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.
virtual AttributeInfoListEx * attribute_list_query_ex()
Query the device for information on all attributes.
void fill_cmd_polling_buffer(DeviceImpl *dev, string &cmd_name, CmdHistoryStack< T > &data)
Fill polling buffer for polled command.
bool date
Flag set to true if the date must be set.
Definition: attribute.h:1971
@ MEMORIZED
Memorized attribute.
Definition: devapi.h:318
virtual Tango::DevState dev_state()
Get device state.
void set_value_date_quality(Tango::DevULong *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
Set internal attribute value, date and quality factor (for Tango::DevULong attribute data type).
virtual long read_attribute_asynch(string &att_name)
Read a single attribute asynchronously.
string writable_attr_name
The name of the associated writable attribute.
Definition: attribute.h:2040
Tango::DevState & get_prev_state()
Get device's previous state.
Definition: device.h:225
void delete_device_property(string dev_name, DbData &db)
Delete device property from database.
void get_device_property(string dev_name, DbData &db)
Get device property value.
Definition: Database.h:570
void append_status(const string &stat, bool new_line=false)
Appends a string to the device status.
Definition: device.h:206
void set_data_elt_nb(size_t nb)
Set blob data element number.
Definition: pipe.h:249
void put_device_alias(string &dev_name, string &dev_alias)
Define device alias.
void get_class_property(string class_name, DbData &db)
Get class property value.
Definition: Database.h:948
vector< CommandInfo > CommandInfoList
A vector of CommandInfo structure.
Definition: devapi.h:146
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.
size_t get_faulty_attr_nb()
Get faulty attribute number.
Definition: apiexcept.h:89
CORBA::Any * insert(Tango::DevVarULongArray *data)
Create a CORBA Any object and insert a Tango::DevVarULongArray data in it.
AttrMemorizedType memorized
The attribute memorization type.
Definition: devapi.h:336
void get_write_value(const Tango::DevState *&ptr)
Retrieve the new value for writable attribute when attribute data type is Tango::DevLong64 and the at...
Definition: w_attribute.h:425
virtual void remove_logging_target(const string &target_type_name)
Remove a logging target from the device.
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 attrib...
void register_signal(long signo, bool own_handler=false)
Register a signal to be executed in a signal handler.
string name
Pipe name.
Definition: devapi.h:372
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.
void register_service(string &service_name, string &inst_name, string &dev_name)
Register a service in the database.
string & get_ds_inst_name()
Get the device server instance name.
Definition: utils.h:291
void encode_jpeg_rgb24(unsigned char *rgb24, int width, int height, double quality)
Encode a 24 bit rgb color image as JPEG format.
void set_event_abs_change(const char *def_abs_change)
Set default change event abs_change property.
Definition: attrdesc.h:224
EventType
Possible event type.
Definition: tango_const.h:1084
void delete_device(string dev_name)
Delete a device from the database.
virtual void attribute_factory(vector< Attr * > &)
Create all the attributes name supported by this class of device.
Definition: deviceclass.h:136
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.
vector< string > extensions
Future exetnsions.
Definition: devapi.h:285
void remove_command(Command *rem_cmd, bool free_it=false, bool clean_db=true)
Remove one command from the device command list.
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.
bool is_val()
Check if the compound attribute property values have been assigned.
Definition: attrprop.h:495
void set_asynch_cb_sub_model(cb_sub_model csm)
Set asynchronous callback sub-model.
virtual vector< DeviceAttribute > * read_attributes_reply(long id)
Check if an asynchronous read_attributes call is arrived.
AttrProp< T > min_warning
Attribute min_warning.
Definition: attrprop.h:607
GroupAttrReplyList read_attribute_reply(long req_id, long tmo_ms=0)
Returns the results of an asynchronous attribute reading.
virtual Tango::PipeConfigList * get_pipe_config_5(const Tango::DevVarStringArray &names)
Get pipe(s) configuration.
void get_attribute_alias(string att_alias, string &att_name)
Get attribute name from its alias.
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.
long get_polling_period()
Get the command polling period.
Definition: command.h:384
virtual void write_attributes_3(const Tango::AttributeValueList &values)
Write attribute(s) value.
void export_server(DbDevExportInfos &devs)
Delete a device server process from the database.
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.
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.
virtual void set_pipe_config_5(const Tango::PipeConfigList &new_conf, const Tango::ClntIdent &cl_ident)
Set pipe(s) configuration.
bool(DeviceImpl::* allowed_ptr)(const CORBA::Any &)
The command allowed method object reference.
Definition: command.h:1651
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.
void set_min_warning(const char *new_min_warning)
Set attribute minimum warning.
CORBA::Any * insert(Tango::DevString data)
Create a CORBA Any object and insert a Tango::DevString data in it.
string display_unit
Attribute display_unit.
Definition: attrprop.h:583
string delta_val_str
The attribute delta value RDS alarm.
Definition: attribute.h:2068
void set_value(Tango::DevLong *p_data, long x=1, long y=0, bool release=false)
Set internal attribute value (for Tango::DevLong attribute data type).
bitset< DevicePipeBlob::numFlags > exceptions()
Get exception flag.
Definition: pipe.h:315
void get_write_value(Tango::DevULong &val)
Retrieve the new value for writable attribute when attribute data type is Tango::DevULong.
Definition: w_attribute.h:377
static TANGO_IMP bool _UseDb
The database use flag (Use with extreme care).
Definition: utils.h:695
void get_max_value(T &max_value)
Get attribute maximum value or throws an exception if the attribute does not have a maximum value.
~WAttribute()
The WAttribute desctructor.
TimedAttrData(const T *p_data, long x, long y, Tango::AttrQuality qual, time_t when)
Create a new TimedAttrData object.
void delete_class_property(string class_name, DbData &db)
Delete class property from database.
void extract(const CORBA::Any &in, const Tango::DevVarULongArray *&data)
Extract a unsigned long array from a CORBA Any object.
TemplCommand(string &cmd_name, void(DeviceImpl::*exe_method)(), Tango::DispLevel level)
Constructs a newly allocated TemplCommand object for a command with a name and an execution method.
DbDatum get_instance_name_list(string &ds_name)
Get list of instances.
@ PERIODIC_EVENT
Periodic event.
Definition: tango_const.h:1087
void poll_command(const string &cmd_name, int period)
Start polling a command.
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.
string abs_change
Absolute change threshold.
Definition: devapi.h:250
void decode_rgb32(DeviceAttribute *attr, int *width, int *height, unsigned char **rgb32)
Decode a color image (JPEG_RGB or RGB24) and returns a 32 bits RGB image.
size_t get_data_elt_nb()
Get blob data element number.
virtual long write_attribute_asynch(DeviceAttribute &argin)
Write a single attribute asynchronously.
This class represents a Tango attribute property.
Definition: attrprop.h:66
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.
virtual void set_timeout_millis(int tmo_ms)
Set client side timeout for all devices in the group.
virtual string name()
Return the device name (from the device itself)
CommandInfoList cmd_list
Device command list info.
Definition: event.h:377
void extract(const CORBA::Any &in, Tango::DevULong64 &data)
Extract an unsigned 64 bits long data from a CORBA Any object.
vector< string > get_data_elt_names()
Get root blob data elements name.
Definition: w_pipe.h:135
DbDatum get_class_pipe_list(const string &class_name, const string &wildcard)
Get class pipe list.
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...
void set_name(string &na)
Set attribute name.
Definition: DeviceAttribute.h:1163
bool err
A boolean flag set to true if the request failed. False otherwise.
Definition: event.h:464
WPipe & operator>>(short &datum)
Extract data from a device pipe.
TimedAttrData(const T *p_data, long x, long y, struct timeval when)
Create a new TimedAttrData object.
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.
void decode_gray8(DeviceAttribute *attr, int *width, int *height, unsigned char **gray8)
Decode a 8 bits grayscale image (JPEG_GRAY8 or GRAY8) and returns a 8 bits gray scale image.
unsigned long get_attr_nb()
Get attribute number.
Definition: multiattribute.h:199
virtual ~Device_2Impl()
The device desctructor.
Definition: device_2.h:159
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.
CORBA::Any * insert(Tango::DevEncoded *data)
Create a CORBA Any object and insert a Tango::DevEncoded data in it.
Attribute alarms configuration.
Definition: devapi.h:224
virtual int ping()
Ping the device.
static void print_exception(const CORBA::Exception &ex)
Print a TANGO exception.
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 val...
void set_standard_unit(const char *def_std_unit)
Set default standard unit property.
Definition: attrdesc.h:114
void set_write_value(vector< Tango::DevState > &val, long x=1, long y=0)
Set the writable spectrum or image attribute value when the attribute data type is Tango::DevState.
DoubleAttrProp(const vector< T > &values)
Create a new DoubleAttrProp object.
Definition: attrprop.h:288
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.
virtual vector< string > * polling_status()
Get polling status.
void get_property(string obj_name, DbData &db)
Get object property value.
Definition: Database.h:460
TimedAttrData(const T *p_data, long x, long y, const T *p_wr_data, long x_wr, long y_wr, Tango::AttrQuality qual, bool rel, struct timeval when)
Create a new TimedAttrData object for a R/W attribute.
AttrProp< T > min_value
Attribute min_value.
Definition: attrprop.h:591
virtual ~WPipe()
The object desctructor.
Definition: w_pipe.h:86
virtual vector< string > * get_pipe_list()
Query all pipes name.
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.
~SpectrumAttr()
The object destructor.
Definition: attrdesc.h:704
vector< Pipe * > pipe_list
The pipe(s) list.
Definition: deviceclass.h:440
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.
TemplCommand(string &cmd_name, void(DeviceImpl::*exe_method)(), bool(DeviceImpl::*state_method)(const CORBA::Any &), string &in_desc, string &out_desc, Tango::DispLevel level)
Constructs a newly allocated TemplCommand object for a command with a name, an execution method,...
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.
Device_4Impl(DeviceClass *device_class, string &dev_name, string &desc, Tango::DevState dev_state, string &dev_status)
Constructs a newly allocated Device_4Impl object from all its creation parameters.
DeviceProxy * device
Definition: event.h:194
TemplCommand(const char *cmd_name, void(DeviceImpl::*exe_method)(), bool(DeviceImpl::*state_method)(const CORBA::Any &), Tango::DispLevel level)
Constructs a newly allocated TemplCommand object for a command with a name, an execution method and a...
Tango::DispLevel disp_level
Display level.
Definition: devapi.h:375
void set_delta_t(const char *def_delta_t)
Set default RDS alarm delta_t property.
Definition: attrdesc.h:204
Device interface change event callback execution data.
Definition: event.h:354
const vector< DeviceClass * > * get_class_list()
Get the DeviceClass list pointer.
Definition: utils.h:378
void extract(const CORBA::Any &in, Tango::DevDouble &data)
Extract a double data from a CORBA Any object.
long command_inout_asynch(const std::string &c, const std::vector< DeviceData > &d, bool fgt=false, bool fwd=true)
Executes a Tango command with different input data (using DeviceData object) on each device in the gr...
virtual void stop_poll()
Stop attribute polling.
Event and asynchronous (callback model) calls base class.
Definition: devasyn.h:235
This class is a class representing a command in the template command model with input parameter but w...
Definition: command.h:2246
virtual string status()
Get device status.
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.
Group(const std::string &name)
Create a Group instance.
void set_event_period(const char *def_period)
Set default periodic event period property.
Definition: attrdesc.h:244
virtual int event_queue_size(int event_id)
Get event number in event queue.
void clear()
Clear the stack.
Definition: pollext.h:939
bool has_failed()
Check insertion/extraction success.
Definition: pipe.h:340
cb_sub_model get_asynch_cb_sub_model()
Get asynchronous callback sub-model.
Definition: ApiUtil.h:140
vector< long > & get_alarm_list()
Get list of attribute with an alarm level defined.
Definition: multiattribute.h:193
Database * get_database()
Get a reference to the TANGO database object.
Definition: utils.h:553
long get_x()
Get attribute data size in x dimension.
Definition: attribute.h:406
DoubleAttrProp(const T &value)
Create a new DoubleAttrProp object.
Definition: attrprop.h:305
string max_warning_str
The attribute maximum warning.
Definition: attribute.h:2064
Single element group reply for a command execution.
Definition: group.h:252
void set_default_command(Command *cmd)
Set a Tango classs default command.
Definition: deviceclass.h:400
static TANGO_NORETURN void throw_exception(const char *reason, const char *desc, const char *origin, Tango::ErrSeverity sever=Tango::ERR)
Generate and throw a TANGO DevFailed exception.
Definition: except.h:122
bool err
A boolean flag set to true if the request failed. False otherwise.
Definition: event.h:382
void get_min_warning(T &min_war)
Get attribute minimum warning or throw an exception if the attribute does not have the minimum warnin...
long in_type
Input parameter data type.
Definition: devapi.h:105
void get_asynch_replies()
Fire callback methods for asynchronous request(s)
string description
Description.
Definition: devapi.h:177
virtual void delete_device()
Delete a device.
Definition: device.h:442
void set_archive_event_period(const char *def_archive_period)
Set default archive event period property.
Definition: attrdesc.h:274
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 starte...
Definition: attrdesc.h:506
This class is a class representing a writable pipe in the TANGO device server pattern.
Definition: w_pipe.h:53
static TANGO_IMP_EXP Util * instance(bool exit=true)
Get the singleton object reference.
void set_value(Tango::DevULong64 *p_data, long x=1, long y=0, bool release=false)
Set internal attribute value (for Tango::DevULong64 attribute data type).
virtual void write_pipe(DevicePipe &pipe_data)
Write a pipe.
void get_device_attribute_property(string dev_name, DbData &db)
Get device attribute property value.
Definition: Database.h:684
virtual AttributeInfoList * get_attribute_config(vector< string > &att_names)
Get attribute configuration for a list of attributes.
TimedAttrData(const T *p_data, long x, const T *p_wr_data, long x_wr, time_t when)
Create a new TimedAttrData object for a R/W attribute.
virtual void device_name_factory(vector< string > &list)
Create device(s) name list (for no database device server).
Definition: deviceclass.h:172
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.
unsigned long get_polling_threads_pool_size()
Get the polling threads pool size.
Definition: utils.h:500
void server_init(bool with_window=false)
Initialise all the device server pattern(s) embedded in a device server process.
void set_str(const char *value_str)
Set string representation of the compound attribute property values.
Definition: attrprop.h:473
GroupCmdReplyList command_inout_reply(long req_id, long tmo_ms=0)
Returns the results of an asynchronous command.
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.
DeviceProxy * device
Definition: event.h:460
GroupAttrReplyList read_attributes_reply(long req_id, long tmo_ms=0)
Returns the results of an asynchronous attributes reading.
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.
vector< DbHistory > get_device_property_history(string &dev_name, string &prop_name)
Get device property history from database.
CORBA::Any * insert(Tango::DevBoolean data)
Create a CORBA Any object and insert a Tango::DevBoolean data in it.
void set_data_ready_event(bool implemented)
Set a flag to indicate that the server fires data ready events.
Definition: attrdesc.h:530
TimeVal & get_date()
Get attribute read date.
Definition: DeviceAttribute.h:1297
ZmqEventSupplier * get_zmq_event_supplier()
Get a reference to the ZMQ TANGO EventSupplier object.
Definition: utils.h:408
bool has_failed()
Check insertion/extraction success.
Definition: DevicePipe.h:1044
Device_4Impl(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 Device_4Impl object from all its creation parameters with some default v...
ImageAttr(const char *name, long data_type, Tango::AttrWriteType w_type, long max_x, long max_y, Tango::DispLevel level)
Constructs a newly allocated ImageAttr object.
void set_data_ready_event(bool implemented)
Set a flag to indicate that the server fires data ready events.
Definition: attribute.h:1715
static TANGO_NORETURN void throw_exception(const char *reason, const string &desc, const string &origin, Tango::ErrSeverity sever=Tango::ERR)
Generate and throw a TANGO DevFailed exception.
Definition: except.h:548
AttrProp< T > max_value
Attribute max_value.
Definition: attrprop.h:595
DevErrorList errors
The error stack.
Definition: event.h:383
void put_device_property(string dev_name, DbData &db)
Put device property value in database.
void get_device_pipe_list(const string &dev_name, vector< string > &pipe_list)
Get list of pipe with data in database for a specific device.
long get_attr_ind_by_name(const char *attr_name)
Get Attribute index into the main attribute vector from its name.
void set_serial_model(SerialModel ser)
Set the serialization model.
Definition: utils.h:386
void set_value_date_quality(Tango::DevBoolean *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
Set internal attribute value, date and quality factor (for Tango::DevBoolean attribute data type).
virtual DeviceProxy * operator[](long idx)
Returns a reference to the "idx-th" device in the hierarchy.
const string & get_root_blob_name()
Return the root data blob name.
Definition: pipe.h:159
virtual Tango::DevAttrHistory_5 * read_attribute_history_5(const char *name, CORBA::Long n)
Read attribute value history.
Base structure for Attribute configuration.
Definition: devapi.h:170
CORBA::Any * insert(Tango::DevVarCharArray *data)
Create a CORBA Any object and insert a Tango::DevVarCharArray data in it.
void delete_property(string obj_name, DbData &db)
Delete object property from database.
int get_data_elt_type(size_t ind)
Get blob data element value type.
TimedAttrData(const T *p_data, const T *p_wr_data, Tango::AttrQuality qual, bool rel, time_t when)
Create a new TimedAttrData object for a R/W attribute.
string max_value_str
The attribute maximum value.
Definition: attribute.h:2056
void set_write_value(Tango::DevUShort *val, long x=1, long y=0)
Set the writable spectrum or image attribute value when the attribute data type is Tango::DevUShort.
const std::string & dev_name() const
Get device name.
Definition: group.h:198
string get_class_for_device(string &dev_name)
Get class name for a device.
bool check_alarm(const long ind)
Check alarm for one attribute from its index in the main attributes vector.
Definition: multiattribute.h:228
bool has_failed()
Check insertion/extraction success.
TimedAttrData(const T *p_data, const T *p_wr_data, Tango::AttrQuality qual, bool rel, struct timeval when)
Create a new TimedAttrData object for a R/W attribute.
long data_size
The attribute data size.
Definition: attribute.h:2108
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.
@ DATA_READY_EVENT
Data ready event.
Definition: tango_const.h:1091
static TANGO_NORETURN void throw_named_exception(const char *att_name, const char *reason, const char *desc, const char *origin, Tango::ErrSeverity sever=Tango::ERR)
Throw a TANGO MultiDevFailed exception.
Definition: except.h:1732
void set_value_date_quality(Tango::DevDouble *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
Set internal attribute value, date and quality factor (for Tango::DevDouble attribute data type).
static TANGO_NORETURN void throw_exception(const CORBA::SystemException &ex, const char *origin)
Generate and throw a TANGO DevFailed exception.
string & get_lower_name()
Return the command name in lower case letters.
Definition: command.h:300
Command()
Constructs a newly allocated Command object.
Definition: command.h:95
TemplCommand(string &cmd_name, void(DeviceImpl::*exe_method)(), bool(DeviceImpl::*state_method)(const CORBA::Any &), Tango::DispLevel level)
Constructs a newly allocated TemplCommand object for a command with a name, an execution method and a...
static TANGO_NORETURN void throw_exception(const string &reason, char *desc, char *origin, Tango::ErrSeverity sever=Tango::ERR)
Generate and throw a TANGO DevFailed exception.
Definition: except.h:724
string archive_abs_change
Archive abosolute change threshold.
Definition: devapi.h:283
int attr_data_type
The attribute data type.
Definition: event.h:291
void set_max_alarm(const T &new_max_alarm)
Set attribute maximum alarm.
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.
Command & get_cmd_by_name(const string &)
Get a reference to a command object.
AttrProp()
Default constructor.
Definition: attrprop.h:74
virtual vector< string > * black_box(int nb)
Get device black box content.
string event
The event name.
Definition: event.h:96
Base class for all TANGO device since version 3.
Definition: device_3.h:87
DeviceClass * get_device_class()
Get device class singleton.
Definition: device.h:250
static TANGO_NORETURN void throw_exception(const char *reason, char *desc, const char *origin, Tango::ErrSeverity sever=Tango::ERR)
Generate and throw a TANGO DevFailed exception.
Definition: except.h:193
string min_alarm
Min alarm.
Definition: devapi.h:185
TimedAttrData(const T *p_data, Tango::AttrQuality qual, bool rel, struct timeval when)
Create a new TimedAttrData object.
bitset< numFlags > exceptions()
Get exception flag.
Definition: DeviceAttribute.h:975
MultiClassAttribute * get_class_attr()
Get a pointer to the class attributes object.
Definition: deviceclass.h:270
DoubleAttrProp< DevDouble > archive_rel_change
Attribute archive_rel_change.
Definition: attrprop.h:639
DoubleAttrProp(const char *value_str)
Create a new DoubleAttrProp object.
Definition: attrprop.h:317
DbDatum get_class_attribute_list(string &class_name, string &wildcard)
Get class attribute list.
DevicePipeBlob & operator<<(short &datum)
Insert data into a data blob.
virtual DevicePipe write_read_pipe(DevicePipe &pipe_data)
Write then read a pipe.
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.
TimedAttrData(const T *p_data, long x, long y, const T *p_wr_data, long x_wr, long y_wr, Tango::AttrQuality qual, time_t when)
Create a new TimedAttrData object for a R/W attribute.
Command(const char *s, Tango::CmdArgType in, Tango::CmdArgType out, Tango::DispLevel level)
Constructs a newly allocated Command object for a command from its name and its input and output para...
void set_write_value(Tango::DevLong *val, long x=1, long y=0)
Set the writable spectrum or image attribute value when the attribute data type is Tango::DevLong.
long command_inout_asynch(const std::string &c, bool fgt=false, bool fwd=true)
Executes a Tango command on each device in the group asynchronously.
virtual TimeVal get_last_event_date(int event_id)
Get last event date.
Definition: AttributeProxy.h:590
virtual void write_attribute_reply(long id)
Check if the answer of one asynchronous write_attribute (single attribute) call is arrived.
Definition: DeviceProxy.h:1056
AttributeDimension get_r_dimension()
Get the attribute read dimensions.
virtual void init_device()=0
Intialise a device.
virtual bool is_command_polled(string &cmd_name)
Check if a command is polled.
static TANGO_NORETURN void re_throw_exception(Tango::DevFailed &ex, char *reason, const string &desc, const string &origin, Tango::ErrSeverity sever=Tango::ERR)
Re-throw a TANGO DevFailed exception with one more error.
Definition: except.h:1548
void set_value_date_quality(Tango::DevUChar *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
Set internal attribute value, date and quality factor (for Tango::DevUChar attribute data type).
string in_type_desc
Input parameter description.
Definition: devapi.h:107
bool err
A boolean flag set to true if the request failed. False otherwise.
Definition: event.h:294
bitset< DevicePipeBlob::numFlags > state()
Get instance insertion/extraction state.
Definition: pipe.h:367
long get_assoc_ind()
Get index of the associated writable attribute.
Definition: attribute.h:335
CORBA::Any * insert(Tango::DevLong data)
Create a CORBA Any object and insert a Tango::DevLong data in it.
virtual long read_attributes_asynch(vector< string > &att_names)
Read asynchronously alist of attributes.
CORBA::Any * insert(Tango::DevVarLongStringArray &data)
Create a CORBA Any object and insert a Tango::DevVarLongStringArray data in it.
bitset< numFlags > state()
Get instance extraction state.
Definition: DeviceData.h:574
virtual long command_inout_asynch(const char *cmd_name, DeviceData &argin, bool forget=false)
Execute a command asynchronously (with input argument)
Device_2Impl(DeviceClass *device_class, string &dev_name)
Constructs a newly allocated Device_2Impl object from its name.
string & get_name()
Return the pipe name.
Definition: pipe.h:131
TimedCmdData(T *p_data, bool rel, time_t when)
Create a new TimedCmdData object with memory management.
void set_default_properties(UserDefaultPipeProp &prop)
Set default attribute properties.
virtual void set_transparency_reconnection(bool val)
Set device transparency (reconnection) mode.
Definition: Connection.h:206
virtual void get_asynch_replies()
Fire callback methods.
void set_ds_event_buffer_hwm(DevLong val)
Set device server process event buffer high water mark (HWM)
Definition: utils.h:415
bool is_min_alarm()
Check if the attribute is in minimum alarm condition .
Definition: attribute.h:239
void set_name(string &new_name)
Set the pipe name.
Definition: pipe.h:138
void get_property(DbData &db)
Get device property from database.
static TANGO_NORETURN void re_throw_exception(Tango::DevFailed &ex, const string &reason, const string &desc, const char *origin, Tango::ErrSeverity sever=Tango::ERR)
Re-throw a TANGO DevFailed exception with one more error.
Definition: except.h:1216
void set_write_value(vector< Tango::DevDouble > &val, long x=1, long y=0)
Set the writable spectrum or image attribute value when the attribute data type is Tango::DevDouble.
Device_5Impl(DeviceClass *device_class, string &dev_name, string &desc)
Constructs a newly allocated Device_5Impl object from its name and its description.
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...
void reset()
Reset the object.
Definition: group.h:566
string adm_device_name
The administration device name.
Definition: device.h:3288
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)
Set internal attribute value, date and quality factor (for Tango::DevEncoded attribute data type when...
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.
TimedAttrData(const T *p_data, long x, long y, const T *p_wr_data, long x_wr, long y_wr, struct timeval when)
Create a new TimedAttrData object for a R/W attribute.
CORBA::Any * insert(Tango::DevVarStringArray *data)
Create a CORBA Any object and insert a Tango::DevVarStringArray data in it.
Asynchronous command execution callback data.
Definition: devasyn.h:77
virtual vector< DeviceAttributeHistory > * attribute_history(string &att_name, int depth)
Retrieve attribute history from polling buffer.
Event callback execution data.
Definition: event.h:74
void set_write_value(Tango::DevUChar *val, long x=1, long y=0)
Set the writable spectrum or image attribute value when the attribute data type is Tango::DevUChar.
void put_pipe_property(DbData &db)
Update device pipe property in database.
void add_command(Command *new_cmd, bool device=false)
Add a new command to the device command list.
virtual bool is_locked()
Check if the device is locked.
EncodedAttribute(int buf_pool_size, bool serialization=false)
Create a new EncodedAttribute object with a user defined buffer pool.
void encode_jpeg_rgb32(unsigned char *rgb32, int width, int height, double quality)
Encode a 32 bit rgb color image as JPEG format.
bool err
A boolean flag set to true if the request failed. False otherwise.
Definition: event.h:98
void extract(const CORBA::Any &in, const Tango::DevVarLong64Array *&data)
Extract a 64 bits long array from a CORBA Any object.
void unregister_server()
Unregister a device server process from the TANGO database.
string name
Name.
Definition: devapi.h:171
bool has_failed() const
Check if an error has occurred.
Definition: group.h:426
virtual void poll_attribute(string &att_name, int polling_period)
Poll an attribute.
void set_min_alarm(const T &new_min_alarm)
Set attribute minimum alarm.
void extract(const CORBA::Any &in, Tango::DevLong &data)
Extract a long data from a CORBA Any object.
string & get_str()
Get string representation of the compound attribute property values.
Definition: attrprop.h:429
CORBA::Any * insert(Tango::DevVarLongStringArray *data)
Create a CORBA Any object and insert a Tango::DevVarLongStringArray data in it.
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.
This class represents Tango modifiable attribute properties grouped in one object to facilitate setti...
Definition: attrprop.h:548
void set_polling_threads_pool_size(unsigned long thread_nb)
Set the polling threads pool size.
Definition: utils.h:493
Attribute & get_attr_by_ind(const long ind)
Get Attribute object from its index.
Definition: multiattribute.h:149
DoubleAttrProp()
Default constructor.
Definition: attrprop.h:281
string label
The pipe label.
Definition: pipe.h:435
string writable_attr_name
Writable att. name.
Definition: devapi.h:187
WPipe(const string &na, const Tango::DispLevel level)
Constructs a newly allocated WPipe object from its name, its description, its label and its display l...
virtual void unlock(bool force=false)
Unlock a device.
static TANGO_NORETURN void re_throw_exception(Tango::DevFailed &ex, const string &reason, char *desc, char *origin, Tango::ErrSeverity sever=Tango::ERR)
Re-throw a TANGO DevFailed exception with one more error.
Definition: except.h:1509
DoubleAttrProp & operator=(const T &value)
Assign the values of the compound attribute property.
Definition: attrprop.h:362
TimedAttrData(const T *p_data, long x, long y, const T *p_wr_data, long x_wr, long y_wr, time_t when)
Create a new TimedAttrData object for a R/W attribute.
TimedAttrData(const T *p_data, const T *p_wr_data, Tango::AttrQuality qual, time_t when)
Create a new TimedAttrData object for a R/W attribute.
long get_y()
Get attribute data size in y dimension.
Definition: attribute.h:419
void delete_device_alias(string &dev_alias)
Delete device alias.
Tango::DevVarCharArray * create_DevVarCharArray(unsigned char *ptr, long length)
Create a DevVarCharArray type.
Definition: device.h:713
void stop_poll_attribute(const string &att_name)
Stop polling one attribute.
string format
Format.
Definition: devapi.h:182
@ POLLING
Polling mode request.
Definition: devapi.h:401
@ INTERFACE_CHANGE_EVENT
Device interface change event.
Definition: tango_const.h:1092
bool err
A boolean flag set to true if the request failed. False otherwise.
Definition: event.h:198
virtual Tango::DevCmdHistory_4 * command_inout_history_4(const char *command, CORBA::Long n)
Read command value history.
virtual void delete_property(string &prop_name)
Delete a single device property.
void reset()
Reset the object.
Definition: group.h:435
void unexport_device(string dev_name)
Unexport a device in the database.
void set_write_value(Tango::DevUShort val)
Set the writable scalar attribute value when the attribute data type is Tango::DevUShort.
int get_written_dim_y()
Get the attribute write Y dimension.
Definition: DeviceAttribute.h:1203
This class is a class representing a command in the template command model with output parameter but ...
Definition: command.h:2797
void get_alias_from_device(string dev_name, string &alias)
Get device alias form its name.
void extract(const CORBA::Any &in, const char *&data)
Extract a const string from a CORBA Any object.
static TANGO_IMP bool _daemon
A daemon process flag.
Definition: utils.h:702
void delete_device_attribute_property(string dev_name, DbData &db)
Delete device attribute property from database.
AttrSerialModel get_attr_serial_model()
Get attribute serialization model.
Definition: attribute.h:471
DoubleAttrProp & operator=(const string &value_str)
Assign the values of the compound attribute property.
Definition: attrprop.h:397
DbDatum get_services(string &service_name, string &inst_name)
Get services list from database.
void set_val(const vector< T > &values)
Set the compound attribute property values.
Definition: attrprop.h:437
virtual void write_attributes_reply(long id)
Check if the answer of one asynchronous write_attributes call is arrived.
DbDevice(string &dev_name)
Create a DbDevice object.
CORBA::Any * insert(Tango::DevVarShortArray &data)
Create a CORBA Any object and insert a Tango::DevVarShortArray data in it.
void extract(const CORBA::Any &in, const Tango::DevVarUShortArray *&data)
Extract a unsigned short array from a CORBA Any object.
int data_type
Data type.
Definition: devapi.h:174
CORBA::Any * execute(DeviceImpl *dev, const CORBA::Any &in_any)
Invoke the command execution method given at object creation time.
Definition: command.h:2199
AttributeInfoListEx att_list
Device attribute list info.
Definition: event.h:378
void set_val(const T &value)
Set the compound attribute property values.
Definition: attrprop.h:459
virtual Tango::AttributeConfigList_5 * get_attribute_config_5(const Tango::DevVarStringArray &names)
Get attribute(s) configuration.
DoubleAttrProp & operator=(const char *value_str)
Assign the values of the compound attribute property.
Definition: attrprop.h:383
TemplCommand(const char *cmd_name, void(DeviceImpl::*exe_method)(), bool(DeviceImpl::*state_method)(const CORBA::Any &))
Constructs a newly allocated TemplCommand object for a command with a name, an execution method and a...
bool has_failed() const
Check if an error has occurred.
Definition: group.h:557
string device_status
The device status.
Definition: device.h:3264
string archive_period
Archive event period.
Definition: devapi.h:284
TimedAttrData(const T *p_data, long x, long y, const T *p_wr_data, long x_wr, long y_wr, Tango::AttrQuality qual, struct timeval when)
Create a new TimedAttrData object for a R/W attribute.
void extract(const CORBA::Any &in, Tango::DevState &data)
Extract a Tango device state data from a CORBA Any object.
void set_label(const string &def_label)
Set default label property.
Definition: fwdattrdesc.h:78
AttrProp(const char *value_str)
Create a new AttrProp object.
Definition: attrprop.h:92
void get_write_value(Tango::DevDouble &val)
Retrieve the new value for writable attribute when attribute data type is Tango::DevDouble.
Definition: w_attribute.h:282
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.
@ ARCHIVE_EVENT
Archive event.
Definition: tango_const.h:1088
string & get_type()
Get the TANGO device type name.
Definition: deviceclass.h:222
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.
Base structure for pipe information.
Definition: devapi.h:371
Attr(const char *name, long data_type, Tango::AttrWriteType w_type=Tango::READ, const char *assoc=AssocWritNotSpec)
Constructs a newly allocated Attr object.
string max_alarm
Max alarm.
Definition: devapi.h:186
void get_write_value(const Tango::DevUChar *&ptr)
Retrieve the new value for writable attribute when attribute data type is Tango::DevUChar and the att...
Definition: w_attribute.h:368
static TANGO_NORETURN void throw_exception(const CORBA::SystemException &ex, char *origin)
Generate and throw a TANGO DevFailed exception.
static TANGO_NORETURN void re_throw_exception(Tango::DevFailed &ex, char *reason, const string &desc, char *origin, Tango::ErrSeverity sever=Tango::ERR)
Re-throw a TANGO DevFailed exception with one more error.
Definition: except.h:1586
string standard_unit
The attribute standard unit.
Definition: attribute.h:2026
void set_write_value(Tango::DevShort val)
Set the writable scalar attribute value when the attribute data type is Tango::DevShort.
static TANGO_NORETURN void re_throw_exception(Tango::DevFailed &ex, const char *reason, const char *desc, const char *origin, Tango::ErrSeverity sever=Tango::ERR)
Re-throw a TANGO DevFailed exception with one more error.
Definition: except.h:874
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.
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.
virtual TimeVal get_last_event_date(int event_id)
Get date of the last event in queue.
virtual Group * get_group(const std::string &group_name)
Returns a reference to the specified group.
size_t get_data_elt_nb()
Get blob data element number.
Definition: pipe.h:266
static TANGO_NORETURN void re_throw_exception(Tango::DevFailed &ex, const char *reason, char *desc, const char *origin, Tango::ErrSeverity sever=Tango::ERR)
Re-throw a TANGO DevFailed exception with one more error.
Definition: except.h:949
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.
string & get_out_type_desc()
Return the output parameter description.
Definition: command.h:328
WAttribute & get_w_attr_by_ind(const long ind)
Get Writable Attribute object from its index.
Definition: multiattribute.h:172
CORBA::Any * insert(Tango::DevVarLongArray *data)
Create a CORBA Any object and insert a Tango::DevVarLongArray data in it.
PipeSerialModel get_pipe_serial_model()
Get pipe serialization model.
Definition: pipe.h:212
void set_in_type_desc(string &desc)
Set the input parameter description field.
Definition: command.h:349
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.
void init_types()
Initialise command input and output types.
Definition: command.h:3260
string & get_pid_str()
Get the device server process identifier as a String.
Definition: utils.h:321
bool value_flag
A flag set to true if the attribute value has been updated.
Definition: attribute.h:1963
virtual long write_attributes_asynch(vector< DeviceAttribute > &argin)
Write asynchronously alist of attributes.
TimedCmdData(T *p_data, bool rel, struct timeval when)
Create a new TimedCmdData object with memory management.
GroupCmdReplyList command_inout(const std::string &c, const std::vector< DeviceData > &d, bool fwd=true)
Executes a Tango command with the different input data on a group (Using DeviceData class instances)
void set_value(Tango::DevUShort *p_data, long x=1, long y=0, bool release=false)
Set internal attribute value (for Tango::DevUShort attribute data type).
static TANGO_IMP_EXP int get_env_var(const char *name, string &value)
Get environment variable.
void set_max_value(char *max_value)
Set attribute maximum value.
long get_write_value_length()
Retrieve the new value length (data number) for writable attribute.
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 s...
virtual void get_events(int event_id, CallBack *cb)
Get events from event queue (pull model)
Definition: AttributeProxy.h:533
Attribute & get_attr_by_name(const char *attr_name)
Get Attribute object from its name.
void get_write_value(const Tango::DevDouble *&ptr)
Retrieve the new value for writable attribute when attribute data type is Tango::DevDouble and the at...
Definition: w_attribute.h:292
CORBA::Any * insert(Tango::DevULong data)
Create a CORBA Any object and insert a Tango::DevULong data in it.
SpectrumAttr(const char *name, long data_type, Tango::AttrWriteType w_type, long max_x, DispLevel level)
Constructs a newly allocated SpectrumAttr object.
void get_write_value(Tango::DevEncoded &val)
Retrieve the new value for writable attribute when attribute data type is Tango::DevEncoded.
Definition: w_attribute.h:434
DbDatum get_device_exported(string &filter)
Get list of exported devices.
CORBA::Any * insert(Tango::DevVarULong64Array *data)
Create a CORBA Any object and insert a Tango::DevVarULong64Array data in it.
void set_value_date_quality(Tango::DevULong64 *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
Set internal attribute value, date and quality factor (for Tango::DevULong64 attribute data type).
virtual void remove(const std::vector< std::string > &patterns, bool fwd=true)
Removes any group or device which name matches any of the specified patterns.
Fundamental type for extracting data from a device pipe blob.
Definition: DevicePipe.h:45
void set_value_date_quality(Tango::DevShort *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
Set internal attribute value, date and quality factor (for Tango::DevShort attribute data type).
string & get_str()
Get string representation of the attribute property value.
Definition: attrprop.h:175
virtual void stop_poll_attribute(string &att_name)
Stop polling an attribute.
bool is_allowed(DeviceImpl *dev, const CORBA::Any &in_any)
Invoke the command allowed method given at object creation time.
void set_write_value(Tango::DevULong val)
Set the writable scalar attribute value when the attribute data type is Tango::DevULong.
vector< string > extensions
Future extensions.
Definition: devapi.h:231
void set_default_properties(UserDefaultFwdAttrProp &prop)
Set default attribute properties.
Tango::CmdArgType get_in_type()
Return the input parameter type.
Definition: command.h:307
void set_data_elt_names(vector< string > &names)
Set blob data element number and names.
Definition: DevicePipe.h:918
static int _tracelevel
The process trace level.
Definition: utils.h:690
void set_data_elt_names(vector< string > &names)
Set blob data element number and names.
virtual Tango::DevPipeData * write_read_pipe_5(const Tango::DevPipeData &pipe_value, const Tango::ClntIdent &cl_ident)
Write then read pipe value.
@ ABORT_ON_ERROR
Do not read attribute(s) if one of the written attribute(s) failed.
Definition: tango_const.h:1134
void unregister_signal(long signo)
Unregister a signal.
@ QUALITY_EVENT
Quality change event (deprecated - do not use)
Definition: tango_const.h:1086
AttrDataFormat data_format
Data format (Scalar, Spectrum,...)
Definition: devapi.h:173
void extract(const CORBA::Any &in, Tango::DevLong64 &data)
Extract a 64 bits long data from a CORBA Any object.
void extract(const CORBA::Any &in, const Tango::DevEncoded *&data)
Extract a Tango DevEncoded data from a CORBA Any object.
vector< long > alarm_attr_list
The list of attribute with an alarm level defined.
Definition: multiattribute.h:281
void set_type(const type_info &data_type, Tango::CmdArgType &type)
Choose the correct TANGO data type constant according to data type.
TemplCommand(const char *cmd_name, void(DeviceImpl::*exe_method)(), Tango::DispLevel level)
Constructs a newly allocated TemplCommand object for a command with a name and an execution method.
Tango::Attr_CheckVal min_alarm
The attribute minimum alarm in binary format.
Definition: attribute.h:2080
DevErrorList errors
The error stack.
Definition: event.h:199
void set_write_value(vector< Tango::DevULong > &val, long x=1, long y=0)
Set the writable spectrum or image attribute value when the attribute data type is Tango::DevULong.
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.
string unit
Unit.
Definition: devapi.h:179
void set_max_value(const char *def_max_value)
Set default max_value property.
Definition: attrdesc.h:154
_AttrMemorizedType
Possible memorized attribute type.
Definition: devapi.h:315
CORBA::Any * execute(DeviceImpl *dev, const CORBA::Any &in_any)
Invoke the command execution method given at object creation time.
void set_str(const string &value_str)
Set string representation of the attribute property value.
Definition: attrprop.h:203
void set_value(Tango::DevBoolean *p_data, long x=1, long y=0, bool release=false)
Set internal attribute value (for Tango::DevBoolean attribute data type).
void set_polling_period(long per)
Set the command polling period.
Definition: command.h:377
DbDatum get_attribute_alias_list(string &filter)
Get attribute alias list.
DbDevImportInfo import_device()
Import the device from database.
void get_attribute_from_alias(string alias, string &att_name)
Get attribute name from its alias.
void connect_db()
Connect the process to the TANGO database.
vector< string > get_data_elt_names()
Get blob data elements name.
void put_property(string obj_name, DbData &db)
Put object property value in database.
AttrProp< DevLong > delta_t
Attribute delta_t.
Definition: attrprop.h:615
void reset_filedatabase()
Reread the file database.
Pipe event callback execution data.
Definition: event.h:440
Device_5Impl(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 Device_5Impl object from all its creation parameters with some default v...
Tango::DevState device_state
The device state.
Definition: device.h:3268
This class is a class representing a command in the template command model with output and input para...
Definition: command.h:1689
virtual void write_reply(long id)
Get asynchronous write attribute call reply.
Definition: AttributeProxy.h:374