diff options
Diffstat (limited to 'include/gras/element.hpp')
-rw-r--r-- | include/gras/element.hpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/gras/element.hpp b/include/gras/element.hpp index df47bef..84f7062 100644 --- a/include/gras/element.hpp +++ b/include/gras/element.hpp @@ -10,6 +10,7 @@ #include <gras/gras.hpp> #include <gras/callable.hpp> +#include <gras/block_config.hpp> #include <gras/weak_container.hpp> #include <boost/shared_ptr.hpp> @@ -66,6 +67,23 @@ struct GRAS_API Element : Callable, boost::shared_ptr<ElementImpl> std::string to_string(void) const; /******************************************************************* + * config interface + ******************************************************************/ + + //! Get the global block config settings + const GlobalBlockConfig &global_config(void) const; + + //! Get the global block config settings + GlobalBlockConfig &global_config(void); + + /*! + * Commit changes to the global configuration. + * Call this after modifying the global config. + * Must be call to apply changes to the global config. + */ + virtual void commit_config(void); + + /******************************************************************* * identification interface ******************************************************************/ |