BG_Flood  0.8
Documentation (Work-in-progress)
ReadInput.h
Go to the documentation of this file.
1 
2 #ifndef READINPUT_H
3 #define READINPUT_H
4 
5 #include "General.h"
6 #include "Param.h"
7 #include "Write_txtlog.h"
8 #include "Forcing.h"
9 #include "Util_CPU.h"
10 
11 
12 template <class T> T readfileinfo(std::string input, T outinfo);
13 
14 void Readparamfile(Param& XParam, Forcing<float>& XForcing, std::string Paramfile);
15 
16 template <class T> Forcing<T> readparamstr(std::string line, Forcing<T> forcing);
17 
18 Param readparamstr(std::string line, Param param);
19 
20 template <class T>Forcing<T> readparamstr(std::string line, Forcing<T> forcing);
21 void checkparamsanity(Param& XParam, Forcing<float>& XForcing);
22 double setendtime(Param XParam,Forcing<float> XForcing);
23 std::string findparameter(std::vector<std::string> parameterstr, std::string line);
24 std::string findparameter(std::string parameterstr, std::string line);
25 void split(const std::string &s, char delim, std::vector<std::string> &elems);
26 std::vector<std::string> split(const std::string &s, char delim);
27 std::string trim(const std::string& str, const std::string& whitespace);
28 std::size_t case_insensitive_compare(std::string s1, std::string s2);
29 std::size_t case_insensitive_compare(std::string s1, std::vector<std::string> vecstr);
30 
31 bndparam readbndline(std::string parametervalue);
32 
33 // End of global definition
34 #endif
double setendtime(Param XParam, Forcing< float > XForcing)
Definition: ReadInput.cu:1341
T readfileinfo(std::string input, T outinfo)
Definition: ReadInput.cu:33
std::string trim(const std::string &str, const std::string &whitespace)
Definition: ReadInput.cu:1457
void split(const std::string &s, char delim, std::vector< std::string > &elems)
Definition: ReadInput.cu:1429
std::string findparameter(std::vector< std::string > parameterstr, std::string line)
Definition: ReadInput.cu:1380
std::size_t case_insensitive_compare(std::string s1, std::string s2)
Definition: ReadInput.cu:1473
void checkparamsanity(Param &XParam, Forcing< float > &XForcing)
Definition: ReadInput.cu:1059
Forcing< T > readparamstr(std::string line, Forcing< T > forcing)
Definition: ReadInput.cu:760
bndparam readbndline(std::string parametervalue)
Definition: ReadInput.cu:1497
void Readparamfile(Param &XParam, Forcing< float > &XForcing, std::string Paramfile)
Definition: ReadInput.cu:81
Definition: Param.h:10
Definition: Forcing.h:88
Definition: Forcing.h:116