00001 #ifndef PARAM_H
00002 #define PARAM_H
00003 #include "preset_types.h"
00004 #include "splaytree_types.h"
00005
00006 #define PARAM_DEBUG 0
00007
00008
00009
00010
00011 param_t * create_param (char * name, short int type, short int flags, void * eqn_val, void * matrix,
00012 value_t default_init_val, value_t upper_bound, value_t lower_bound);
00013 param_t * create_user_param(char * name);
00014 int init_builtin_param_db();
00015 int init_user_param_db();
00016 int destroy_user_param_db();
00017 int destroy_builtin_param_db();
00018 void set_param(param_t * param, double val);
00019 int remove_param(param_t * param);
00020 param_t * find_param(char * name, struct PRESET_T * preset, int flags);
00021 void free_param(param_t * param);
00022 int load_all_builtin_param();
00023 int insert_param(param_t * param, splaytree_t * database);
00024 param_t * find_builtin_param(char * name);
00025 param_t * new_param_double(char * name, short int flags, void * engine_val, void * matrix,
00026 double upper_bound, double lower_bound, double init_val);
00027
00028 param_t * new_param_int(char * name, short int flags, void * engine_val,
00029 int upper_bound, int lower_bound, int init_val);
00030
00031 param_t * new_param_bool(char * name, short int flags, void * engine_val,
00032 int upper_bound, int lower_bound, int init_val);
00033
00034 param_t * find_param_db(char * name, splaytree_t * database, int create_flag);
00035
00036 #endif