summaryrefslogtreecommitdiff
path: root/lib/element.cpp
diff options
context:
space:
mode:
authorJosh Blum2013-09-15 22:01:30 -0700
committerJosh Blum2013-09-15 22:01:30 -0700
commitc4b43b3521f373bc91cd3165b96ced0cb9cf65c1 (patch)
tree68254ad7bd602e3de98b441ff7e22f050dd73dee /lib/element.cpp
parent3cf31976f415aaa3799edd307e40bc2e25f3e690 (diff)
parent75d2c6cc485714efe4b136ade34e78a7b0fb2744 (diff)
downloadsandhi-c4b43b3521f373bc91cd3165b96ced0cb9cf65c1.tar.gz
sandhi-c4b43b3521f373bc91cd3165b96ced0cb9cf65c1.tar.bz2
sandhi-c4b43b3521f373bc91cd3165b96ced0cb9cf65c1.zip
Merge branch 'config_work' into gr_update
Diffstat (limited to 'lib/element.cpp')
-rw-r--r--lib/element.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/element.cpp b/lib/element.cpp
index 9f3c5fb..efd8dfd 100644
--- a/lib/element.cpp
+++ b/lib/element.cpp
@@ -84,6 +84,21 @@ std::string Element::to_string(void) const
return (*this)->repr;
}
+const GlobalBlockConfig &Element::global_config(void) const
+{
+ return (*this)->global_config;
+}
+
+GlobalBlockConfig &Element::global_config(void)
+{
+ return (*this)->global_config;
+}
+
+void Element::commit_config(void)
+{
+ //NOP -- this call gets overridden
+}
+
void Element::adopt_element(const std::string &name, const Element &child)
{
if (child->parent) throw std::invalid_argument(str(boost::format(