diff options
author | Josh Blum | 2013-03-17 12:32:43 -0700 |
---|---|---|
committer | Josh Blum | 2013-03-17 12:32:43 -0700 |
commit | 4e19b066d27b90355657688f67b6e2f208390a82 (patch) | |
tree | f72809037a62f883f1a60acddb3115e376da889a /lib/gras_impl/block_actor.hpp | |
parent | b142e0e75f8ab4e7b2bb70c3fc71b61fd5f71651 (diff) | |
download | sandhi-4e19b066d27b90355657688f67b6e2f208390a82.tar.gz sandhi-4e19b066d27b90355657688f67b6e2f208390a82.tar.bz2 sandhi-4e19b066d27b90355657688f67b6e2f208390a82.zip |
gras: property implementation in lib
Diffstat (limited to 'lib/gras_impl/block_actor.hpp')
-rw-r--r-- | lib/gras_impl/block_actor.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/gras_impl/block_actor.hpp b/lib/gras_impl/block_actor.hpp index 935c87d..d7429f1 100644 --- a/lib/gras_impl/block_actor.hpp +++ b/lib/gras_impl/block_actor.hpp @@ -19,6 +19,7 @@ #include <Theron/Detail/Threading/Atomic.h> #include <vector> #include <set> +#include <map> namespace gras { @@ -61,6 +62,7 @@ struct BlockActor : Apology::Worker this->RegisterHandler(this, &BlockActor::handle_output_alloc); this->RegisterHandler(this, &BlockActor::handle_output_update); + this->RegisterHandler(this, &BlockActor::handle_prop_access); this->RegisterHandler(this, &BlockActor::handle_self_kick); this->RegisterHandler(this, &BlockActor::handle_get_stats); } @@ -90,6 +92,7 @@ struct BlockActor : Apology::Worker void handle_output_alloc(const OutputAllocMessage &, const Theron::Address); void handle_output_update(const OutputUpdateMessage &, const Theron::Address); + void handle_prop_access(const PropAccessMessage &, const Theron::Address); void handle_self_kick(const SelfKickMessage &, const Theron::Address); void handle_get_stats(const GetStatsMessage &, const Theron::Address); @@ -180,6 +183,10 @@ struct BlockActor : Apology::Worker std::vector<std::vector<OutputHintMessage> > output_allocation_hints; + //property stuff + PMCC prop_access_dispatcher(const std::string &key, const PMCC &value, const bool set); + std::map<std::string, PropertyRegistrySptr> prop_registry; + BlockStats stats; }; |