273 cyclus::Facility::InfileToDb(tree, di);
274 int rawcycpp_shape_in_commods[2] = {-1, -1};
276 int rawcycpp_shape_in_commod_prefs[2] = {-1, -1};
278 int rawcycpp_shape_recipe_name[1] = {-1};
280 int rawcycpp_shape_max_inv_size[1] = {-1};
282 int rawcycpp_shape_capacity[1] = {-1};
284 int rawcycpp_shape_inventory[2] = {-1, -1};
286 int rawcycpp_shape_random_size_type[1] = {-1};
288 int rawcycpp_shape_random_size_mean[1] = {-1};
290 int rawcycpp_shape_random_size_stddev[1] = {-1};
292 int rawcycpp_shape_random_frequency_type[1] = {-1};
294 int rawcycpp_shape_random_frequency_mean[1] = {-1};
296 int rawcycpp_shape_random_frequency_stddev[1] = {-1};
298 int rawcycpp_shape_random_frequency_min[1] = {-1};
300 int rawcycpp_shape_random_frequency_max[1] = {-1};
302 int rawcycpp_shape_keep_packaging[1] = {-1};
304 int rawcycpp_shape_latitude[1] = {-1};
306 int rawcycpp_shape_longitude[1] = {-1};
308 cyclus::InfileTree* sub = tree->SubTree(
"config/*");
312 cyclus::InfileTree* bub = sub->SubTree(
"in_commods", 0);
313 cyclus::InfileTree* sub = bub;
314 int n1 = sub->NMatches(
"val");
315 std::vector< std::string > in_commods_val;
316 in_commods_val.resize(n1);
317 for (
int i1 = 0; i1 < n1; ++i1) {
320 std::string elem_in = cyclus::Query<std::string>(sub,
"val", i1);
323 in_commods_val[i1] = elem;
327 if (sub->NMatches(
"in_commod_prefs") > 0) {
329 cyclus::InfileTree* bub = sub->SubTree(
"in_commod_prefs", 0);
330 cyclus::InfileTree* sub = bub;
331 int n1 = sub->NMatches(
"val");
332 std::vector< double > in_commod_prefs_val;
333 in_commod_prefs_val.resize(n1);
334 for (
int i1 = 0; i1 < n1; ++i1) {
337 double elem_in = cyclus::Query<double>(sub,
"val", i1);
340 in_commod_prefs_val[i1] = elem;
345 std::vector< double > in_commod_prefs_tmp;
346 in_commod_prefs_tmp.resize(0);
351 if (sub->NMatches(
"recipe_name") > 0) {
353 std::string recipe_name_val = cyclus::Query<std::string>(sub,
"recipe_name");
357 std::string recipe_name_tmp(
"");
360 if (sub->NMatches(
"max_inv_size") > 0) {
362 double max_inv_size_val = cyclus::Query<double>(sub,
"max_inv_size");
366 double max_inv_size_tmp = 1e+299;
369 if (sub->NMatches(
"capacity") > 0) {
371 double capacity_val = cyclus::Query<double>(sub,
"capacity");
375 double capacity_tmp = 1e+299;
378 if (sub->NMatches(
"random_size_type") > 0) {
380 std::string random_size_type_val = cyclus::Query<std::string>(sub,
"random_size_type");
384 std::string random_size_type_tmp(
"None");
387 if (sub->NMatches(
"random_size_mean") > 0) {
389 double random_size_mean_val = cyclus::Query<double>(sub,
"random_size_mean");
393 double random_size_mean_tmp = 1.0;
396 if (sub->NMatches(
"random_size_stddev") > 0) {
398 double random_size_stddev_val = cyclus::Query<double>(sub,
"random_size_stddev");
402 double random_size_stddev_tmp = 0.1;
405 if (sub->NMatches(
"random_frequency_type") > 0) {
407 std::string random_frequency_type_val = cyclus::Query<std::string>(sub,
"random_frequency_type");
411 std::string random_frequency_type_tmp(
"None");
414 if (sub->NMatches(
"random_frequency_mean") > 0) {
416 double random_frequency_mean_val = cyclus::Query<double>(sub,
"random_frequency_mean");
420 double random_frequency_mean_tmp = 1;
423 if (sub->NMatches(
"random_frequency_stddev") > 0) {
425 double random_frequency_stddev_val = cyclus::Query<double>(sub,
"random_frequency_stddev");
429 double random_frequency_stddev_tmp = 1;
432 if (sub->NMatches(
"random_frequency_min") > 0) {
434 int random_frequency_min_val = cyclus::Query<int>(sub,
"random_frequency_min");
438 int random_frequency_min_tmp = 1;
441 if (sub->NMatches(
"random_frequency_max") > 0) {
443 int random_frequency_max_val = cyclus::Query<int>(sub,
"random_frequency_max");
447 int random_frequency_max_tmp = 2147483647;
450 if (sub->NMatches(
"keep_packaging") > 0) {
452 bool keep_packaging_val = cyclus::Query<bool>(sub,
"keep_packaging");
456 bool keep_packaging_tmp =
true;
459 if (sub->NMatches(
"latitude") > 0) {
461 double latitude_val = cyclus::Query<double>(sub,
"latitude");
465 double latitude_tmp = 0.0;
468 if (sub->NMatches(
"longitude") > 0) {
470 double longitude_val = cyclus::Query<double>(sub,
"longitude");
474 double longitude_tmp = 0.0;
542 cyclus::Facility::InitFrom(b);
543 int rawcycpp_shape_in_commods[2] = {-1, -1};
545 int rawcycpp_shape_in_commod_prefs[2] = {-1, -1};
547 int rawcycpp_shape_recipe_name[1] = {-1};
549 int rawcycpp_shape_max_inv_size[1] = {-1};
551 int rawcycpp_shape_capacity[1] = {-1};
553 int rawcycpp_shape_inventory[2] = {-1, -1};
555 int rawcycpp_shape_random_size_type[1] = {-1};
557 int rawcycpp_shape_random_size_mean[1] = {-1};
559 int rawcycpp_shape_random_size_stddev[1] = {-1};
561 int rawcycpp_shape_random_frequency_type[1] = {-1};
563 int rawcycpp_shape_random_frequency_mean[1] = {-1};
565 int rawcycpp_shape_random_frequency_stddev[1] = {-1};
567 int rawcycpp_shape_random_frequency_min[1] = {-1};
569 int rawcycpp_shape_random_frequency_max[1] = {-1};
571 int rawcycpp_shape_keep_packaging[1] = {-1};
573 int rawcycpp_shape_latitude[1] = {-1};
575 int rawcycpp_shape_longitude[1] = {-1};
577 cyclus::QueryResult qr = b->Query(
"Info", NULL);
578 in_commods = qr.GetVal<std::vector< std::string > >(
"in_commods");
579 in_commod_prefs = qr.GetVal<std::vector< double > >(
"in_commod_prefs");
580 recipe_name = qr.GetVal<std::string>(
"recipe_name");
582 capacity = qr.GetVal<
double>(
"capacity");
592 latitude = qr.GetVal<
double>(
"latitude");
593 longitude = qr.GetVal<
double>(
"longitude");
599 cyclus::Facility::InitFrom(m);
600 int rawcycpp_shape_in_commods[2] = {-1, -1};
602 int rawcycpp_shape_in_commod_prefs[2] = {-1, -1};
604 int rawcycpp_shape_recipe_name[1] = {-1};
606 int rawcycpp_shape_max_inv_size[1] = {-1};
608 int rawcycpp_shape_capacity[1] = {-1};
610 int rawcycpp_shape_inventory[2] = {-1, -1};
612 int rawcycpp_shape_random_size_type[1] = {-1};
614 int rawcycpp_shape_random_size_mean[1] = {-1};
616 int rawcycpp_shape_random_size_stddev[1] = {-1};
618 int rawcycpp_shape_random_frequency_type[1] = {-1};
620 int rawcycpp_shape_random_frequency_mean[1] = {-1};
622 int rawcycpp_shape_random_frequency_stddev[1] = {-1};
624 int rawcycpp_shape_random_frequency_min[1] = {-1};
626 int rawcycpp_shape_random_frequency_max[1] = {-1};
628 int rawcycpp_shape_keep_packaging[1] = {-1};
630 int rawcycpp_shape_latitude[1] = {-1};
632 int rawcycpp_shape_longitude[1] = {-1};
650 inventory.capacity(m->inventory.capacity());