| 606 | } |
| 607 | |
| 608 | bool WriteHeaderLine(uint32_t modelID, uint32_t type, emscripten::val parameters) |
| 609 | { |
| 610 | if (!manager.IsModelOpen(modelID)) |
| 611 | return false; |
| 612 | auto loader = manager.GetIfcLoader(modelID); |
| 613 | uint32_t start = loader->GetTotalSize(); |
| 614 | std::string ifcName = manager.GetSchemaManager().IfcTypeCodeToType(type); |
| 615 | std::transform(ifcName.begin(), ifcName.end(), ifcName.begin(), ::toupper); |
| 616 | loader->Push<uint8_t>(webifc::parsing::IfcTokenType::LABEL); |
| 617 | loader->Push<uint16_t>((uint16_t)ifcName.size()); |
| 618 | loader->Push((void *)ifcName.data(), ifcName.size()); |
| 619 | bool responseCode = WriteSet(modelID, parameters); |
| 620 | loader->Push<uint8_t>(webifc::parsing::IfcTokenType::LINE_END); |
| 621 | loader->AddHeaderLineTape(type, start); |
| 622 | return responseCode; |
| 623 | } |
| 624 | |
| 625 | void RemoveLine(uint32_t modelID, uint32_t expressID) |
| 626 | { |
nothing calls this directly
no test coverage detected