add System/Event

This commit is contained in:
2022-08-27 18:34:55 +09:00
parent b9c3f13f3b
commit b8ddb82e78
4 changed files with 203 additions and 2 deletions

View File

@@ -82,7 +82,8 @@ class Node::Lambda : public nf7::Context {
}
virtual void Handle(
std::string_view, const nf7::Value&, const std::shared_ptr<Lambda>&) noexcept = 0;
std::string_view, const nf7::Value&, const std::shared_ptr<Lambda>&) noexcept {
}
std::shared_ptr<Node::Lambda> parent() const noexcept { return parent_.lock(); }

View File

@@ -100,7 +100,7 @@ struct NodeRootLambda::Builder final {
return prod_;
}
void Send(std::string_view name, const nf7::Value& v) noexcept {
void Send(std::string_view name, const nf7::Value& v) {
assert(built_);
CheckInput(name);
target_->Handle(name, v, prod_);