summaryrefslogtreecommitdiff
path: root/lib/top_block_query.cpp
diff options
context:
space:
mode:
authorJosh Blum2013-07-05 18:50:01 -0700
committerJosh Blum2013-07-05 18:50:01 -0700
commitfc80d2c0acec4f668b58a05bd5a3a06b0a2a2280 (patch)
tree29433c49392b458aa40b318b11a3afb34b918625 /lib/top_block_query.cpp
parentdf32957fb259989b6c269c10808e550e0913b652 (diff)
downloadsandhi-fc80d2c0acec4f668b58a05bd5a3a06b0a2a2280.tar.gz
sandhi-fc80d2c0acec4f668b58a05bd5a3a06b0a2a2280.tar.bz2
sandhi-fc80d2c0acec4f668b58a05bd5a3a06b0a2a2280.zip
gras: begin replacing set/get with callable
Diffstat (limited to 'lib/top_block_query.cpp')
-rw-r--r--lib/top_block_query.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/top_block_query.cpp b/lib/top_block_query.cpp
index 7707e32..7a5e13e 100644
--- a/lib/top_block_query.cpp
+++ b/lib/top_block_query.cpp
@@ -36,6 +36,7 @@ static ptree query_blocks(ElementImpl *self, const ptree &)
{
BlockActor *actor = dynamic_cast<BlockActor *>(w->get_actor());
ptree prop_e;
+ /*
typedef std::pair<std::string, PropertyRegistryPair> PropRegistryKVP;
BOOST_FOREACH(const PropRegistryKVP &p, actor->data->property_registry)
{
@@ -56,6 +57,7 @@ static ptree query_blocks(ElementImpl *self, const ptree &)
block_attrs.push_back(std::make_pair(p.first, prop_attrs));
prop_e.push_back(std::make_pair("props", block_attrs));
}
+ */
e.push_back(std::make_pair(actor->data->block->get_uid(), prop_e));
}
root.push_back(std::make_pair("blocks", e));
@@ -182,6 +184,7 @@ static ptree query_props(ElementImpl *self, const ptree &query)
{
BlockActor *actor = dynamic_cast<BlockActor *>(w->get_actor());
if (actor->data->block->get_uid() != block_id) continue;
+ /*
if (set)
{
const std::type_info &t = actor->data->property_registry[prop_key].setter->type();
@@ -196,6 +199,7 @@ static ptree query_props(ElementImpl *self, const ptree &query)
root.push_back(std::make_pair("key", query.get_child("key")));
root.push_back(std::make_pair("value", v));
}
+ */
}
return root;
}