ChimeraTK-DeviceAccess-TangoBackend 00.01.02
Loading...
Searching...
No Matches
TangoServerLauncher Struct Reference

#include <TangoServerLauncher.h>

+ Collaboration diagram for TangoServerLauncher:

Public Member Functions

 TangoServerLauncher (std::string setTestName="Unified", bool setVerbose=false)
 
 ~TangoServerLauncher ()
 
void start ()
 
void stop ()
 Shut down the Tango server.
 
std::string getClientUrl () const
 An URL that can be used by the Tango::DeviceProxy to connect to this server.
 
const std::string & device () const
 The Tango device name.
 
TangoServerLaunchersetOfflineDatabase (const std::string &basePath)
 Configure the Tango server to run against an offline database.
 
TangoServerLaunchersetKeepOfflineDatabase (bool keep)
 
TangoServerLaunchersetCreateOfflineDatabase (bool create)
 
TangoServerLauncheroverrideNames (const std::string &newNames)
 

Static Public Member Functions

static std::string port ()
 Get the port used for CORBA commuication.
 
static TangoServerLauncherinstance ()
 

Public Attributes

std::string testName
 
std::string offlineDatabase
 
bool createOfflineDatabase {true}
 
bool keepOfflineDatabase {false}
 
bool verbose {false}
 
std::vector< std::string > argv
 
boost::process::child tangoServerProcess
 
std::string deviceString
 
Tango::Util * tg {nullptr}
 
std::shared_ptr< Tango::DeviceProxy > remoteProxy
 

Static Public Attributes

static TangoServerLauncherself {nullptr}
 

Detailed Description

Definition at line 12 of file TangoServerLauncher.h.

Constructor & Destructor Documentation

◆ TangoServerLauncher()

TangoServerLauncher::TangoServerLauncher ( std::string  setTestName = "Unified",
bool  setVerbose = false 
)
explicit

Definition at line 12 of file TangoServerLauncher.cpp.

◆ ~TangoServerLauncher()

TangoServerLauncher::~TangoServerLauncher ( )

Definition at line 20 of file TangoServerLauncher.cpp.

Member Function Documentation

◆ device()

const std::string & TangoServerLauncher::device ( ) const

The Tango device name.

Returns
The device name used for this server

Definition at line 120 of file TangoServerLauncher.cpp.

◆ getClientUrl()

std::string TangoServerLauncher::getClientUrl ( ) const

An URL that can be used by the Tango::DeviceProxy to connect to this server.

Returns

Definition at line 114 of file TangoServerLauncher.cpp.

◆ instance()

static TangoServerLauncher & TangoServerLauncher::instance ( )
inlinestatic

Definition at line 71 of file TangoServerLauncher.h.

◆ overrideNames()

TangoServerLauncher & TangoServerLauncher::overrideNames ( const std::string &  newNames)

Definition at line 160 of file TangoServerLauncher.cpp.

◆ port()

std::string TangoServerLauncher::port ( )
static

Get the port used for CORBA commuication.

Returns
The CORBA port of this server

Definition at line 101 of file TangoServerLauncher.cpp.

◆ setCreateOfflineDatabase()

TangoServerLauncher & TangoServerLauncher::setCreateOfflineDatabase ( bool  create)

Definition at line 126 of file TangoServerLauncher.cpp.

◆ setKeepOfflineDatabase()

TangoServerLauncher & TangoServerLauncher::setKeepOfflineDatabase ( bool  keep)

Definition at line 134 of file TangoServerLauncher.cpp.

◆ setOfflineDatabase()

TangoServerLauncher & TangoServerLauncher::setOfflineDatabase ( const std::string &  basePath)

Configure the Tango server to run against an offline database.

Parameters
basePathbase name of the db file. A template database with the name basename + ".db" has to exist in the working folder.

Definition at line 142 of file TangoServerLauncher.cpp.

◆ start()

void TangoServerLauncher::start ( )

Definition at line 39 of file TangoServerLauncher.cpp.

◆ stop()

void TangoServerLauncher::stop ( )

Shut down the Tango server.

Definition at line 91 of file TangoServerLauncher.cpp.

Member Data Documentation

◆ argv

std::vector<std::string> TangoServerLauncher::argv

Definition at line 64 of file TangoServerLauncher.h.

◆ createOfflineDatabase

bool TangoServerLauncher::createOfflineDatabase {true}

Definition at line 61 of file TangoServerLauncher.h.

◆ deviceString

std::string TangoServerLauncher::deviceString

Definition at line 68 of file TangoServerLauncher.h.

◆ keepOfflineDatabase

bool TangoServerLauncher::keepOfflineDatabase {false}

Definition at line 62 of file TangoServerLauncher.h.

◆ offlineDatabase

std::string TangoServerLauncher::offlineDatabase

Definition at line 60 of file TangoServerLauncher.h.

◆ remoteProxy

std::shared_ptr<Tango::DeviceProxy> TangoServerLauncher::remoteProxy

Definition at line 72 of file TangoServerLauncher.h.

◆ self

TangoServerLauncher * TangoServerLauncher::self {nullptr}
static

Definition at line 168 of file TangoServerLauncher.h.

◆ tangoServerProcess

boost::process::child TangoServerLauncher::tangoServerProcess

Definition at line 66 of file TangoServerLauncher.h.

◆ testName

std::string TangoServerLauncher::testName

Definition at line 59 of file TangoServerLauncher.h.

◆ tg

Tango::Util* TangoServerLauncher::tg {nullptr}

Definition at line 69 of file TangoServerLauncher.h.

◆ verbose

bool TangoServerLauncher::verbose {false}

Definition at line 63 of file TangoServerLauncher.h.


The documentation for this struct was generated from the following files: