| 18 | { |
| 19 | |
| 20 | EntryUpdatedAction::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 | |
| 40 | NodeStatus EntryUpdatedAction::tick() |
| 41 | { |
nothing calls this directly
no test coverage detected