Tango Core Classes Reference  9.3.3
Tango::DbServer Class Reference

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...
 

Detailed Description

A database object for a device server which can be used to query or modify server database information.

Constructor & Destructor Documentation

◆ 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_nameThe 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_nameThe device server name
[in]dbThe database object

Member Function Documentation

◆ 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]servDevice server process data
Exceptions
ConnectionFailed,CommunnicationFailed,DevFailedfrom 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,DevFailedfrom 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]servDevices information
Exceptions
ConnectionFailed,CommunnicationFailed,DevFailedfrom 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,DevFailedfrom device

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