MCPcopy Create free account
hub / github.com/URLab-Sim/UnrealRoboticsLab / ReadAttrFloat

Method ReadAttrFloat

Source/URLab/Private/MuJoCo/Utils/MjXmlUtils.cpp:67–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65// ---- Attribute-from-Node helpers ----
66
67bool MjXmlUtils::ReadAttrFloat(const FXmlNode* Node, const TCHAR* Attr, float& Out, bool& bOverride)
68{
69 FString Str = Node->GetAttribute(Attr);
70 if (Str.IsEmpty())
71 return false;
72 bOverride = true;
73 Out = FCString::Atof(*Str);
74 return true;
75}
76
77bool MjXmlUtils::ReadAttrDouble(const FXmlNode* Node, const TCHAR* Attr, double& Out, bool& bOverride)
78{

Callers

nothing calls this directly

Calls 1

IsEmptyMethod · 0.80

Tested by

no test coverage detected