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

Method GetValueAsString

Core/ClientSML/src/sml_ClientIntElement.cpp:47–54  ·  view source on GitHub ↗

Returns a string form of the value stored here.

Source from the content-addressed store, hash-verified

45
46// Returns a string form of the value stored here.
47char const* IntElement::GetValueAsString() const
48{
49 // note: this is a bit of a hack but the previous
50 // hack casted around the member function's const keyword
51 static std::string temp; // c_str() needs to remain valid
52 to_string(m_Value, temp);
53 return temp.c_str() ;
54}
55
56char const* IntElement::GetValueAsString(std::string& buf) const
57{

Callers 15

TEST_DEFINITIONFunction · 0.45
GetParameterValueFunction · 0.45
GetParameterValueFunction · 0.45
AddWMEMethod · 0.45
ReceivedOutputMethod · 0.45
CreateStringWMEMethod · 0.45
CreateIntWMEMethod · 0.45
CreateFloatWMEMethod · 0.45
CreateIdWMEMethod · 0.45
CreateSharedIdWMEMethod · 0.45

Calls

no outgoing calls

Tested by 3

TEST_DEFINITIONFunction · 0.36
outputEventHandlerMethod · 0.36
printWMEsMethod · 0.36