193 virtual void InfileToDb(cyclus::InfileTree* tree, cyclus::DbInit di) {
194 cyclus::Facility::InfileToDb(tree, di);
195 int rawcycpp_shape_latitude[1] = {-1};
196 cycpp_shape_latitude = std::vector<int>(rawcycpp_shape_latitude, rawcycpp_shape_latitude + 1);
197 int rawcycpp_shape_longitude[1] = {-1};
198 cycpp_shape_longitude = std::vector<int>(rawcycpp_shape_longitude, rawcycpp_shape_longitude + 1);
199 int rawcycpp_shape_outcommod[1] = {-1};
201 int rawcycpp_shape_outrecipe[1] = {-1};
203 int rawcycpp_shape_inventory_size[1] = {-1};
205 int rawcycpp_shape_throughput[1] = {-1};
207 int rawcycpp_shape_package[1] = {-1};
208 cycpp_shape_package = std::vector<int>(rawcycpp_shape_package, rawcycpp_shape_package + 1);
209 int rawcycpp_shape_transport_unit[1] = {-1};
211 int rawcycpp_shape_inventory[2] = {-1, -1};
213 cyclus::InfileTree* sub = tree->SubTree(
"config/*");
216 if (sub->NMatches(
"latitude") > 0) {
218 double latitude_val = cyclus::Query<double>(sub,
"latitude");
219 latitude = latitude_val;
222 double latitude_tmp = 0.0;
223 latitude = latitude_tmp;
225 if (sub->NMatches(
"longitude") > 0) {
227 double longitude_val = cyclus::Query<double>(sub,
"longitude");
228 longitude = longitude_val;
231 double longitude_tmp = 0.0;
232 longitude = longitude_tmp;
235 std::string outcommod_val = cyclus::Query<std::string>(sub,
"outcommod");
238 if (sub->NMatches(
"outrecipe") > 0) {
240 std::string outrecipe_val = cyclus::Query<std::string>(sub,
"outrecipe");
244 std::string outrecipe_tmp(
"");
247 if (sub->NMatches(
"inventory_size") > 0) {
249 double inventory_size_val = cyclus::Query<double>(sub,
"inventory_size");
253 double inventory_size_tmp = 1e+299;
256 if (sub->NMatches(
"throughput") > 0) {
258 double throughput_val = cyclus::Query<double>(sub,
"throughput");
262 double throughput_tmp = 1e+299;
265 if (sub->NMatches(
"package") > 0) {
267 std::string package_val = cyclus::Query<std::string>(sub,
"package");
268 package = package_val;
271 std::string package_tmp(
"unpackaged");
272 package = package_tmp;
274 if (sub->NMatches(
"transport_unit") > 0) {
276 std::string transport_unit_val = cyclus::Query<std::string>(sub,
"transport_unit");
280 std::string transport_unit_tmp(
"unrestricted");
284 ->AddVal(
"latitude", latitude, &cycpp_shape_latitude)
285 ->AddVal(
"longitude", longitude, &cycpp_shape_longitude)