| 315 | } |
| 316 | |
| 317 | bool ScanGraph::writeBinary(const std::string& filename) const { |
| 318 | std::ofstream binary_outfile( filename.c_str(), std::ios_base::binary); |
| 319 | if (!binary_outfile.is_open()){ |
| 320 | OCTOMAP_ERROR_STR("Filestream to "<< filename << " not open, nothing written."); |
| 321 | return false; |
| 322 | } |
| 323 | writeBinary(binary_outfile); |
| 324 | binary_outfile.close(); |
| 325 | return true; |
| 326 | } |
| 327 | |
| 328 | std::ostream& ScanGraph::writeBinary(std::ostream &s) const { |
| 329 |
no outgoing calls