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

Method GetOptionalDoubleParam

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

Source from the content-addressed store, hash-verified

716 }
717
718 double IfcLoader::GetOptionalDoubleParam(double defaultValue = 0) const
719 {
720 auto tk = GetTokenType();
721 if (tk == IfcTokenType::REAL)
722 {
723 StepBack();
724 return GetDoubleArgument();
725 }
726 if (tk == IfcTokenType::INTEGER)
727 {
728 StepBack();
729 return GetIntArgument();
730 }
731 return defaultValue;
732 }
733
734 std::vector<uint32_t> IfcLoader::GetAllLines() const {
735 std::vector<uint32_t> expressIDs;

Callers 2

GetCartesianPoint3DMethod · 0.80
GetProfileByLineMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected