A database object for a device server which can be used to query or modify server database information.
More...
#include "tango.h"
A database object for a device server which can be used to query or modify server database information.
◆ DbServer() [1/2]
Tango::DbServer::DbServer |
( |
string |
server_name | ) |
|
Create a DbServer instance.
A constructor for a DbServer object for a server in the TANGO database specified by the TANGO_HOST environment variable.
- Parameters
-
[in] | server_name | The device server name |
◆ DbServer() [2/2]
Tango::DbServer::DbServer |
( |
string |
server_name, |
|
|
Database * |
db |
|
) |
| |
Create a DbServer instance using a specified database.
A constructor for a DbServer object for the server in the specified database. This method reuses the Database supplied by the programmer
- Parameters
-
[in] | server_name | The device server name |
[in] | db | The database object |
◆ add_server()
void Tango::DbServer::add_server |
( |
DbDevInfos & |
serv | ) |
|
Add a device server process into the database.
Add a group of devices to the database. The device names, server names and classes are specified in the vector of DbDevInfo structures
- Parameters
-
[in] | serv | Device server process data |
- Exceptions
-
ConnectionFailed,CommunnicationFailed,DevFailed | from device |
◆ delete_server()
void Tango::DbServer::delete_server |
( |
| ) |
|
Delete the device server from database.
Delete the device server and its associated devices from the database.
- Exceptions
-
ConnectionFailed,CommunnicationFailed,DevFailed | from device |
◆ export_server()
void Tango::DbServer::export_server |
( |
DbDevExportInfos & |
serv | ) |
|
Export all device server devices in database.
Export a group of device to the database. The device names, IOR, class, server name, pid etc. are specified in the vector of DbDevExportInfo structures.
- Parameters
-
[in] | serv | Devices information |
- Exceptions
-
ConnectionFailed,CommunnicationFailed,DevFailed | from device |
◆ unexport_server()
void Tango::DbServer::unexport_server |
( |
| ) |
|
Mark all devices belonging to the device server as un-exported.
Mark all the devices exported by the server as un-exported.
- Exceptions
-
ConnectionFailed,CommunnicationFailed,DevFailed | from device |
The documentation for this class was generated from the following file: