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

Method ReadAttrInt

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

Source from the content-addressed store, hash-verified

85}
86
87bool MjXmlUtils::ReadAttrInt(const FXmlNode* Node, const TCHAR* Attr, int32& Out, bool& bOverride)
88{
89 FString Str = Node->GetAttribute(Attr);
90 if (Str.IsEmpty())
91 return false;
92 bOverride = true;
93 Out = FCString::Atoi(*Str);
94 return true;
95}
96
97bool MjXmlUtils::ReadAttrFloatArray(const FXmlNode* Node, const TCHAR* Attr, TArray<float>& Out, bool& bOverride)
98{

Callers

nothing calls this directly

Calls 1

IsEmptyMethod · 0.80

Tested by

no test coverage detected