00001 #ifndef PVALT_H 00002 #define PVALT_H 00003 00004 #include <stdio.h> 00005 #include "aliast.h" 00006 #include "genfile.h" 00007 00008 class pvalt 00009 { 00010 public: 00011 pvalt (); 00012 ~pvalt (); 00013 long read(XFILE *in); 00014 long print(FILE *out); 00015 double getval(void); 00016 long read_prop(FILE *in, long lc); 00017 double getipv(void); 00018 00019 // type of time function 00020 generalfunct tfunc; 00021 // prescribed value 00022 double v; 00023 // inital value 00024 double ipv; 00025 00026 // strings with expressions 00027 char func[256]; 00028 // parser binary trees with expressions 00029 Equation *eq; 00030 // array with pointers to expression variables 00031 variable *var; 00032 00033 // function defined by table 00034 tablefunct tabf; 00035 00036 //number of functions multipling prescribed values 00037 long nmultpv; 00038 }; 00039 00040 #endif