| 24 | namespace |
| 25 | { |
| 26 | const char* toConstStr(NodeType type) |
| 27 | { |
| 28 | switch(type) |
| 29 | { |
| 30 | case NodeType::ACTION: |
| 31 | return "Action"; |
| 32 | case NodeType::CONDITION: |
| 33 | return "Condition"; |
| 34 | case NodeType::DECORATOR: |
| 35 | return "Decorator"; |
| 36 | case NodeType::CONTROL: |
| 37 | return "Control"; |
| 38 | case NodeType::SUBTREE: |
| 39 | return "SubTree"; |
| 40 | default: |
| 41 | return "Undefined"; |
| 42 | } |
| 43 | } |
| 44 | } // namespace |
| 45 | |
| 46 | void MinitraceLogger::callback(Duration /*timestamp*/, const TreeNode& node, |