MCPcopy Create free account
hub / github.com/ThatOpen/engine_web-ifc / UpdateLineTape

Method UpdateLineTape

src/cpp/web-ifc/parsing/IfcLoader.cpp:439–456  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

437 }
438
439 void IfcLoader::UpdateLineTape(const uint32_t expressID, const uint32_t type, const uint32_t start)
440 {
441 const auto lineIt = _lines.find(expressID);
442 if (lineIt == _lines.end()) {
443 // create line object
444 IfcLine * line = new IfcLine();
445 // fill line data
446 line->ifcType = type;
447 line->tapeOffset = start;
448 //place in vector
449 _lines[expressID]=line;
450 _ifcTypeToExpressID[type].push_back(expressID);
451 _maxExpressId = std::max(expressID, _maxExpressId);
452 }
453 else {
454 _lines[expressID]->tapeOffset = start;
455 }
456 }
457
458 void IfcLoader::AddHeaderLineTape(const uint32_t type, const uint32_t start)
459 {

Callers 1

WriteLineFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected