EUROPEAN SYNCHROTRON RADIATION FACILITY
INSTALLATION EUROPEENNE DE RAYONNEMENT SYNCHROTRON
ESRF Logo
Main Page   Namespace List   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

Starter::StarterUtil Class Reference

#include <StarterUtil.h>

List of all members.

Public Methods

 StarterUtil (Tango::DeviceImpl *dev, string host_name)
 Contructor - Initialize data members. More...

methods
Tools methods

char * get_server_name (char *argin)
 Extract server name from input parameter (servname/instance). More...

char * get_instance_name (char *argin)
 Extract instance name from input parameter (servname/instance). More...

char * check_exe_file (char *servname, vector< string > v_path)
 Check if executable file exists and return its full name with good path. More...

string build_log_file_name (char *)
 method: StarterUtil::build_log_file_name. More...

char * get_file_date (char *filename)
 Get the last modification on a file and return it in a string. More...

char * strtime (time_t t)
 Format the date and time in the argin value (Ux format) as string. More...

ServerControledget_server_by_name (string, vector< ServerControled > &)
 search a server in ServerControled array by it's name . More...

vector< string > get_host_ds_list (Tango::DeviceProxy *)
 Get host device servers list from database. More...

bool is_notifyd_alive (Tango::DeviceProxy *)
 check if Notify Daemon is alive. More...

void start_timer ()
int get_timer_value ()


Constructor & Destructor Documentation

Starter::StarterUtil::StarterUtil Tango::DeviceImpl *    dev,
string    host_name
 

Contructor - Initialize data members.


Member Function Documentation

string Starter::StarterUtil::build_log_file_name char *    server
 

method: StarterUtil::build_log_file_name.

Parameters:
server  name of the server

char * Starter::StarterUtil::check_exe_file char *    servname,
vector< string >    v_path
 

Check if executable file exists and return its full name with good path.

Parameters:
servname  Server name
fullpath  Path from property

char * Starter::StarterUtil::get_file_date char *    filename
 

Get the last modification on a file and return it in a string.

Parameters:
filename  file's name to get the date.

vector< string > Starter::StarterUtil::get_host_ds_list Tango::DeviceProxy *    dbase
 

Get host device servers list from database.

Parameters:
dbase  Database device as a DeviceProxy for not implemented API commands.
hostname  Host's name to get the device servers list.

char * Starter::StarterUtil::get_instance_name char *    argin
 

Extract instance name from input parameter (servname/instance).

Parameters:
argin  servname/instance

ServerControled * Starter::StarterUtil::get_server_by_name string    servname,
vector< ServerControled > &    servers
 

search a server in ServerControled array by it's name .

Parameters:
servname  Server searched name.
servers  Array of structure to search name.

char * Starter::StarterUtil::get_server_name char *    argin
 

Extract server name from input parameter (servname/instance).

Parameters:
argin  servname/instance

int Starter::StarterUtil::get_timer_value  
 

bool Starter::StarterUtil::is_notifyd_alive Tango::DeviceProxy *    dbase
 

check if Notify Daemon is alive.

void Starter::StarterUtil::start_timer  
 

char * Starter::StarterUtil::strtime time_t    t
 

Format the date and time in the argin value (Ux format) as string.


The documentation for this class was generated from the following files: Tango Device Server User's Guide



(c) ESRF - Software Engineering Group