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

Method GetSoarKernelVersion

Core/ClientSML/src/sml_ClientKernel.cpp:2426–2437  ·  view source on GitHub ↗

* @brief The Soar kernel version is based on sending a request * to the kernel asking for its version and returning the * result. * * The Soar client version reports the version of Soar this * client was compiled for. It's based on a constant * stored in the sml_Names list. * * The SML version also reports a constant for the version * of SML in use

Source from the content-addressed store, hash-verified

2424* E.g. 8.6.1
2425*************************************************************/
2426std::string Kernel::GetSoarKernelVersion()
2427{
2428 AnalyzeXML response ;
2429 if (GetConnection()->SendAgentCommand(&response, sml_Names::kCommand_GetVersion))
2430 {
2431 return response.GetResultString() ;
2432 }
2433 else
2434 {
2435 return "Error: Unable to retrieve the version from the kernel" ;
2436 }
2437}
2438
2439// The below stuff is to support LoadExternalLibrary
2440

Callers 4

createSoarMethod · 0.80
createKernelAndAgentsMethod · 0.80
TestMethod · 0.80
getKernelVersionMethod · 0.80

Calls 3

SendAgentCommandMethod · 0.80
GetConnectionFunction · 0.70
GetResultStringMethod · 0.45

Tested by 3

createSoarMethod · 0.64
createKernelAndAgentsMethod · 0.64
TestMethod · 0.64