-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathTestAllometry.h
More file actions
179 lines (150 loc) · 4.69 KB
/
TestAllometry.h
File metadata and controls
179 lines (150 loc) · 4.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
//---------------------------------------------------------------------------
// TestAllometry
//---------------------------------------------------------------------------
#if !defined(TestAllometry_H)
#define TestAllometry_H
#include <fstream>
/**
* Tests the clAllometry class.
*/
/**
* Writes a parameter file to test allometry. This contains six species, with
* functions mixed up between them.
* @return Filename written.
*/
const char* WriteAllometryXMLFile1();
/**
* This writes a file with only standard functions and parameters, to make
* sure that the others aren't required if not needed.
* @return Filename written.
*/
const char* WriteAllometryXMLFile2();
/**
* This writes a file with only linear functions and parameters, to make
* sure that the others aren't required if not needed.
* @return Filename written.
*/
const char* WriteAllometryXMLFile3();
/**
* This writes a file with only reverse linear functions and parameters, to
* make sure that the others aren't required if not needed.
* @return Filename written.
*/
const char* WriteAllometryXMLFile4();
/**
* This writes a file with linear height-DBH and standard crown adult
* parameters, and standard height-DBH and Chapman-Richards sapling
* parameters, to make sure arrays are declared correctly.
* @return Filename written.
*/
const char* WriteAllometryXMLFile5();
/**
* This writes a file with linear height-DBH and Chapman-Richards crown adult
* parameters, and standard sapling parameters, to make sure arrays are
* declared correctly.
* @return Filename written.
*/
const char* WriteAllometryXMLFile6();
/**
* This writes a file with an unrecognized function for adult allometry.
* @return Filename written.
*/
const char* WriteAllometryXMLErrorFile1();
/**
* This writes a file with an unrecognized function for sapling allometry.
* @return Filename written.
*/
const char* WriteAllometryXMLErrorFile2();
/**
* This writes a file with an unrecognized function for seedling allometry.
* @return Filename written.
*/
const char* WriteAllometryXMLErrorFile3();
/**
* This writes a file with a 0 value for adult linear slope.
* @return Filename written.
*/
const char* WriteAllometryXMLErrorFile4();
/**
* This writes a file with a 0 value for adult reverse linear slope.
* @return Filename written.
*/
const char* WriteAllometryXMLErrorFile5();
/**
* This writes a file with a 0 value for sapling linear slope.
* @return Filename written.
*/
const char* WriteAllometryXMLErrorFile6();
/**
* This writes a file with a 0 value for sapling reverse linear slope.
* @return Filename written.
*/
const char* WriteAllometryXMLErrorFile7();
/**
* This writes a file with a 0 value for seedling linear slope.
* @return Filename written.
*/
const char* WriteAllometryXMLErrorFile8();
/**
* This writes a file with a 0 value for seedling reverse linear slope.
* @return Filename written.
*/
const char* WriteAllometryXMLErrorFile9();
/**
* This writes a file with a 0 value for diam10 to dbh ratio.
* @return Filename written.
*/
const char* WriteAllometryXMLErrorFile10();
/**
* This writes a file with an unrecognized function for adult crown radius.
* @return Filename written.
*/
const char* WriteAllometryXMLErrorFile11();
/**
* This writes a file with an unrecognized function for adult crown height.
* @return Filename written.
*/
const char* WriteAllometryXMLErrorFile12();
/**
* This writes a file with an unrecognized function for sapling crown radius.
* @return Filename written.
*/
const char* WriteAllometryXMLErrorFile13();
/**
* This writes a file with an unrecognized function for sapling crown height.
* @return Filename written.
*/
const char* WriteAllometryXMLErrorFile14();
/**
* This writes common plot parameters.
* @param oOut File stream to write to.
*/
void WriteAllometryCommonPlot(std::fstream &oOut);
/**
* This writes common trees parameters.
* @param oOut File stream to write to.
* @param iNumSpp Number of species.
*/
void WriteAllometryCommonTrees(std::fstream &oOut, const int &iNumSpp);
/**
* This writes a common behavior list.
* @param oOut File stream to write to.
*/
void WriteAllometryCommonBehaviorList(std::fstream &oOut);
/**
* This writes a common error file portion.
* @param oOut File stream to write to.
*/
void WriteAllometryCommonErrorBlock1(std::fstream &oOut);
/**
* This writes a common error file portion.
* @param oOut File stream to write to.
*/
void WriteAllometryCommonErrorBlock2(std::fstream &oOut);
/**
* This writes a common error file portion.
* @param oOut File stream to write to.
*/
void WriteAllometryCommonErrorBlock3(std::fstream &oOut);
//---------------------------------------------------------------------------
#endif // TestAllometry_H