| 2659 | } |
| 2660 | |
| 2661 | void 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 | |
| 2686 | std::pair<IfcUtil::IfcBaseClass*, double> IfcFile::getUnit(const std::string& unit_type) { |
| 2687 | std::pair<IfcUtil::IfcBaseClass*, double> return_value(0, 1.); |
nothing calls this directly
no test coverage detected