|
Robotran C Documentation
|
Go to the documentation of this file.
7 #ifndef _AUTO_OUTPUT_H_
8 #define _AUTO_OUTPUT_H_
39 char *label,
int output_id,
int start,
int max_nb
Maximum number of user outputs allocated (max vectors and max scalar).
Definition: mbs_output_struct.h:23
User output auto-update.
Definition: mbs_output_struct.h:17
int update_auto_output_vector(AutoOutput *auto_output, double *vector, char *label, int output_id)
update auto_output when a 'set_output_vector' is encountered
Definition: auto_output.c:219
double * get_output_vector_ptr_auto(AutoOutput *auto_output, int index)
get the pointer to the output vector at the requested index
Definition: auto_output.c:518
void mbs_msg(const char *msg,...)
Send a message.
Definition: mbs_message.c:87
static AutoOutput * auto_output
Definition: set_output.c:21
char * get_output_vector_label_auto(AutoOutput *auto_output, int index)
get the output vector label corresponding to the requested index
Definition: auto_output.c:551
int index_output_vector_string(AutoOutput *auto_output, char *label)
get index for a output vector with its label
Definition: auto_output.c:480
double get_output_value_auto(AutoOutput *auto_output, int index)
get the output value corresponding to the requested index
Definition: auto_output.c:501
int define_auto_output_vector(AutoOutput *auto_output, char *label, int size)
set memory for a vector in AutoOutput
Definition: auto_output.c:67
int index_output_vector_string(AutoOutput *auto_output, char *label)
get index for a output vector with its label
Definition: auto_output.c:480
void mbs_error_msg(int err, const char *msg,...)
Send an error message.
Definition: mbs_message.c:131
double * get_dvec_0(int l_v)
create (with memory allocation) a vector (length l_v) of doubles, starting at index 0
Definition: mbs_1D_array.c:955
int update_auto_output_partial_vector(AutoOutput *auto_output, double *vector, char *label, int output_id, int start, int number)
update auto_output when a 'set_output_partial_vector' is encountered.
Definition: auto_output.c:267
#define MSG_ERR
Definition: auto_output.c:16
char * get_output_vector_label_auto(AutoOutput *auto_output, int index)
get the output vector label corresponding to the requested index
Definition: auto_output.c:551
int update_auto_output_partial_vector(AutoOutput *auto_output, double *vector, char *label, int output_id, int start, int number)
update auto_output when a 'set_output_partial_vector' is encountered.
Definition: auto_output.c:267
char ** label_outputs_vector
Array with the current user outputs vector labels.
Definition: mbs_output_struct.h:28
int update_auto_output(AutoOutput *auto_output, double value, char *label)
update auto_output when a 'set_output' is encountered
Definition: auto_output.c:166
void mbs_warning_msg(const char *msg,...)
Send a warning message.
Definition: mbs_message.c:100
int get_output_vector_size_auto(AutoOutput *auto_output, int index)
get the output vector size corresponding to the requested index
Definition: auto_output.c:568
void free_char_tab(char **mat)
release memory for a matrix of chars
Definition: useful_functions.c:271
double get_output_value_auto(AutoOutput *auto_output, int index)
get the output value corresponding to the requested index
Definition: auto_output.c:501
double * y_outputs
Array with the current outputs values.
Definition: mbs_output_struct.h:31
int define_auto_output_vector(AutoOutput *auto_output, char *label, int size)
set memory for a vector in AutoOutput
Definition: auto_output.c:67
int * v_size
Array with the size of each outputs vector.
Definition: mbs_output_struct.h:36
int nb_new_outputs
Number of new user outputs discovered during this time step.
Definition: mbs_output_struct.h:39
int update_auto_output_value(AutoOutput *auto_output, double value, int val_index, char *label, int output_id)
update auto_output when a 'set_output_value' is encountered It can take the label and/or the output_i...
Definition: auto_output.c:405
int update_auto_output_vector(AutoOutput *auto_output, double *vector, char *label, int output_id)
update auto_output when a 'set_output_vector' is encountered
Definition: auto_output.c:219
double * get_output_vector_ptr_auto(AutoOutput *auto_output, int index)
get the pointer to the output vector at the requested index
Definition: auto_output.c:518
AutoOutput * init_auto_output(int max_nb)
initialize the AutoOutput structure
Definition: auto_output.c:24
int out_vector_nb
Current number of user outputs vectors.
Definition: mbs_output_struct.h:21
int update_auto_output_value(AutoOutput *auto_output, double value, int val_index, char *label, int output_id)
update auto_output when a 'set_output_value' is encountered It can take the label and/or the output_i...
Definition: auto_output.c:405
char * get_output_label_auto(AutoOutput *auto_output, int index)
get the output label corresponding to the requested index
Definition: auto_output.c:535
char ** label_outputs
Array with the current user outputs labels.
Definition: mbs_output_struct.h:26
char ** get_char_tab(int nb_r, int nb_c)
create (with memory allocation) a [nb_r times nb_c] matrix of chars WARNING: only the first dimension...
Definition: useful_functions.c:175
char * get_output_label_auto(AutoOutput *auto_output, int index)
get the output label corresponding to the requested index
Definition: auto_output.c:535
int get_output_vector_size_auto(AutoOutput *auto_output, int index)
get the output vector size corresponding to the requested index
Definition: auto_output.c:568
functions used to automatically update the user output values
void free_auto_output(AutoOutput *auto_output)
release memory for AutoOutput
Definition: auto_output.c:130
int out_nb
Current number of user outputs.
Definition: mbs_output_struct.h:19
int update_auto_output(AutoOutput *auto_output, double value, char *label)
update auto_output when a 'set_output' is encountered
Definition: auto_output.c:166
double ** v_outputs
Array with the current outputs vector.
Definition: mbs_output_struct.h:34
#define MSG_PRE
Definition: auto_output.c:17
void free_auto_output(AutoOutput *auto_output)
release memory for AutoOutput
Definition: auto_output.c:130
void free_dvec_0(double *vec)
release memory for a vector of doubles, starting at index 0
Definition: mbs_1D_array.c:971
AutoOutput * init_auto_output(int max_nb)
initialize the AutoOutput structure
Definition: auto_output.c:24
int index_output_string(AutoOutput *auto_output, char *label)
get index for a output with its label
Definition: auto_output.c:459
int index_output_string(AutoOutput *auto_output, char *label)
get index for a output with its label
Definition: auto_output.c:459