20 #ifndef __lib_pbd_functor_command_h__
21 #define __lib_pbd_functor_command_h__
30 #include "pbd/shiva.h"
39 template <
class obj_type,
class arg_type>
44 typedef std::map< std::string, functor_type >
FunctorMap;
48 FunctorCommand(std::string functor, obj_type&
object, arg_type b, arg_type a)
57 new PBD::Shiva< obj_type, FunctorCommand<obj_type, arg_type> > (
object, *
this);
93 FunctorMapIterator iter;
112 template <
class obj_type,
class arg_type>
118 #endif // __lib_pbd_functor_command_h__
static void register_functor(std::string name, functor_type f)
static functor_type find_functor(std::string name)
FunctorMap::iterator FunctorMapIterator
std::map< std::string, functor_type > FunctorMap
static FunctorMap functor_map
FunctorCommand(std::string functor, obj_type &object, arg_type b, arg_type a)
XMLProperty * add_property(const char *name, const std::string &value)
void(obj_type::* functor_type)(arg_type)
const std::string & name() const
virtual XMLNode & get_state()