Tango Core Classes Reference
9.3.4
|
A high level object for a device interface to the database. More...
#include "tango.h"
Public Member Functions | |
Constructors | |
DbDevice (string &dev_name) | |
Create a DbDevice object. More... | |
DbDevice (string &dev_name, Database *db) | |
Create a DbDevice object using a specified database. More... | |
Device oriented methods | |
DbDevImportInfo | import_device () |
Import the device from database. More... | |
void | export_device (DbDevExportInfo &dev_info) |
Export device info to the database. More... | |
Property oriented methods | |
void | get_property (DbData &db) |
Get device property from database. More... | |
void | put_property (DbData &db) |
Update device property in database. More... | |
void | delete_property (DbData &db) |
Remove device property from database. More... | |
void | get_attribute_property (DbData &db) |
Get device attribute property from database. More... | |
void | put_attribute_property (DbData &db) |
Update device attribute property in database. More... | |
void | delete_attribute_property (DbData &db) |
Remove device attribute property from database. More... | |
void | get_pipe_property (DbData &db) |
Get device pipe property from database. More... | |
void | put_pipe_property (DbData &db) |
Update device pipe property in database. More... | |
void | delete_pipe_property (DbData &db) |
Remove device pipe property from database. More... | |
A high level object for a device interface to the database.
A database object for a device which can be used to query or modify properties, import and export information for a device. This class provides an easy to use interface for device objects in the database. It uses the methods of the Database class therefore the reader is referred to these for the exact calling syntax and examples. The following methods are defined for the DbDevice class :
DbDevice::DbDevice | ( | string & | dev_name | ) |
DbDevice::DbDevice | ( | string & | dev_name, |
Database * | db | ||
) |
void DbDevice::delete_attribute_property | ( | DbData & | db | ) |
Remove device attribute property from database.
Delete all properties for the list of specified attributes for this device in the database. See Database::delete_device_attribute_property() for an example of how to specify the properties.
[in] | db | Property name(s) |
ConnectionFailed,CommunnicationFailed,DevFailed | from device |
void DbDevice::delete_pipe_property | ( | DbData & | db | ) |
Remove device pipe property from database.
Delete all properties for the list of specified pipes for this device in the database. See Database::delete_device_pipe_property() for an example of how to specify the properties.
[in] | db | Property name(s) |
ConnectionFailed,CommunnicationFailed,DevFailed | from device |
void DbDevice::delete_property | ( | DbData & | db | ) |
Remove device property from database.
Delete the list of specified properties for this device in the database. See Database::delete_property() for an example of how to specify the properties.
[in] | db | Property name(s) |
ConnectionFailed,CommunnicationFailed,DevFailed | from device |
void DbDevice::export_device | ( | DbDevExportInfo & | dev_info | ) |
Export device info to the database.
Update the export info for this device in the database.
[in] | dev_info | Device export info |
ConnectionFailed,CommunnicationFailed,DevFailed | from device |
void DbDevice::get_attribute_property | ( | DbData & | db | ) |
Get device attribute property from database.
Query the database for the list of attribute properties of this device. See Database::get_device_attribute_property() for an example of how to specify and retrieve the properties.
[in,out] | db | Property name(s) and value |
ConnectionFailed,CommunnicationFailed,DevFailed | from device |
void DbDevice::get_pipe_property | ( | DbData & | db | ) |
Get device pipe property from database.
Query the database for the list of pipe properties of this device. See Database::get_device_pipe_property() for an example of how to specify and retrieve the properties.
[in,out] | db | Property name(s) and value |
ConnectionFailed,CommunnicationFailed,DevFailed | from device |
void DbDevice::get_property | ( | DbData & | db | ) |
Get device property from database.
Query the database for the list of properties of this device. See Database::get_device_property() for an example of how to specify and retrieve the properties.
[in,out] | db | Property name(s) and value |
ConnectionFailed,CommunnicationFailed,DevFailed | from device |
DbDevImportInfo DbDevice::import_device | ( | ) |
Import the device from database.
Query the database for the import info of this device. Returns a DbDevImportInfo structure.
ConnectionFailed,CommunnicationFailed,DevFailed | from device |
void DbDevice::put_attribute_property | ( | DbData & | db | ) |
Update device attribute property in database.
Update the list of attribute properties for this device in the database. See Database::put_device_attribute_property() for an example of how to specify the properties.
[in] | db | Property name(s) and value |
ConnectionFailed,CommunnicationFailed,DevFailed | from device |
void DbDevice::put_pipe_property | ( | DbData & | db | ) |
Update device pipe property in database.
Update the list of pipe properties for this device in the database. See Database::put_device_pipe_property() for an example of how to specify the properties.
[in] | db | Property name(s) and value |
ConnectionFailed,CommunnicationFailed,DevFailed | from device |
void DbDevice::put_property | ( | DbData & | db | ) |
Update device property in database.
Update the list of properties for this device in the database. See Database::put_device_property() for an example of how to specify the properties.
[in] | db | Property name(s) and value |
ConnectionFailed,CommunnicationFailed,DevFailed | from device |