summaryrefslogtreecommitdiff
path: root/lib/element.cpp
diff options
context:
space:
mode:
authorJosh Blum2013-09-09 00:01:07 -0700
committerJosh Blum2013-09-09 00:01:07 -0700
commitf9c0d4c2e39aa28cc501ceb6479afc32f7849b11 (patch)
tree63a6677b3d4051c8a7776515ec733f6d475d1a15 /lib/element.cpp
parent7c4911c28c28305ed4d1aab9b5ea82f96b49f404 (diff)
downloadsandhi-f9c0d4c2e39aa28cc501ceb6479afc32f7849b11.tar.gz
sandhi-f9c0d4c2e39aa28cc501ceb6479afc32f7849b11.tar.bz2
sandhi-f9c0d4c2e39aa28cc501ceb6479afc32f7849b11.zip
gras: work on global config that works on hier
Diffstat (limited to 'lib/element.cpp')
-rw-r--r--lib/element.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/element.cpp b/lib/element.cpp
index 9f3c5fb..5574c02 100644
--- a/lib/element.cpp
+++ b/lib/element.cpp
@@ -84,6 +84,16 @@ 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::adopt_element(const std::string &name, const Element &child)
{
if (child->parent) throw std::invalid_argument(str(boost::format(