Logo Search packages:      
Sourcecode: tango version File versions  Download package

Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Protected Attributes | Static Protected Attributes | Friends

DataBase_ns::DataBase Class Reference

Inheritance diagram for DataBase_ns::DataBase:
Inheritance graph
[legend]
Collaboration diagram for DataBase_ns::DataBase:
Collaboration graph
[legend]

List of all members.

Classes

struct  DbConnection
struct  timing_stats_struct

Public Types

typedef struct
DataBase_ns::DataBase::timing_stats_struct 
TimingStatsStruct

Public Member Functions

void add_dynamic_attributes ()
void add_state_status_attrs ()
virtual void always_executed_hook ()
void basic_unlock (bool forced=false)
void check_command_exists (const string &)
void clean_locker_ptrs ()
void data_into_net_object (Attribute &, AttributeValueList_3 *, AttributeValueList_4 *, long, AttrWriteType, bool)
 DataBase (Tango::DeviceClass *cl, const char *s)
 DataBase (Tango::DeviceClass *cl, string &s)
 DataBase (Tango::DeviceClass *cl, const char *s, const char *d)
void db_add_device (const Tango::DevVarStringArray *argin)
void db_add_server (const Tango::DevVarStringArray *argin)
void db_delete_all_device_attribute_property (const Tango::DevVarStringArray *argin)
void db_delete_attribute_alias (Tango::DevString argin)
void db_delete_class_attribute (const Tango::DevVarStringArray *argin)
void db_delete_class_attribute_property (const Tango::DevVarStringArray *argin)
void db_delete_class_property (const Tango::DevVarStringArray *argin)
void db_delete_device (Tango::DevString argin)
void db_delete_device_alias (Tango::DevString argin)
void db_delete_device_attribute (const Tango::DevVarStringArray *argin)
void db_delete_device_attribute_property (const Tango::DevVarStringArray *argin)
void db_delete_device_property (const Tango::DevVarStringArray *argin)
void db_delete_property (const Tango::DevVarStringArray *argin)
void db_delete_server (Tango::DevString argin)
void db_delete_server_info (Tango::DevString argin)
void db_export_device (const Tango::DevVarStringArray *argin)
void db_export_event (const Tango::DevVarStringArray *argin)
Tango::DevString db_get_alias_device (Tango::DevString argin)
Tango::DevString db_get_attribute_alias (Tango::DevString argin)
Tango::DevVarStringArray * db_get_attribute_alias_list (Tango::DevString argin)
Tango::DevVarStringArray * db_get_class_attribute_list (const Tango::DevVarStringArray *argin)
Tango::DevVarStringArray * db_get_class_attribute_property (const Tango::DevVarStringArray *argin)
Tango::DevVarStringArray * db_get_class_attribute_property2 (const Tango::DevVarStringArray *argin)
Tango::DevVarStringArray * db_get_class_attribute_property_hist (const Tango::DevVarStringArray *argin)
Tango::DevString db_get_class_for_device (Tango::DevString argin)
Tango::DevVarStringArray * db_get_class_inheritance_for_device (Tango::DevString argin)
Tango::DevVarStringArray * db_get_class_list (Tango::DevString argin)
Tango::DevVarStringArray * db_get_class_property (const Tango::DevVarStringArray *argin)
Tango::DevVarStringArray * db_get_class_property_hist (const Tango::DevVarStringArray *argin)
Tango::DevVarStringArray * db_get_class_property_list (Tango::DevString argin)
Tango::DevVarStringArray * db_get_data_for_server_cache (const Tango::DevVarStringArray *argin)
Tango::DevString db_get_device_alias (Tango::DevString argin)
Tango::DevVarStringArray * db_get_device_alias_list (Tango::DevString argin)
Tango::DevVarStringArray * db_get_device_attribute_list (const Tango::DevVarStringArray *argin)
Tango::DevVarStringArray * db_get_device_attribute_property (const Tango::DevVarStringArray *argin)
Tango::DevVarStringArray * db_get_device_attribute_property2 (const Tango::DevVarStringArray *argin)
Tango::DevVarStringArray * db_get_device_attribute_property_hist (const Tango::DevVarStringArray *argin)
Tango::DevVarStringArray * db_get_device_class_list (Tango::DevString argin)
Tango::DevVarStringArray * db_get_device_domain_list (Tango::DevString argin)
Tango::DevVarStringArray * db_get_device_exported_list (Tango::DevString argin)
Tango::DevVarStringArray * db_get_device_family_list (Tango::DevString argin)
Tango::DevVarLongStringArraydb_get_device_info (Tango::DevString argin)
Tango::DevVarStringArray * db_get_device_list (const Tango::DevVarStringArray *argin)
Tango::DevVarStringArray * db_get_device_member_list (Tango::DevString argin)
Tango::DevVarStringArray * db_get_device_property (const Tango::DevVarStringArray *argin)
Tango::DevVarStringArray * db_get_device_property_hist (const Tango::DevVarStringArray *argin)
Tango::DevVarStringArray * db_get_device_property_list (const Tango::DevVarStringArray *argin)
Tango::DevVarStringArray * db_get_device_server_class_list (Tango::DevString argin)
Tango::DevVarStringArray * db_get_device_wide_list (Tango::DevString argin)
Tango::DevVarStringArray * db_get_exportd_device_list_for_class (Tango::DevString argin)
Tango::DevVarStringArray * db_get_host_list (Tango::DevString argin)
Tango::DevVarStringArray * db_get_host_server_list (Tango::DevString argin)
Tango::DevVarStringArray * db_get_host_servers_info (Tango::DevString argin)
Tango::DevVarStringArray * db_get_instance_name_list (Tango::DevString argin)
Tango::DevVarStringArray * db_get_object_list (Tango::DevString argin)
Tango::DevVarStringArray * db_get_property (const Tango::DevVarStringArray *argin)
Tango::DevVarStringArray * db_get_property_hist (const Tango::DevVarStringArray *argin)
Tango::DevVarStringArray * db_get_property_list (const Tango::DevVarStringArray *argin)
Tango::DevVarStringArray * db_get_server_info (Tango::DevString argin)
Tango::DevVarStringArray * db_get_server_list (Tango::DevString argin)
Tango::DevVarStringArray * db_get_server_name_list (Tango::DevString argin)
Tango::DevVarLongStringArraydb_import_device (Tango::DevString argin)
Tango::DevVarLongStringArraydb_import_event (Tango::DevString argin)
Tango::DevVarStringArray * db_info ()
Tango::DevVarLongStringArraydb_my_sql_select (Tango::DevString argin)
void db_put_attribute_alias (const Tango::DevVarStringArray *argin)
void db_put_class_attribute_property (const Tango::DevVarStringArray *argin)
void db_put_class_attribute_property2 (const Tango::DevVarStringArray *argin)
void db_put_class_property (const Tango::DevVarStringArray *argin)
void db_put_device_alias (const Tango::DevVarStringArray *argin)
void db_put_device_attribute_property (const Tango::DevVarStringArray *argin)
void db_put_device_attribute_property2 (const Tango::DevVarStringArray *argin)
void db_put_device_property (const Tango::DevVarStringArray *argin)
void db_put_property (const Tango::DevVarStringArray *argin)
void db_put_server_info (const Tango::DevVarStringArray *argin)
void db_un_export_device (Tango::DevString argin)
void db_un_export_event (Tango::DevString argin)
void db_un_export_server (Tango::DevString argin)
void delete_dev ()
void delete_device ()
Tango::DevState dev_state ()
vector< long > & get_alarmed_not_read ()
string & get_alias_name_lower ()
TangoMonitor & get_att_conf_monitor ()
vector< string > & get_attr_min_poll_period ()
long get_attr_poll_ring_depth (string &)
Tango::client_addrget_client_ident ()
vector< string > & get_cmd_min_poll_period ()
long get_cmd_poll_ring_depth (string &)
Command * get_command (const string &)
int get_connection ()
long get_dev_idl_version ()
TangoMonitor & get_dev_monitor ()
void get_device_property ()
bool get_exported_flag ()
Tango::DevLong get_lock_validity ()
client_addr * get_locker ()
Tango::DevLong get_locking_ctr ()
time_t get_locking_date ()
int get_min_poll_period ()
string & get_name_lower ()
vector< string > & get_non_auto_polled_attr ()
vector< string > & get_non_auto_polled_cmd ()
client_addr * get_old_locker ()
TangoMonitor & get_poll_monitor ()
vector< PollObj * > & get_poll_obj_list ()
long get_poll_old_factor ()
long get_poll_ring_depth ()
vector< string > & get_polled_attr ()
vector< string > & get_polled_cmd ()
virtual void init_device ()
virtual bool is_DbAddDevice_allowed (const CORBA::Any &any)
virtual bool is_DbAddServer_allowed (const CORBA::Any &any)
virtual bool is_DbDeleteAllDeviceAttributeProperty_allowed (const CORBA::Any &any)
virtual bool is_DbDeleteAttributeAlias_allowed (const CORBA::Any &any)
virtual bool is_DbDeleteClassAttribute_allowed (const CORBA::Any &any)
virtual bool is_DbDeleteClassAttributeProperty_allowed (const CORBA::Any &any)
virtual bool is_DbDeleteClassProperty_allowed (const CORBA::Any &any)
virtual bool is_DbDeleteDevice_allowed (const CORBA::Any &any)
virtual bool is_DbDeleteDeviceAlias_allowed (const CORBA::Any &any)
virtual bool is_DbDeleteDeviceAttribute_allowed (const CORBA::Any &any)
virtual bool is_DbDeleteDeviceAttributeProperty_allowed (const CORBA::Any &any)
virtual bool is_DbDeleteDeviceProperty_allowed (const CORBA::Any &any)
virtual bool is_DbDeleteProperty_allowed (const CORBA::Any &any)
virtual bool is_DbDeleteServer_allowed (const CORBA::Any &any)
virtual bool is_DbDeleteServerInfo_allowed (const CORBA::Any &any)
virtual bool is_DbExportDevice_allowed (const CORBA::Any &any)
virtual bool is_DbExportEvent_allowed (const CORBA::Any &any)
virtual bool is_DbGetAliasDevice_allowed (const CORBA::Any &any)
virtual bool is_DbGetAttributeAlias_allowed (const CORBA::Any &any)
virtual bool is_DbGetAttributeAliasList_allowed (const CORBA::Any &any)
virtual bool is_DbGetClassAttributeList_allowed (const CORBA::Any &any)
virtual bool is_DbGetClassAttributeProperty2_allowed (const CORBA::Any &any)
virtual bool is_DbGetClassAttributeProperty_allowed (const CORBA::Any &any)
virtual bool is_DbGetClassAttributePropertyHist_allowed (const CORBA::Any &any)
virtual bool is_DbGetClassForDevice_allowed (const CORBA::Any &any)
virtual bool is_DbGetClassInheritanceForDevice_allowed (const CORBA::Any &any)
virtual bool is_DbGetClassList_allowed (const CORBA::Any &any)
virtual bool is_DbGetClassProperty_allowed (const CORBA::Any &any)
virtual bool is_DbGetClassPropertyHist_allowed (const CORBA::Any &any)
virtual bool is_DbGetClassPropertyList_allowed (const CORBA::Any &any)
virtual bool is_DbGetDataForServerCache_allowed (const CORBA::Any &any)
virtual bool is_DbGetDeviceAlias_allowed (const CORBA::Any &any)
virtual bool is_DbGetDeviceAliasList_allowed (const CORBA::Any &any)
virtual bool is_DbGetDeviceAttributeList_allowed (const CORBA::Any &any)
virtual bool is_DbGetDeviceAttributeProperty2_allowed (const CORBA::Any &any)
virtual bool is_DbGetDeviceAttributeProperty_allowed (const CORBA::Any &any)
virtual bool is_DbGetDeviceAttributePropertyHist_allowed (const CORBA::Any &any)
virtual bool is_DbGetDeviceClassList_allowed (const CORBA::Any &any)
virtual bool is_DbGetDeviceDomainList_allowed (const CORBA::Any &any)
virtual bool is_DbGetDeviceExportedList_allowed (const CORBA::Any &any)
virtual bool is_DbGetDeviceFamilyList_allowed (const CORBA::Any &any)
virtual bool is_DbGetDeviceInfo_allowed (const CORBA::Any &any)
virtual bool is_DbGetDeviceList_allowed (const CORBA::Any &any)
virtual bool is_DbGetDeviceMemberList_allowed (const CORBA::Any &any)
virtual bool is_DbGetDeviceProperty_allowed (const CORBA::Any &any)
virtual bool is_DbGetDevicePropertyHist_allowed (const CORBA::Any &any)
virtual bool is_DbGetDevicePropertyList_allowed (const CORBA::Any &any)
virtual bool is_DbGetDeviceServerClassList_allowed (const CORBA::Any &any)
virtual bool is_DbGetDeviceWideList_allowed (const CORBA::Any &any)
virtual bool is_DbGetExportdDeviceListForClass_allowed (const CORBA::Any &any)
virtual bool is_DbGetHostList_allowed (const CORBA::Any &any)
virtual bool is_DbGetHostServerList_allowed (const CORBA::Any &any)
virtual bool is_DbGetHostServersInfo_allowed (const CORBA::Any &any)
virtual bool is_DbGetInstanceNameList_allowed (const CORBA::Any &any)
virtual bool is_DbGetObjectList_allowed (const CORBA::Any &any)
virtual bool is_DbGetProperty_allowed (const CORBA::Any &any)
virtual bool is_DbGetPropertyHist_allowed (const CORBA::Any &any)
virtual bool is_DbGetPropertyList_allowed (const CORBA::Any &any)
virtual bool is_DbGetServerInfo_allowed (const CORBA::Any &any)
virtual bool is_DbGetServerList_allowed (const CORBA::Any &any)
virtual bool is_DbGetServerNameList_allowed (const CORBA::Any &any)
virtual bool is_DbImportDevice_allowed (const CORBA::Any &any)
virtual bool is_DbImportEvent_allowed (const CORBA::Any &any)
virtual bool is_DbInfo_allowed (const CORBA::Any &any)
virtual bool is_DbMySqlSelect_allowed (const CORBA::Any &any)
virtual bool is_DbPutAttributeAlias_allowed (const CORBA::Any &any)
virtual bool is_DbPutClassAttributeProperty2_allowed (const CORBA::Any &any)
virtual bool is_DbPutClassAttributeProperty_allowed (const CORBA::Any &any)
virtual bool is_DbPutClassProperty_allowed (const CORBA::Any &any)
virtual bool is_DbPutDeviceAlias_allowed (const CORBA::Any &any)
virtual bool is_DbPutDeviceAttributeProperty2_allowed (const CORBA::Any &any)
virtual bool is_DbPutDeviceAttributeProperty_allowed (const CORBA::Any &any)
virtual bool is_DbPutDeviceProperty_allowed (const CORBA::Any &any)
virtual bool is_DbPutProperty_allowed (const CORBA::Any &any)
virtual bool is_DbPutServerInfo_allowed (const CORBA::Any &any)
virtual bool is_DbUnExportDevice_allowed (const CORBA::Any &any)
virtual bool is_DbUnExportEvent_allowed (const CORBA::Any &any)
virtual bool is_DbUnExportServer_allowed (const CORBA::Any &any)
bool is_device_locked ()
bool is_polled ()
void is_polled (bool poll)
bool is_py_device ()
virtual bool is_ResetTimingValues_allowed (const CORBA::Any &any)
virtual bool is_StoredProcedureRelease_allowed (Tango::AttReqType type)
virtual bool is_Timing_average_allowed (Tango::AttReqType type)
virtual bool is_Timing_calls_allowed (Tango::AttReqType type)
virtual bool is_Timing_index_allowed (Tango::AttReqType type)
virtual bool is_Timing_info_allowed (Tango::AttReqType type)
virtual bool is_Timing_maximum_allowed (Tango::AttReqType type)
virtual bool is_Timing_minimum_allowed (Tango::AttReqType type)
void lock (client_addr *, int)
Tango::DevVarLongStringArraylock_status ()
void poll_lists_2_v5 ()
void polled_data_into_net_object (AttributeValueList_3 *, AttributeValueList_4 *, long, long, long, PollObj *, const DevVarStringArray &)
void push_att_conf_event (Attribute *)
MYSQL_RES * query (string sql_query, const char *method, int con_nb=-1)
virtual void read_attr_hardware (vector< long > &attr_list)
virtual void read_StoredProcedureRelease (Tango::Attribute &attr)
virtual void read_Timing_average (Tango::Attribute &attr)
virtual void read_Timing_calls (Tango::Attribute &attr)
virtual void read_Timing_index (Tango::Attribute &attr)
virtual void read_Timing_info (Tango::Attribute &attr)
virtual void read_Timing_maximum (Tango::Attribute &attr)
virtual void read_Timing_minimum (Tango::Attribute &attr)
void release_connection (int con_nb)
void relock (client_addr *)
void reset_timing_values ()
void set_alias_name_lower (string &al)
void set_exported_flag (bool exp)
void set_locking_param (client_addr *, client_addr *, time_t, DevLong, DevLong)
void set_poll_old_factor (long fact)
void set_poll_ring_depth (long depth)
void set_py_device (bool py)
void simple_query (string sql_query, const char *method, int con_nb=-1)
void stop_polling ()
void stop_polling (bool)
Tango::DevLong unlock (bool)
bool valid_lock ()
void write_attributes_in_db (vector< long > &, vector< long > &)
 ~DataBase ()
