Merged with trunk R846
[ardour.git] / libs / pbd / pbd / stateful.h
index 3038f16b4f4a05c0367fc160784eca8577d6c7b0..5adddfc1c06e8b10e19414cc8f7a2fa7bc5e26ed 100644 (file)
@@ -22,6 +22,7 @@
 #define __pbd_stateful_h__
 
 #include <string>
+#include <pbd/id.h>
 
 class XMLNode;
 
@@ -41,10 +42,12 @@ class Stateful {
 
        virtual void add_instant_xml (XMLNode&, const std::string& dir);
        XMLNode *instant_xml (const std::string& str, const std::string& dir);
+        PBD::ID id() { return _id; }
 
   protected:
        XMLNode *_extra_xml;
        XMLNode *_instant_xml;
+        PBD::ID _id;
 };
 
 #endif /* __pbd_stateful_h__ */