From ff0c22415499e39e6ba347058e7de3247c6663e3 Mon Sep 17 00:00:00 2001
From: Guilhem Saurel <guilhem.saurel@laas.fr>
Date: Fri, 18 Jan 2019 13:50:15 +0100
Subject: [PATCH] Allow entity to be instanciated, for testing purposes

---
 include/dynamic-graph/entity.h | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/include/dynamic-graph/entity.h b/include/dynamic-graph/entity.h
index c36ab5d2..ae5b9f00 100644
--- a/include/dynamic-graph/entity.h
+++ b/include/dynamic-graph/entity.h
@@ -78,7 +78,11 @@ namespace dynamicgraph
     {
       return name;
     }
-    virtual const std::string& getClassName  () const = 0;
+    virtual const std::string& getClassName  () const
+    {
+      static std::string ret("Entity");
+      return ret;
+    }
     virtual std::string getDocString () const;
     bool hasSignal( const std::string & signame ) const;
     SignalBase<int>& getSignal (const std::string& signalName);
-- 
GitLab