CORBA operation methods

Method defined to implement TANGO device CORBA operation

virtual Tango::DevAttrHistory_4read_attribute_history_4 (const char *name, CORBA::Long n) throw (Tango::DevFailed, CORBA::SystemException)
virtual Tango::DevCmdHistory_4command_inout_history_4 (const char *command, CORBA::Long n) throw (Tango::DevFailed, CORBA::SystemException)
virtual CORBA::Any * command_inout_4 (const char *in_cmd, const CORBA::Any &in_data, Tango::DevSource source, const Tango::ClntIdent &cl_ident) throw (Tango::DevFailed, CORBA::SystemException)
virtual
Tango::AttributeValueList_4 * 
read_attributes_4 (const Tango::DevVarStringArray &names, Tango::DevSource source, const Tango::ClntIdent &cl_ident) throw (Tango::DevFailed, CORBA::SystemException)
virtual void write_attributes_4 (const Tango::AttributeValueList_4 &values, const Tango::ClntIdent &cl_ident) throw (Tango::MultiDevFailed, Tango::DevFailed,CORBA::SystemException)
virtual void set_attribute_config_4 (const Tango::AttributeConfigList_3 &new_conf, const Tango::ClntIdent &cl_ident) throw (Tango::DevFailed, CORBA::SystemException)
virtual
Tango::AttributeValueList_4 * 
write_read_attributes_4 (const Tango::AttributeValueList_4 &values, const Tango::ClntIdent &cl_ident) throw (Tango::MultiDevFailed,Tango::DevFailed, CORBA::SystemException)
CORBA operation methods

Method defined to implement TANGO device CORBA operation

virtual
Tango::AttributeValueList_3 * 
read_attributes_3 (const Tango::DevVarStringArray &names, Tango::DevSource source) throw (Tango::DevFailed, CORBA::SystemException)
virtual void write_attributes_3 (const Tango::AttributeValueList &values) throw (Tango::MultiDevFailed, Tango::DevFailed,CORBA::SystemException)
virtual
Tango::DevAttrHistoryList_3 * 
read_attribute_history_3 (const char *name, CORBA::Long n) throw (Tango::DevFailed, CORBA::SystemException)
virtual Tango::DevInfo_3info_3 () throw (Tango::DevFailed, CORBA::SystemException)
virtual
Tango::AttributeConfigList_3 * 
get_attribute_config_3 (const Tango::DevVarStringArray &names) throw (Tango::DevFailed, CORBA::SystemException)
virtual void set_attribute_config_3 (const Tango::AttributeConfigList_3 &new_conf) throw (Tango::DevFailed, CORBA::SystemException)
CORBA operation methods

Method defined to implement TANGO device CORBA operation

virtual CORBA::Any * command_inout_2 (const char *in_cmd, const CORBA::Any &in_data, Tango::DevSource source) throw (Tango::DevFailed, CORBA::SystemException)
virtual Tango::DevCmdInfoList_2 * command_list_query_2 () throw (Tango::DevFailed, CORBA::SystemException)
virtual Tango::DevCmdInfo_2command_query_2 (const char *command) throw (Tango::DevFailed, CORBA::SystemException)
virtual Tango::AttributeValueList * read_attributes_2 (const Tango::DevVarStringArray &names, Tango::DevSource source) throw (Tango::DevFailed, CORBA::SystemException)
virtual
Tango::AttributeConfigList_2 * 
get_attribute_config_2 (const Tango::DevVarStringArray &names) throw (Tango::DevFailed, CORBA::SystemException)
virtual Tango::DevAttrHistoryList * read_attribute_history_2 (const char *name, CORBA::Long n) throw (Tango::DevFailed, CORBA::SystemException)
virtual Tango::DevCmdHistoryList * command_inout_history_2 (const char *command, CORBA::Long n) throw (Tango::DevFailed, CORBA::SystemException)
Get/Set object members.

These methods allows the external world to get/set DeviceImpl instance data members

string & get_status ()
void set_status (const string &new_status)
void append_status (const string &stat, bool new_line=false)
Tango::DevState & get_state ()
Tango::DevState & get_prev_state ()
void set_state (const Tango::DevState &new_state)
string & get_name ()
DeviceClass * get_device_class ()
MultiAttribute * get_device_attr ()
void set_device_attr (MultiAttribute *ptr)
DbDevice * get_db_device ()
void set_d_var (Tango::Device_ptr d)
Tango::Device_var get_d_var ()
void set_obj_id (PortableServer::ObjectId_var o)
PortableServer::ObjectId_var & get_obj_id ()
virtual PortableServer::POA_ptr _default_POA ()
CORBA attribute methods

Method defined to implement TANGO device CORBA attribute

virtual char * name () throw (CORBA::SystemException)
virtual char * adm_name () throw (CORBA::SystemException)
virtual char * description () throw (CORBA::SystemException)
virtual char * status () throw (CORBA::SystemException)
virtual Tango::DevState state () throw (CORBA::SystemException)
CORBA operation methods

Method defined to implement TANGO device CORBA operation

virtual CORBA::Any * command_inout (const char *in_cmd, const CORBA::Any &in_data) throw (Tango::DevFailed, CORBA::SystemException)
virtual Tango::DevVarStringArray * black_box (CORBA::Long n) throw (Tango::DevFailed, CORBA::SystemException)
virtual Tango::DevCmdInfoList * command_list_query () throw (Tango::DevFailed, CORBA::SystemException)
virtual Tango::DevCmdInfocommand_query (const char *command) throw (Tango::DevFailed, CORBA::SystemException)
virtual Tango::DevInfoinfo () throw (Tango::DevFailed, CORBA::SystemException)
virtual void ping () throw (Tango::DevFailed, CORBA::SystemException)
virtual
Tango::AttributeConfigList * 
get_attribute_config (const Tango::DevVarStringArray &names) throw (Tango::DevFailed, CORBA::SystemException)
virtual void set_attribute_config (const Tango::AttributeConfigList &new_conf) throw (Tango::DevFailed, CORBA::SystemException)
virtual Tango::AttributeValueList * read_attributes (const Tango::DevVarStringArray &names) throw (Tango::DevFailed, CORBA::SystemException)
virtual void write_attributes (const Tango::AttributeValueList &values) throw (Tango::DevFailed, CORBA::SystemException)
Methods to build Tango array types.

These methods are helper methods to build Tango array types from an already existing buffer (Tango array types are CORBA sequences)

Tango::DevVarCharArray * create_DevVarCharArray (unsigned char *ptr, long length)
Tango::DevVarShortArray * create_DevVarShortArray (short *ptr, long length)
Tango::DevVarLongArray * create_DevVarLongArray (DevLong *ptr, long length)
Tango::DevVarLong64Array * create_DevVarLong64Array (DevLong64 *ptr, long length)
Tango::DevVarFloatArray * create_DevVarFloatArray (float *ptr, long length)
Tango::DevVarDoubleArray * create_DevVarDoubleArray (double *ptr, long length)
Tango::DevVarUShortArray * create_DevVarUShortArray (unsigned short *ptr, long length)
Tango::DevVarULongArray * create_DevVarULongArray (DevULong *ptr, long length)
Tango::DevVarULong64Array * create_DevVarULong64Array (DevULong64 *ptr, long length)
Tango::DevVarStringArray * create_DevVarStringArray (char **ptr, long length)
Miscellaneous methods
virtual void read_attr (Attribute &)
virtual void write_attr_hardware (vector< long > &)
virtual Tango::ConstDevString dev_status ()
void add_attribute (Attr *new_attr)
void remove_attribute (Attr *rem_attr, bool free_it=false)
void remove_attribute (string &rem_attr_name, bool free_it=false)
vector< PollObj * >::iterator get_polled_obj_by_type_name (Tango::PollObjType obj_type, const string &obj_name)
void init_cmd_poll_ext_trig (string cmd_name)
void init_cmd_poll_period ()
void init_attr_poll_ext_trig (string cmd_name)
void init_attr_poll_period ()
Push change event methods.

These methods allow to fire change events for attributes manually, without the polling to be started.

void set_change_event (string attr_name, bool implemented, bool detect=true)
void push_change_event (string attr_name, DevFailed *except=NULL)
void push_change_event (string attr_name, Tango::DevShort *p_data, long x=1, long y=0, bool release=false)
void push_change_event (string attr_name, Tango::DevLong *p_data, long x=1, long y=0, bool release=false)
void push_change_event (string attr_name, Tango::DevLong64 *p_data, long x=1, long y=0, bool release=false)
void push_change_event (string attr_name, Tango::DevFloat *p_data, long x=1, long y=0, bool release=false)
void push_change_event (string attr_name, Tango::DevDouble *p_data, long x=1, long y=0, bool release=false)
void push_change_event (string attr_name, Tango::DevString *p_data, long x=1, long y=0, bool release=false)
void push_change_event (string attr_name, Tango::DevBoolean *p_data, long x=1, long y=0, bool release=false)
void push_change_event (string attr_name, Tango::DevUShort *p_data, long x=1, long y=0, bool release=false)
void push_change_event (string attr_name, Tango::DevUChar *p_data, long x=1, long y=0, bool release=false)
void push_change_event (string attr_name, Tango::DevULong *p_data, long x=1, long y=0, bool release=false)
void push_change_event (string attr_name, Tango::DevULong64 *p_data, long x=1, long y=0, bool release=false)
void push_change_event (string attr_name, Tango::DevState *p_data, long x=1, long y=0, bool release=false)
void push_change_event (string attr_name, Tango::DevEncoded *p_data, long x=1, long y=0, bool release=false)
void push_change_event (string attr_name, Tango::DevString *p_str_data, Tango::DevUChar *p_data, long size, bool release=false)
void push_change_event (string attr_name, Tango::DevShort *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
void push_change_event (string attr_name, Tango::DevLong *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
void push_change_event (string attr_name, Tango::DevLong64 *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
void push_change_event (string attr_name, Tango::DevFloat *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
void push_change_event (string attr_name, Tango::DevDouble *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
void push_change_event (string attr_name, Tango::DevString *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
void push_change_event (string attr_name, Tango::DevBoolean *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
void push_change_event (string attr_name, Tango::DevUShort *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
void push_change_event (string attr_name, Tango::DevUChar *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
void push_change_event (string attr_name, Tango::DevULong *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
void push_change_event (string attr_name, Tango::DevULong64 *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
void push_change_event (string attr_name, Tango::DevState *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
void push_change_event (string attr_name, Tango::DevEncoded *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
void push_change_event (string attr_name, Tango::DevString *p_str_data, Tango::DevUChar *p_data, long size, struct timeval &t, Tango::AttrQuality qual, bool release=false)
Push archive event methods.

These methods allow to fire archive events for attributes manually, without the polling to be started.

void set_archive_event (string attr_name, bool implemented, bool detect=true)
void push_archive_event (string attr_name, DevFailed *except=NULL)
void push_archive_event (string attr_name, Tango::DevShort *p_data, long x=1, long y=0, bool release=false)
void push_archive_event (string attr_name, Tango::DevLong *p_data, long x=1, long y=0, bool release=false)
void push_archive_event (string attr_name, Tango::DevLong64 *p_data, long x=1, long y=0, bool release=false)
void push_archive_event (string attr_name, Tango::DevFloat *p_data, long x=1, long y=0, bool release=false)
void push_archive_event (string attr_name, Tango::DevDouble *p_data, long x=1, long y=0, bool release=false)
void push_archive_event (string attr_name, Tango::DevString *p_data, long x=1, long y=0, bool release=false)
void push_archive_event (string attr_name, Tango::DevBoolean *p_data, long x=1, long y=0, bool release=false)
void push_archive_event (string attr_name, Tango::DevUShort *p_data, long x=1, long y=0, bool release=false)
void push_archive_event (string attr_name, Tango::DevUChar *p_data, long x=1, long y=0, bool release=false)
void push_archive_event (string attr_name, Tango::DevULong *p_data, long x=1, long y=0, bool release=false)
void push_archive_event (string attr_name, Tango::DevULong64 *p_data, long x=1, long y=0, bool release=false)
void push_archive_event (string attr_name, Tango::DevState *p_data, long x=1, long y=0, bool release=false)
void push_archive_event (string attr_name, Tango::DevEncoded *p_data, long x=1, long y=0, bool release=false)
void push_archive_event (string attr_name, Tango::DevString *p_str_data, Tango::DevUChar *p_data, long size, bool release=false)
void push_archive_event (string attr_name, Tango::DevShort *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
void push_archive_event (string attr_name, Tango::DevLong *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
void push_archive_event (string attr_name, Tango::DevLong64 *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
void push_archive_event (string attr_name, Tango::DevFloat *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
void push_archive_event (string attr_name, Tango::DevDouble *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
void push_archive_event (string attr_name, Tango::DevString *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
void push_archive_event (string attr_name, Tango::DevBoolean *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
void push_archive_event (string attr_name, Tango::DevUShort *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
void push_archive_event (string attr_name, Tango::DevUChar *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
void push_archive_event (string attr_name, Tango::DevULong *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
void push_archive_event (string attr_name, Tango::DevULong64 *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
void push_archive_event (string attr_name, Tango::DevState *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
void push_archive_event (string attr_name, Tango::DevEncoded *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
void push_archive_event (string attr_name, Tango::DevString *p_str_data, Tango::DevUChar *p_data, long size, struct timeval &t, Tango::AttrQuality qual, bool release=false)
Push user event methods.

These methods allow to fire user events for attributes manually, without the polling to be started.

void push_event (string attr_name, vector< string > &filt_names, vector< double > &filt_vals, DevFailed *except=NULL)
void push_event (string attr_name, vector< string > &filt_names, vector< double > &filt_vals, Tango::DevShort *p_data, long x=1, long y=0, bool release=false)
void push_event (string attr_name, vector< string > &filt_names, vector< double > &filt_vals, Tango::DevLong *p_data, long x=1, long y=0, bool release=false)
void push_event (string attr_name, vector< string > &filt_names, vector< double > &filt_vals, Tango::DevLong64 *p_data, long x=1, long y=0, bool release=false)
void push_event (string attr_name, vector< string > &filt_names, vector< double > &filt_vals, Tango::DevFloat *p_data, long x=1, long y=0, bool release=false)
void push_event (string attr_name, vector< string > &filt_names, vector< double > &filt_vals, Tango::DevDouble *p_data, long x=1, long y=0, bool release=false)
void push_event (string attr_name, vector< string > &filt_names, vector< double > &filt_vals, Tango::DevString *p_data, long x=1, long y=0, bool release=false)
void push_event (string attr_name, vector< string > &filt_names, vector< double > &filt_vals, Tango::DevBoolean *p_data, long x=1, long y=0, bool release=false)
void push_event (string attr_name, vector< string > &filt_names, vector< double > &filt_vals, Tango::DevUShort *p_data, long x=1, long y=0, bool release=false)
void push_event (string attr_name, vector< string > &filt_names, vector< double > &filt_vals, Tango::DevUChar *p_data, long x=1, long y=0, bool release=false)
void push_event (string attr_name, vector< string > &filt_names, vector< double > &filt_vals, Tango::DevULong *p_data, long x=1, long y=0, bool release=false)
void push_event (string attr_name, vector< string > &filt_names, vector< double > &filt_vals, Tango::DevULong64 *p_data, long x=1, long y=0, bool release=false)
void push_event (string attr_name, vector< string > &filt_names, vector< double > &filt_vals, Tango::DevState *p_data, long x=1, long y=0, bool release=false)
void push_event (string attr_name, vector< string > &filt_names, vector< double > &filt_vals, Tango::DevEncoded *p_data, long x=1, long y=0, bool release=false)
void push_event (string attr_name, vector< string > &filt_names, vector< double > &filt_vals, Tango::DevString *p_str_data, Tango::DevUChar *p_data, long size, bool release=false)
void push_event (string attr_name, vector< string > &filt_names, vector< double > &filt_vals, Tango::DevShort *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
void push_event (string attr_name, vector< string > &filt_names, vector< double > &filt_vals, Tango::DevLong *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
void push_event (string attr_name, vector< string > &filt_names, vector< double > &filt_vals, Tango::DevLong64 *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
void push_event (string attr_name, vector< string > &filt_names, vector< double > &filt_vals, Tango::DevFloat *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
void push_event (string attr_name, vector< string > &filt_names, vector< double > &filt_vals, Tango::DevDouble *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
void push_event (string attr_name, vector< string > &filt_names, vector< double > &filt_vals, Tango::DevString *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
void push_event (string attr_name, vector< string > &filt_names, vector< double > &filt_vals, Tango::DevBoolean *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
void push_event (string attr_name, vector< string > &filt_names, vector< double > &filt_vals, Tango::DevUShort *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
void push_event (string attr_name, vector< string > &filt_names, vector< double > &filt_vals, Tango::DevUChar *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
void push_event (string attr_name, vector< string > &filt_names, vector< double > &filt_vals, Tango::DevULong *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
void push_event (string attr_name, vector< string > &filt_names, vector< double > &filt_vals, Tango::DevULong64 *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
void push_event (string attr_name, vector< string > &filt_names, vector< double > &filt_vals, Tango::DevState *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
void push_event (string attr_name, vector< string > &filt_names, vector< double > &filt_vals, Tango::DevEncoded *p_data, struct timeval &t, Tango::AttrQuality qual, long x=1, long y=0, bool release=false)
void push_event (string attr_name, vector< string > &filt_names, vector< double > &filt_vals, Tango::DevString *p_str_data, Tango::DevUChar *p_data, long size, struct timeval &t, Tango::AttrQuality qual, bool release=false)
Push data ready event methods

This method allows the user to push a data ready event

void push_data_ready_event (const string &attr_name, Tango::DevLong ctr=0)
Signal related methods

These methods allow a signal management at device level

void register_signal (long signo)
void unregister_signal (long signo)
virtual void signal_handler (long signo)

Static Public Member Functions

static void set_conn_pool_size (int si)

Public Attributes

Tango::DevString * attr_StoredProcedureRelease_read
Tango::DevDouble * attr_Timing_average_read
Tango::DevDouble * attr_Timing_calls_read
Tango::DevString * attr_Timing_index_read
Tango::DevString * attr_Timing_info_read
Tango::DevDouble * attr_Timing_maximum_read
Tango::DevDouble * attr_Timing_minimum_read
bool fireToStarter
int historyDepth
UpdStarterDatastarter_shared
double * timing_stats_average
double * timing_stats_calls
char ** timing_stats_index
map< std::string,
TimingStatsStruct * > 
timing_stats_map
double * timing_stats_maximum
double * timing_stats_minimum
int timing_stats_size
UpdateStarterupd_starter_thread

Static Public Attributes

static string db_name

Protected Member Functions

void add_alarmed (vector< long > &)
void alarmed_not_read (vector< AttIdx > &)
void base_connect (int)
bool check_device_name (string &)
void check_history_tables ()
void check_lock (const char *, const char *cmd=NULL)
void create_connection_pool (const char *, const char *)
Tango::DevString db_get_device_host (Tango::DevString, int con_nb=-1)
bool device_name_to_dfm (string &device_name, char domain[], char family[], char member[])
string escape_string (const char *string_c_str)
unsigned int get_id (const char *name, int con_nb=-1)
void init_timing_stats ()
void purge_att_property (const char *table, const char *field, const char *object, const char *attribute, const char *name, int con_nb=-1)
void purge_property (const char *table, const char *field, const char *object, const char *name, int con_nb=-1)
void read_attributes_from_cache (const Tango::DevVarStringArray &, Tango::AttributeValueList_3 *&, Tango::AttributeValueList_4 *&)
void read_attributes_no_except (const Tango::DevVarStringArray &, Tango::AttributeValueList_3 *&, Tango::AttributeValueList_4 *&, bool, vector< long > &)
long reading_state_necessary (vector< AttIdx > &)
string replace_wildcard (const char *)
void state2attr (Tango::DevState, Tango::AttributeValue_4 &)
void state2attr (Tango::DevState, Tango::AttributeValue_3 &)
void status2attr (Tango::ConstDevString, Tango::AttributeValue_3 &)
void status2attr (Tango::ConstDevString, Tango::AttributeValue_4 &)
void throw_locked_exception (const char *meth)
void update_timing_stats (TimeVal before, TimeVal after, std::string command)
void write_attributes_34 (const Tango::AttributeValueList *, const Tango::AttributeValueList_4 *)
void write_attributes_in_db (vector< long > &, vector< AttIdx > &)

Protected Attributes

DbConnectionconn_pool
DevVarBooleanArray dummy_boolean_att_value
DevVarDoubleArray dummy_double_att_value
DevVarEncodedArray dummy_encoded_att_value
DevVarFloatArray dummy_float_att_value
DevVarLong64Array dummy_long64_att_value
DevVarLongArray dummy_long_att_value
DevVarShortArray dummy_short_att_value
DevVarStateArray dummy_state_att_value
DevVarStringArray dummy_string_att_value
DevVarCharArray dummy_uchar_att_value
DevVarULong64Array dummy_ulong64_att_value
DevVarULongArray dummy_ulong_att_value
DevVarUShortArray dummy_ushort_att_value
DeviceImplExt * ext
Device_3ImplExt * ext_3
Device_4ImplExt * ext_4
int last_sem_wait
unsigned long mysql_svr_version
omni_mutex sem_wait_mutex
omni_mutex starter_mutex
char stored_release [128]
char * stored_release_ptr
omni_mutex timing_stats_mutex
Class data members
BlackBox * blackbox_ptr
long blackbox_depth
string device_name
string desc
string device_status
Tango::DevState device_state
long version
DeviceClass * device_class
MultiAttribute * dev_attr
DbDevice * db_dev
string adm_device_name

Static Protected Attributes

static int conn_pool_size

Friends

class Tango::AutoTangoMonitor
class Tango::EventSubscriptionChangeCmd
class Tango::EventSupplier
class Tango::NoSyncModelTangoMonitor

Detailed Description

Definition at line 122 of file DataBase.h.


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

Generated by  Doxygen 1.6.0   Back to index