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

Method writeHeader

src/serializers/TtlWktSerializer.cpp:251–263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249}
250
251void TtlWktSerializer::writeHeader()
252{
253 using namespace ifcopenshell::geometry::settings;
254 filename_.stream << "# File generated by IfcOpenShell " << IFCOPENSHELL_VERSION << "\n";
255 filename_.stream << "@prefix geo: <http://www.opengis.net/ont/geosparql#> .\n";
256 if (settings_.get<BaseUri>().has()) {
257 filename_.stream << "@prefix base: <" << settings_.get<BaseUri>().get() << "> .\n";
258 } else {
259 filename_.stream << "@prefix base: <http://example.org/> .\n";
260 }
261 filename_.stream << "@prefix dcterms: <http://purl.org/dc/terms/> .\n";
262 filename_.stream << "@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .\n\n\n";
263}
264
265void TtlWktSerializer::write(const IfcGeom::TriangulationElement* o)
266{

Callers

nothing calls this directly

Calls 2

hasMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected