MCPcopy Create free account
hub / github.com/BehaviorTree/BehaviorTree.CPP / toConstStr

Function toConstStr

src/loggers/bt_minitrace_logger.cpp:26–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24namespace
25{
26const 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
46void MinitraceLogger::callback(Duration /*timestamp*/, const TreeNode& node,

Callers 1

callbackMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected