MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / ready

Method ready

src/serializers/OpenCascadeBasedSerializer.cpp:34–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32#include <BRepBuilderAPI_Transform.hxx>
33
34bool OpenCascadeBasedSerializer::ready() {
35 std::ofstream test_file(IfcUtil::path::from_utf8(out_filename).c_str(), std::ios_base::binary);
36 bool succeeded = test_file.is_open();
37 test_file.close();
38 IfcUtil::path::delete_file(out_filename);
39 return succeeded;
40}
41
42void OpenCascadeBasedSerializer::write(const IfcGeom::BRepElement* o) {
43 auto itm = o->geometry().as_compound();

Callers

nothing calls this directly

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected