Tango Core Classes Reference  9.3.3
Tango::DbServerData Class Reference

Class used to move/copy a complete device server process database configuration from one Tango host to another. More...

#include "tango.h"

Public Member Functions

 DbServerData (const string &ds_exec_name, const string &ds_inst_name)
 Create a DbServerData instance. More...
 
bool already_exist (const string &tg_host)
 Check if device(s) already defined. More...
 
void put_in_database (const string &tg_host)
 Put device server database configuration in new Tango host. More...
 
void remove ()
 Remove device server database configuration from default Tango host. More...
 
void remove (const string &tg_host)
 Remove device server database configuration from Tango host. More...
 

Detailed Description

Class used to move/copy a complete device server process database configuration from one Tango host to another.

Constructor & Destructor Documentation

◆ DbServerData()

Tango::DbServerData::DbServerData ( const string &  ds_exec_name,
const string &  ds_inst_name 
)

Create a DbServerData instance.

A constructor for a DbServerData object for a device server process defined in the TANGO database specified by the TANGO_HOST environment variable

Parameters
[in]ds_exec_nameThe device server process executable name
[in]ds_inst_nameThe device server process instance name

Member Function Documentation

◆ already_exist()

bool Tango::DbServerData::already_exist ( const string &  tg_host)

Check if device(s) already defined.

Return true if one of the device defined in the device server process with configuration in this instance is already defined in the database defined by the Tango host given as parameter

Parameters
[in]tg_hostThe tango host
Returns
Boolean set to true if one of the device server device is defined in the Tango host given as parameter

◆ put_in_database()

void Tango::DbServerData::put_in_database ( const string &  tg_host)

Put device server database configuration in new Tango host.

Store the device server process database configuration in the database specified by the given Tango host parameter

Parameters
[in]tg_hostThe tango host

◆ remove() [1/2]

void Tango::DbServerData::remove ( )

Remove device server database configuration from default Tango host.

Remove the device server process database configuration from the database specified by the environment variable TANGO_HOST

◆ remove() [2/2]

void Tango::DbServerData::remove ( const string &  tg_host)

Remove device server database configuration from Tango host.

Remove the device server process database configuration from the database specified by the given Tango host parameter

Parameters
[in]tg_hostThe tango host

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