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

Function GetLine

src/cpp/test/web-ifc-test.cpp:251–270  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249}
250
251std::string GetLine(webifc::parsing::IfcLoader &loader, uint32_t expressID)
252{
253 if (!loader.IsValidExpressID(expressID))
254 return "";
255 uint32_t lineType = loader.GetLineType(expressID);
256 if (lineType == 0)
257 return "";
258
259 loader.MoveToArgumentOffset(expressID, 0);
260
261 auto arguments = GetArgs(loader);
262
263 std::string retVal;
264 retVal += "\"ID\": " + std::to_string(expressID) + ", ";
265 retVal += "\"type\": " + std::to_string(lineType) + ", ";
266 retVal += "\"arguments\": " + arguments;
267 retVal += "}";
268
269 return retVal;
270}
271
272std::vector<webifc::geometry::IfcFlatMesh> LoadAllTest(webifc::parsing::IfcLoader &loader, webifc::geometry::IfcGeometryProcessor &geometryLoader, uint32_t IdToExport)
273{

Callers

nothing calls this directly

Calls 4

IsValidExpressIDMethod · 0.80
MoveToArgumentOffsetMethod · 0.80
GetArgsFunction · 0.70
GetLineTypeMethod · 0.45

Tested by

no test coverage detected