| 48 | } |
| 49 | |
| 50 | bool AbstractOccupancyOcTree::writeBinary(const std::string& filename){ |
| 51 | std::ofstream binary_outfile( filename.c_str(), std::ios_base::binary); |
| 52 | |
| 53 | if (!binary_outfile.is_open()){ |
| 54 | OCTOMAP_ERROR_STR("Filestream to "<< filename << " not open, nothing written."); |
| 55 | return false; |
| 56 | } |
| 57 | return writeBinary(binary_outfile); |
| 58 | } |
| 59 | |
| 60 | bool AbstractOccupancyOcTree::writeBinaryConst(const std::string& filename) const{ |
| 61 | std::ofstream binary_outfile( filename.c_str(), std::ios_base::binary); |
nothing calls this directly
no outgoing calls
no test coverage detected