From a8f263d94f8eb772a3a334aa5bb08c6e30b996ec Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Sun, 7 Jul 2013 00:25:35 -0700 Subject: gras: restore property access w/ json --- include/gras/callable.hpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'include/gras/callable.hpp') 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 #include #include +#include #include 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 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 ******************************************************************/ -- cgit