MCPcopy Create free account
hub / github.com/SoarGroup/Soar / GetResultFloat

Method GetResultFloat

Core/ConnectionSML/src/sml_AnalyzeXML.cpp:135–146  ·  view source on GitHub ↗

Returns the result as a double

Source from the content-addressed store, hash-verified

133
134// Returns the result as a double
135double AnalyzeXML::GetResultFloat(double defaultValue) const
136{
137 if (!m_pResult || m_pResult->GetCharacterData() == NULL)
138 {
139 return defaultValue ;
140 }
141
142 double value = 0;
143 from_c_string(value, m_pResult->GetCharacterData()) ;
144
145 return value ;
146}
147
148/*************************************************************
149* @brief As "GetArgValue" but parsed as a boolean.

Callers

nothing calls this directly

Calls 2

from_c_stringFunction · 0.50
GetCharacterDataMethod · 0.45

Tested by

no test coverage detected