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

Method setDefaultHeaderValues

src/ifcparse/IfcParse.cpp:2661–2684  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2659}
2660
2661void IfcFile::setDefaultHeaderValues() {
2662 const std::string empty_string;
2663 std::vector<std::string> file_description;
2664 std::vector<std::string> schema_identifiers;
2665 std::vector<std::string> string_vector = {""};
2666
2667 file_description.push_back("ViewDefinition [CoordinationView]");
2668 if (schema() != nullptr) {
2669 schema_identifiers.push_back(schema()->name());
2670 }
2671
2672 header().file_description()->setdescription(file_description);
2673 header().file_description()->setimplementation_level("2;1");
2674
2675 header().file_name()->setname(empty_string);
2676 header().file_name()->settime_stamp(createTimestamp());
2677 header().file_name()->setauthor(string_vector);
2678 header().file_name()->setorganization(string_vector);
2679 header().file_name()->setpreprocessor_version("IfcOpenShell " + std::string(IFCOPENSHELL_VERSION));
2680 header().file_name()->setoriginating_system("IfcOpenShell " + std::string(IFCOPENSHELL_VERSION));
2681 header().file_name()->setauthorization(empty_string);
2682
2683 header().file_schema()->setschema_identifiers(schema_identifiers);
2684}
2685
2686std::pair<IfcUtil::IfcBaseClass*, double> IfcFile::getUnit(const std::string& unit_type) {
2687 std::pair<IfcUtil::IfcBaseClass*, double> return_value(0, 1.);

Callers

nothing calls this directly

Calls 15

push_backMethod · 0.80
setdescriptionMethod · 0.80
setnameMethod · 0.80
settime_stampMethod · 0.80
setauthorMethod · 0.80
setorganizationMethod · 0.80
setoriginating_systemMethod · 0.80
setauthorizationMethod · 0.80
setschema_identifiersMethod · 0.80
schemaFunction · 0.70

Tested by

no test coverage detected