libRASCH: ra_pl_comm.h File Reference
ra_pl_comm.h File Reference
Include dependency graph for ra_pl_comm.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Defines
#define MAX_SIGNAL_NAME 250
#define PARA_CHAR 0
#define PARA_BYTE 1
#define PARA_SHORT 2
#define PARA_UNSIGNED_SHORT 3
#define PARA_INT 4
#define PARA_UNSIGNED_INT 5
#define PARA_LONG 6
#define PARA_UNSIGNED_LONG 7
#define PARA_FLOAT 8
#define PARA_DOUBLE 9
#define PARA_CHAR_POINTER 10
#define PARA_BYTE_POINTER 11
#define PARA_SHORT_POINTER 12
#define PARA_UNSIGNED_SHORT_POINTER 13
#define PARA_INT_POINTER 14
#define PARA_UNSIGNED_INT_POINTER 15
#define PARA_LONG_POINTER 16
#define PARA_UNSIGNED_LONG_POINTER 17
#define PARA_FLOAT_POINTER 18
#define PARA_DOUBLE_POINTER 19
#define PARA_VOID_POINTER 20
Typedefs
typedef void * dest_handle
Functions
LIBRAAPI int ra_comm_add (meas_handle mh, plugin_handle p, dest_handle dh, const char *sig_name)
add a signal receiver
LIBRAAPI void ra_comm_del (meas_handle mh, dest_handle dh, const char *sig_name)
delete a signal receiver
LIBRAAPI void ra_comm_emit (meas_handle mh, const char *sender, const char *sig_name, int num_para, struct comm_para *p)
emits a signal
signal * find_signal (struct plugin_comm *plc, const char *sig_name)
look for a signal
signal * add_signal (struct plugin_comm *plc, const char *sig_name)
add a signal
int find_slot (struct signal *sig, dest_handle dh)
checks if a signal can be handled
Detailed Description
Implements a Qt like signal/slot architecture for communication between libRASCH plugins.
Author: Raphael Schneider (rasch@med1.med.tum.de )
Definition in file ra_pl_comm.h .
Define Documentation
#define MAX_SIGNAL_NAME 250
#define PARA_BYTE_POINTER 11
#define PARA_CHAR_POINTER 10
#define PARA_DOUBLE_POINTER 19
#define PARA_FLOAT_POINTER 18
#define PARA_INT_POINTER 14
#define PARA_LONG_POINTER 16
#define PARA_SHORT_POINTER 12
#define PARA_UNSIGNED_INT 5
#define PARA_UNSIGNED_INT_POINTER 15
#define PARA_UNSIGNED_LONG 7
#define PARA_UNSIGNED_LONG_POINTER 17
#define PARA_UNSIGNED_SHORT 3
#define PARA_UNSIGNED_SHORT_POINTER 13
#define PARA_VOID_POINTER 20
Typedef Documentation
Function Documentation
LIBRAAPI void ra_comm_emit
(
meas_handle
mh ,
const char *
sender ,
const char *
sig_name ,
int
num_para ,
struct comm_para *
para
)
Parameters:
<mh> measurement handle
<sender> name of the sender (needed for debug, can be NULL)
<sig_name> name of the signal
<num_para> number of signal parameters
<para> signal parameters
This function emits the signal sig_name wit num_para parameters.
Definition at line 118 of file pl_comm.c .
References _trace_sigdest() , _trace_signame() , slot_info::dest , find_signal() , plugin_struct::handle_signal , plugin_struct::info , plugin_infos::name , signal::num_slots , ra_meas::plc , slot_info::plugin , and signal::slot .
Generated on Fri May 27 11:33:36 2005 for libRASCH by
1.4.2