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