本文整理汇总了C++中BlockModel::integer方法的典型用法代码示例。如果您正苦于以下问题:C++ BlockModel::integer方法的具体用法?C++ BlockModel::integer怎么用?C++ BlockModel::integer使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BlockModel
的用法示例。
在下文中一共展示了BlockModel::integer方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: ConditionMMDD
ConditionMMDD (const BlockModel& al)
: Condition (al),
month (al.integer ("month")),
day (al.integer ("day")),
hour (al.integer ("hour")),
minute (al.integer ("minute")),
second (al.integer ("second"))
{ }
示例2: ActionWaitDays
ActionWaitDays (const BlockModel& al)
: Action (al),
days (al.integer ("days")),
hours (al.integer ("hours")),
activated (al.check ("end_time")),
end_time (1, 1, 1, 1)
{
if (activated)
end_time = Time (al.submodel ("end_time"));
}
示例3: Program
ProgramRS2WG (const BlockModel& al)
: Program (al),
path (al.path ()),
rshourly_origin (al.integer ("rshourly_origin"), 1, 1, 0),
wgcycle_begin (al.integer ("wgcycle_begin"), 1, 1, 0),
wgcycle_end (al.integer ("wgcycle_begin") + al.integer ("wgcycle_length"),
1, 1, 0),
rshourly_file (al.name ("rshourly_file")),
rsdaily_file (al.name ("rsdaily_file")),
dwfhourly_file (al.name ("dwfhourly_file")),
hint_file (al.name ("hint_file")),
hlim (al.number_sequence ("hlim"))
{ }
示例4: ProgramRootmatch
ProgramRootmatch (const BlockModel& al)
: Program (al),
units (al.units ()),
lex (al),
pos_dim (al.name ("pos_dim")),
dens_dim (al.name ("dens_dim")),
tag_x (al.name ("tag_x")),
tag_z_min (al.name ("tag_z_min")),
tag_z_max (al.name ("tag_z_max")),
tag_density (al.name ("tag_density")),
c_x_pos (-1),
c_z_min (-1),
c_z_max (-1),
c_density (-1),
debug (al.integer ("debug")),
show_data (al.flag ("show_data")),
show_match (al.flag ("show_match")),
x_offset (al.number ("x_offset")),
tabular (al.flag ("tabular")),
row_position (al.number ("row_position")),
min_dist (al.number ("min_dist")),
gp2d (al.number ("row_position"),
al.number ("row_distance"),
al.number ("DensRtTip"),
al.number ("SpRtLength")),
gp1d (al.number ("DensRtTip"),
al.number ("SpRtLength")),
SoilDepth (al.number ("SoilDepth", NAN)),
gnuplot (submodel<Gnuplot> (al, "gnuplot"))
{ }
示例5: Equilibrium
EquilibriumGoal_A (const BlockModel& al)
: Equilibrium (al),
goal_A_expr (Librarian::build_item<Number> (al, "goal_A")),
min_B_expr (Librarian::build_item<Number> (al, "min_B")),
A_solute (al.flag ("A_solute")),
B_solute (al.flag ("B_solute")),
debug_cell (al.integer ("debug_cell"))
{ }
示例6: Summary
SummaryBalance::SummaryBalance (const BlockModel& al)
: Summary (al),
description (al.frame ().description ()),
file (al.name ("where", "")),
precision (al.integer ("precision")),
require_top (al.flag ("require_top")),
input (al.name_sequence ("input")),
output (al.name_sequence ("output")),
content (al.name_sequence ("content")),
fetch (input, output, content)
{ }
示例7: ConditionYear
ConditionYear (const BlockModel& al)
: Condition (al),
at (al.integer ("at"))
{ }
示例8: ActionWaitMMDD
ActionWaitMMDD (const BlockModel& al)
: Action (al),
month (al.integer ("month")),
day (al.integer ("day")),
hour (al.integer ("hour"))
{ }
示例9: Hydraulic
HydraulicYolo::HydraulicYolo (const BlockModel& al)
: Hydraulic (al),
M_intervals (al.integer ("M_intervals")),
M_ ()
{ }