00001 #include "dloadpd.h" 00002 #include "global.h" 00003 #include "intools.h" 00004 00005 00006 00007 /** 00008 The constructor initializes class attributes to the zero values. 00009 00010 Created by Tomas Koudelka, 00011 */ 00012 dloadpd::dloadpd() 00013 { 00014 } 00015 00016 00017 00018 /** 00019 The destructor deallocates used memory. 00020 00021 Created by Tomas Koudelka, 00022 */ 00023 dloadpd::~dloadpd() 00024 { 00025 } 00026 00027 00028 00029 /** 00030 The function reads data for the dynamical prescribed displacements from the opened text file 00031 given by the parameter in. 00032 00033 @param in - pointer to the opened text file 00034 00035 @retval 0 - on success. 00036 @retval 1 - error parsing string expression 00037 00038 Created by Tomas Koudelka, 00039 Rewritten by Tomas Koudelka, 7.7.2014 00040 */ 00041 long dloadpd::read(XFILE *in) 00042 { 00043 return gf.read(in); 00044 } 00045 00046 00047 /** 00048 The function prints data for the dynamical prescribed displacements into the opened text file 00049 given by the parameter out. 00050 00051 @param out - pointer to the opened text file 00052 00053 @retval 0 - on success. 00054 @retval 1 - error parsing string expression 00055 00056 TKr, 08/02/2013 according to read(XFILE *in) 00057 Rewritten by Tomas Koudelka, 7.7.2014 00058 */ 00059 long dloadpd::print(FILE *out) 00060 { 00061 gf.print(out); 00062 return(0); 00063 } 00064 00065 00066 00067 /** 00068 The function return value of the dynamical prescribed displacement 00069 for the time given by the parameter t. 00070 00071 @param t - desired value of time. 00072 00073 @return The function returns value of the dynamical prescribed displacement for the given time. 00074 00075 Created by Tomas Koudelka, 00076 Rewritten by Tomas Koudelka, 7.7.2014 00077 */ 00078 double dloadpd::getval(double t) 00079 { 00080 double ret; 00081 ret = gf.getval(t); 00082 return(ret); 00083 }