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

Function ToStr

tests/gtest_enums.cpp:16–30  ·  view source on GitHub ↗

NOLINTNEXTLINE(misc-use-anonymous-namespace,misc-use-internal-linkage)

Source from the content-addressed store, hash-verified

14
15// NOLINTNEXTLINE(misc-use-anonymous-namespace,misc-use-internal-linkage)
16static const char* ToStr(const Color& c)
17{
18 switch(c)
19 {
20 case Color::Red:
21 return "Red";
22 case Color::Blue:
23 return "Blue";
24 case Color::Green:
25 return "Green";
26 case Color::Undefined:
27 return "Undefined";
28 }
29 return nullptr;
30}
31
32class ActionEnum : public SyncActionNode
33{

Callers 5

SetAttributeMethod · 0.85
SetTextMethod · 0.85
PushAttributeMethod · 0.85
PushTextMethod · 0.85
tickMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected