185 virtual void InfileToDb(cyclus::InfileTree* tree, cyclus::DbInit di) {
186 cyclus::Facility::InfileToDb(tree, di);
187 int rawcycpp_shape_outcommod[1] = {-1};
189 int rawcycpp_shape_outrecipe[1] = {-1};
191 int rawcycpp_shape_inventory_size[1] = {-1};
193 int rawcycpp_shape_throughput[1] = {-1};
195 int rawcycpp_shape_package[1] = {-1};
196 cycpp_shape_package = std::vector<int>(rawcycpp_shape_package, rawcycpp_shape_package + 1);
197 int rawcycpp_shape_transport_unit[1] = {-1};
199 int rawcycpp_shape_latitude[1] = {-1};
201 int rawcycpp_shape_longitude[1] = {-1};
203 int rawcycpp_shape_inventory[2] = {-1, -1};
205 cyclus::InfileTree* sub = tree->SubTree(
"config/*");
209 std::string outcommod_val = cyclus::Query<std::string>(sub,
"outcommod");
212 if (sub->NMatches(
"outrecipe") > 0) {
214 std::string outrecipe_val = cyclus::Query<std::string>(sub,
"outrecipe");
218 std::string outrecipe_tmp(
"");
221 if (sub->NMatches(
"inventory_size") > 0) {
223 double inventory_size_val = cyclus::Query<double>(sub,
"inventory_size");
227 double inventory_size_tmp = 1e+299;
230 if (sub->NMatches(
"throughput") > 0) {
232 double throughput_val = cyclus::Query<double>(sub,
"throughput");
236 double throughput_tmp = 1e+299;
239 if (sub->NMatches(
"package") > 0) {
241 std::string package_val = cyclus::Query<std::string>(sub,
"package");
242 package = package_val;
245 std::string package_tmp(
"unpackaged");
246 package = package_tmp;
248 if (sub->NMatches(
"transport_unit") > 0) {
250 std::string transport_unit_val = cyclus::Query<std::string>(sub,
"transport_unit");
254 std::string transport_unit_tmp(
"unrestricted");
257 if (sub->NMatches(
"latitude") > 0) {
259 double latitude_val = cyclus::Query<double>(sub,
"latitude");
263 double latitude_tmp = 0.0;
266 if (sub->NMatches(
"longitude") > 0) {
268 double longitude_val = cyclus::Query<double>(sub,
"longitude");
272 double longitude_tmp = 0.0;