tweak transport bar spacing
[ardour.git] / libs / pbd / pbd / functor_command.h
index e335f4418e7a34850a2cd087c667b8703bec4b40..b651c6f775c30352bb780009437d5992248a456f 100644 (file)
 #include <string>
 #include <map>
 
-#include <pbd/xml++.h>
-#include <pbd/shiva.h>
-#include <pbd/command.h>
-#include <pbd/failed_constructor.h>
+#include "pbd/xml++.h"
+#include "pbd/shiva.h"
+#include "pbd/command.h"
+#include "pbd/failed_constructor.h"
 
 /** This command class is initialized 
  */
@@ -44,15 +44,11 @@ class FunctorCommand : public Command
        typedef typename FunctorMap::iterator FunctorMapIterator;
 
        public:
-       FunctorCommand(
-               std::string functor,
-               obj_type object,
-               arg_type b,
-               arg_type a
-       ) : functor_name(functor), 
-               object(object),
-               before(b),
-               after(a) 
+       FunctorCommand(std::string functor, obj_type& object, arg_type b, arg_type a) 
+               : functor_name(functor)
+               , object(object)
+               , before(b)
+               , after(a) 
        {
                method = find_functor(functor);
 
@@ -76,6 +72,7 @@ class FunctorCommand : public Command
                std::stringstream ss;
                
                XMLNode *node = new XMLNode("FunctorCommand");
+               node->add_property("type_name", typeid(obj_type).name());
                node->add_property("functor", functor_name);
                ss << before;
                node->add_property("before", ss.str());