| 45 | } |
| 46 | |
| 47 | void TupleGen::openOutputFiles(const std::string& outDir) { |
| 48 | ofopen(warehouseStream, outDir + "/warehouse.tbl"); |
| 49 | ofopen(districtStream, outDir + "/district.tbl"); |
| 50 | ofopen(customerStream, outDir + "/customer.tbl"); |
| 51 | ofopen(historyStream, outDir + "/history.tbl"); |
| 52 | ofopen(neworderStream, outDir + "/neworder.tbl"); |
| 53 | ofopen(orderStream, outDir + "/order.tbl"); |
| 54 | ofopen(orderlineStream, outDir + "/orderline.tbl"); |
| 55 | ofopen(itemStream, outDir + "/item.tbl"); |
| 56 | ofopen(stockStream, outDir + "/stock.tbl"); |
| 57 | ofopen(nationStream, outDir + "/nation.tbl"); |
| 58 | ofopen(supplierStream, outDir + "/supplier.tbl"); |
| 59 | ofopen(regionStream, outDir + "/region.tbl"); |
| 60 | } |
| 61 | |
| 62 | void TupleGen::closeOutputFiles() { |
| 63 | warehouseStream.close(); |