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

Method StopCaptureInput

Core/KernelSML/src/sml_AgentSML.cpp:1282–1307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1280}
1281
1282bool AgentSML::StopCaptureInput()
1283{
1284 if (!CaptureQuery())
1285 {
1286 return false;
1287 }
1288 if (ReplayQuery())
1289 {
1290 return false;
1291 }
1292
1293 bool good = true;
1294 if (!m_CaptureAutoflush)
1295 {
1296 m_CaptureAutoflush = true;
1297 while (good && !m_CapturedActions.empty())
1298 {
1299 CaptureInputWME(m_CapturedActions.front());
1300 m_CapturedActions.pop();
1301 }
1302 }
1303
1304 delete m_pCaptureFile;
1305 m_pCaptureFile = 0;
1306 return good;
1307}
1308
1309std::string::size_type AgentSML::findDelimReplaceEscape(std::string& line, std::string::size_type lpos)
1310{

Callers 1

DoCaptureInputMethod · 0.80

Calls 3

CaptureQueryFunction · 0.85
ReplayQueryFunction · 0.85
popMethod · 0.80

Tested by

no test coverage detected