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

Function xml_reset

Core/SoarKernel/src/xml.cpp:61–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61void xml_reset(agent* pAgent)
62{
63 if (!pAgent || !pAgent->xml_trace || !pAgent->xml_commands)
64 {
65 assert(pAgent);
66 assert(pAgent->xml_trace);
67 assert(pAgent->xml_commands);
68 return;
69 }
70
71 soarxml::XMLTrace* pTrace = static_cast< soarxml::XMLTrace* >(pAgent->xml_trace);
72 soarxml::XMLTrace* pCommands = static_cast< soarxml::XMLTrace* >(pAgent->xml_commands);
73
74 pTrace->Reset();
75 pCommands->Reset();
76}
77
78void xml_destroy(agent* pAgent)
79{

Callers 1

reinitialize_soarFunction · 0.85

Calls 1

ResetMethod · 0.45

Tested by

no test coverage detected