288 cyclus::Facility::InfileToDb(tree, di);
289 int rawcycpp_shape_in_commods[2] = {-1, -1};
291 int rawcycpp_shape_in_commod_prefs[2] = {-1, -1};
293 int rawcycpp_shape_recipe_name[1] = {-1};
295 int rawcycpp_shape_max_inv_size[1] = {-1};
297 int rawcycpp_shape_capacity[1] = {-1};
299 int rawcycpp_shape_inventory[2] = {-1, -1};
301 int rawcycpp_shape_random_size_type[1] = {-1};
303 int rawcycpp_shape_random_size_mean[1] = {-1};
305 int rawcycpp_shape_random_size_stddev[1] = {-1};
307 int rawcycpp_shape_random_frequency_type[1] = {-1};
309 int rawcycpp_shape_random_frequency_mean[1] = {-1};
311 int rawcycpp_shape_random_frequency_stddev[1] = {-1};
313 int rawcycpp_shape_random_frequency_min[1] = {-1};
315 int rawcycpp_shape_random_frequency_max[1] = {-1};
317 int rawcycpp_shape_keep_packaging[1] = {-1};
319 int rawcycpp_shape_latitude[1] = {-1};
321 int rawcycpp_shape_longitude[1] = {-1};
323 cyclus::InfileTree* sub = tree->SubTree(
"config/*");
327 cyclus::InfileTree* bub = sub->SubTree(
"in_commods", 0);
328 cyclus::InfileTree* sub = bub;
329 int n1 = sub->NMatches(
"val");
330 std::vector< std::string > in_commods_val;
331 in_commods_val.resize(n1);
332 for (
int i1 = 0; i1 < n1; ++i1) {
335 std::string elem_in = cyclus::Query<std::string>(sub,
"val", i1);
338 in_commods_val[i1] = elem;
342 if (sub->NMatches(
"in_commod_prefs") > 0) {
344 cyclus::InfileTree* bub = sub->SubTree(
"in_commod_prefs", 0);
345 cyclus::InfileTree* sub = bub;
346 int n1 = sub->NMatches(
"val");
347 std::vector< double > in_commod_prefs_val;
348 in_commod_prefs_val.resize(n1);
349 for (
int i1 = 0; i1 < n1; ++i1) {
352 double elem_in = cyclus::Query<double>(sub,
"val", i1);
355 in_commod_prefs_val[i1] = elem;
360 std::vector< double > in_commod_prefs_tmp;
361 in_commod_prefs_tmp.resize(0);
366 if (sub->NMatches(
"recipe_name") > 0) {
368 std::string recipe_name_val = cyclus::Query<std::string>(sub,
"recipe_name");
372 std::string recipe_name_tmp(
"");
375 if (sub->NMatches(
"max_inv_size") > 0) {
377 double max_inv_size_val = cyclus::Query<double>(sub,
"max_inv_size");
381 double max_inv_size_tmp = 1e+299;
384 if (sub->NMatches(
"capacity") > 0) {
386 double capacity_val = cyclus::Query<double>(sub,
"capacity");
390 double capacity_tmp = 1e+299;
393 if (sub->NMatches(
"random_size_type") > 0) {
395 std::string random_size_type_val = cyclus::Query<std::string>(sub,
"random_size_type");
399 std::string random_size_type_tmp(
"None");
402 if (sub->NMatches(
"random_size_mean") > 0) {
404 double random_size_mean_val = cyclus::Query<double>(sub,
"random_size_mean");
408 double random_size_mean_tmp = 1.0;
411 if (sub->NMatches(
"random_size_stddev") > 0) {
413 double random_size_stddev_val = cyclus::Query<double>(sub,
"random_size_stddev");
417 double random_size_stddev_tmp = 0.1;
420 if (sub->NMatches(
"random_frequency_type") > 0) {
422 std::string random_frequency_type_val = cyclus::Query<std::string>(sub,
"random_frequency_type");
426 std::string random_frequency_type_tmp(
"None");
429 if (sub->NMatches(
"random_frequency_mean") > 0) {
431 double random_frequency_mean_val = cyclus::Query<double>(sub,
"random_frequency_mean");
435 double random_frequency_mean_tmp = 1;
438 if (sub->NMatches(
"random_frequency_stddev") > 0) {
440 double random_frequency_stddev_val = cyclus::Query<double>(sub,
"random_frequency_stddev");
444 double random_frequency_stddev_tmp = 1;
447 if (sub->NMatches(
"random_frequency_min") > 0) {
449 int random_frequency_min_val = cyclus::Query<int>(sub,
"random_frequency_min");
453 int random_frequency_min_tmp = 1;
456 if (sub->NMatches(
"random_frequency_max") > 0) {
458 int random_frequency_max_val = cyclus::Query<int>(sub,
"random_frequency_max");
462 int random_frequency_max_tmp = 2147483647;
465 if (sub->NMatches(
"keep_packaging") > 0) {
467 bool keep_packaging_val = cyclus::Query<bool>(sub,
"keep_packaging");
471 bool keep_packaging_tmp =
true;
474 if (sub->NMatches(
"latitude") > 0) {
476 double latitude_val = cyclus::Query<double>(sub,
"latitude");
480 double latitude_tmp = 0.0;
483 if (sub->NMatches(
"longitude") > 0) {
485 double longitude_val = cyclus::Query<double>(sub,
"longitude");
489 double longitude_tmp = 0.0;
557 cyclus::Facility::InitFrom(b);
558 int rawcycpp_shape_in_commods[2] = {-1, -1};
560 int rawcycpp_shape_in_commod_prefs[2] = {-1, -1};
562 int rawcycpp_shape_recipe_name[1] = {-1};
564 int rawcycpp_shape_max_inv_size[1] = {-1};
566 int rawcycpp_shape_capacity[1] = {-1};
568 int rawcycpp_shape_inventory[2] = {-1, -1};
570 int rawcycpp_shape_random_size_type[1] = {-1};
572 int rawcycpp_shape_random_size_mean[1] = {-1};
574 int rawcycpp_shape_random_size_stddev[1] = {-1};
576 int rawcycpp_shape_random_frequency_type[1] = {-1};
578 int rawcycpp_shape_random_frequency_mean[1] = {-1};
580 int rawcycpp_shape_random_frequency_stddev[1] = {-1};
582 int rawcycpp_shape_random_frequency_min[1] = {-1};
584 int rawcycpp_shape_random_frequency_max[1] = {-1};
586 int rawcycpp_shape_keep_packaging[1] = {-1};
588 int rawcycpp_shape_latitude[1] = {-1};
590 int rawcycpp_shape_longitude[1] = {-1};
592 cyclus::QueryResult qr = b->Query(
"Info", NULL);
593 in_commods = qr.GetVal<std::vector< std::string > >(
"in_commods");
594 in_commod_prefs = qr.GetVal<std::vector< double > >(
"in_commod_prefs");
595 recipe_name = qr.GetVal<std::string>(
"recipe_name");
597 capacity = qr.GetVal<
double>(
"capacity");
607 latitude = qr.GetVal<
double>(
"latitude");
608 longitude = qr.GetVal<
double>(
"longitude");
614 cyclus::Facility::InitFrom(m);
615 int rawcycpp_shape_in_commods[2] = {-1, -1};
617 int rawcycpp_shape_in_commod_prefs[2] = {-1, -1};
619 int rawcycpp_shape_recipe_name[1] = {-1};
621 int rawcycpp_shape_max_inv_size[1] = {-1};
623 int rawcycpp_shape_capacity[1] = {-1};
625 int rawcycpp_shape_inventory[2] = {-1, -1};
627 int rawcycpp_shape_random_size_type[1] = {-1};
629 int rawcycpp_shape_random_size_mean[1] = {-1};
631 int rawcycpp_shape_random_size_stddev[1] = {-1};
633 int rawcycpp_shape_random_frequency_type[1] = {-1};
635 int rawcycpp_shape_random_frequency_mean[1] = {-1};
637 int rawcycpp_shape_random_frequency_stddev[1] = {-1};
639 int rawcycpp_shape_random_frequency_min[1] = {-1};
641 int rawcycpp_shape_random_frequency_max[1] = {-1};
643 int rawcycpp_shape_keep_packaging[1] = {-1};
645 int rawcycpp_shape_latitude[1] = {-1};
647 int rawcycpp_shape_longitude[1] = {-1};