| 42 | namespace stn = soar_TraceNames; |
| 43 | |
| 44 | void xml_create(agent* pAgent) |
| 45 | { |
| 46 | if (!pAgent) |
| 47 | { |
| 48 | assert(pAgent); |
| 49 | return; |
| 50 | } |
| 51 | |
| 52 | soarxml::XMLTrace* pTrace = new soarxml::XMLTrace(); |
| 53 | soarxml::XMLTrace* pCommands = new soarxml::XMLTrace(); |
| 54 | |
| 55 | pAgent->xml_trace = static_cast< xml_handle >(pTrace); |
| 56 | pAgent->xml_commands = static_cast< xml_handle >(pCommands); |
| 57 | |
| 58 | pAgent->xml_destination = pAgent->xml_trace; |
| 59 | } |
| 60 | |
| 61 | void xml_reset(agent* pAgent) |
| 62 | { |