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

Method EntryUpdatedAction

src/actions/updated_action.cpp:20–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18{
19
20EntryUpdatedAction::EntryUpdatedAction(const std::string& name, const NodeConfig& config)
21 : SyncActionNode(name, config)
22{
23 auto it = config.input_ports.find("entry");
24 if(it == config.input_ports.end() || it->second.empty())
25 {
26 throw LogicError("Missing port 'entry' in ", name);
27 }
28 const auto entry_str = it->second;
29 StringView stripped_key;
30 if(isBlackboardPointer(entry_str, &stripped_key))
31 {
32 entry_key_ = stripped_key;
33 }
34 else
35 {
36 entry_key_ = entry_str;
37 }
38}
39
40NodeStatus EntryUpdatedAction::tick()
41{

Callers

nothing calls this directly

Calls 3

LogicErrorClass · 0.85
endMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected