Tango Core Classes Reference
9.3.3
|
A database object for a device server which can be used to query or modify server database information. More...
#include "tango.h"
Public Member Functions | |
Constructors | |
DbServer (string server_name) | |
Create a DbServer instance. More... | |
DbServer (string server_name, Database *db) | |
Create a DbServer instance using a specified database. More... | |
Server oriented methods | |
void | add_server (DbDevInfos &serv) |
Add a device server process into the database. More... | |
void | delete_server () |
Delete the device server from database. More... | |
void | export_server (DbDevExportInfos &serv) |
Export all device server devices in database. More... | |
void | unexport_server () |
Mark all devices belonging to the device server as un-exported. More... | |
A database object for a device server which can be used to query or modify server database information.
Tango::DbServer::DbServer | ( | string | server_name | ) |
Tango::DbServer::DbServer | ( | string | server_name, |
Database * | db | ||
) |
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
[in] | serv | Device server process data |
ConnectionFailed,CommunnicationFailed,DevFailed | from device |
void Tango::DbServer::delete_server | ( | ) |
Delete the device server from database.
Delete the device server and its associated devices from the database.
ConnectionFailed,CommunnicationFailed,DevFailed | from device |
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.
[in] | serv | Devices information |
ConnectionFailed,CommunnicationFailed,DevFailed | from device |
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.
ConnectionFailed,CommunnicationFailed,DevFailed | from device |