summaryrefslogtreecommitdiff
path: root/include/gras/callable.hpp
diff options
context:
space:
mode:
authorJosh Blum2013-07-07 00:25:35 -0700
committerJosh Blum2013-07-07 00:25:35 -0700
commita8f263d94f8eb772a3a334aa5bb08c6e30b996ec (patch)
treebb9baa13d27d7d0150a6ee6c52add5288b502a0d /include/gras/callable.hpp
parent2001959902f85723c289e3f942ec2e49954a04bc (diff)
downloadsandhi-a8f263d94f8eb772a3a334aa5bb08c6e30b996ec.tar.gz
sandhi-a8f263d94f8eb772a3a334aa5bb08c6e30b996ec.tar.bz2
sandhi-a8f263d94f8eb772a3a334aa5bb08c6e30b996ec.zip
gras: restore property access w/ json
Diffstat (limited to 'include/gras/callable.hpp')
-rw-r--r--include/gras/callable.hpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/gras/callable.hpp b/include/gras/callable.hpp
index 9d24c83..792be93 100644
--- a/include/gras/callable.hpp
+++ b/include/gras/callable.hpp
@@ -6,6 +6,7 @@
#include <gras/gras.hpp>
#include <PMC/PMC.hpp>
#include <boost/shared_ptr.hpp>
+#include <vector>
#include <string>
namespace gras
@@ -34,12 +35,23 @@ namespace gras
class GRAS_API Callable
{
public:
+
//! Default constructor
Callable(void);
//! Destructor (virtual for subclasses)
virtual ~Callable(void);
+ //! Get a list of keys for registered calls
+ std::vector<std::string> get_registered_keys(void) const;
+
+protected:
+ /*!
+ * Unregister a previously registered call.
+ * Throws if the key is not found in the registry.
+ */
+ void unregister_call(const std::string &key);
+
/*******************************************************************
* Register API - don't look here, template magic, not helpful
******************************************************************/