00001
00002
00003
00004
00005
00006 #ifndef _DENS_ARG_H_RPCGEN
00007 #define _DENS_ARG_H_RPCGEN
00008
00009 #include <config.h>
00010 #include <util/vml/types.h>
00011 #include <util/vml/vml.h>
00012 #include <util/enum.h>
00013 #include <util/defines.h>
00014 CPS_START_NAMESPACE
00015
00016 enum DENS_LIM {
00017 MAX_DENS_MASSES = 100,
00018 MAX_DENS_OBS = 100,
00019 };
00020 typedef enum DENS_LIM DENS_LIM;
00021 extern struct vml_enum_map DENS_LIM_map[];
00022
00023 class VML;
00024 class DensArg {
00025 public:
00026 bool Encode(char *filename,char *instance);
00027 bool Decode(char *filename,char *instance);
00028 bool Vml(VML *vmls,char *instance);
00029 int n_src;
00030 int max_deri;
00031 int max_save;
00032 int n_obs;
00033 int obs[MAX_DENS_OBS];
00034 PatternType pattern_kind;
00035 int n_masses;
00036 Float mass_start;
00037 Float mass_step;
00038 Float mass[MAX_DENS_MASSES];
00039 int max_num_iter;
00040 Float stop_rsd;
00041 int src_u_s;
00042 int src_l_s;
00043 int snk_u_s;
00044 int snk_l_s;
00045 int snk_loop;
00046 };
00047
00048
00049
00050 #ifdef __cplusplus
00051 extern "C" {
00052 #endif
00053
00054 #if defined(__STDC__) || defined(__cplusplus)
00055 extern bool_t vml_DENS_LIM (VML *, char *instance, DENS_LIM*);
00056 extern bool_t vml_DensArg (VML *, char *instance, DensArg*);
00057
00058 #else
00059 extern bool_t vml_DENS_LIM (VML *, char *instance, DENS_LIM*);
00060 extern bool_t vml_DensArg (VML *, char *instance, DensArg*);
00061
00062 #endif
00063
00064 #ifdef __cplusplus
00065 }
00066 #endif
00067 CPS_END_NAMESPACE
00068
00069 #endif