// Copyright (C) by Josh Blum. See LICENSE.txt for licensing information. #ifndef INCLUDED_GRAS_BLOCK_I #define INCLUDED_GRAS_BLOCK_I %{ #include %} %include %import %include %import %include %include //////////////////////////////////////////////////////////////////////// // Create pythonic gateway to get and set //////////////////////////////////////////////////////////////////////// %extend gras::Block { %insert("python") %{ def set(self, key, value): self._set_property(key, PMC_M(value)) def get(self, key): return self._get_property(key)() %} } #endif /*INCLUDED_GRAS_BLOCK_I*/