* @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
| 2424 | * E.g. 8.6.1 |
| 2425 | *************************************************************/ |
| 2426 | std::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 |