From 0bde3f81601416f1ca703f9ecd4968632a6f9bfc Mon Sep 17 00:00:00 2001
From: Florent Lamiraux <florent@laas.fr>
Date: Fri, 16 Mar 2012 17:00:04 +0100
Subject: [PATCH] Add method Entity::getDocString.

---
 include/dynamic-graph/entity.h | 2 +-
 src/dgraph/entity.cpp          | 6 ++++++
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/include/dynamic-graph/entity.h b/include/dynamic-graph/entity.h
index a461cdc..f0bc3e0 100644
--- a/include/dynamic-graph/entity.h
+++ b/include/dynamic-graph/entity.h
@@ -83,7 +83,7 @@ namespace dynamicgraph
       return name;
     }
     virtual const std::string& getClassName  () const = 0;
-
+    virtual std::string getDocString () const;
     SignalBase<int>& getSignal (const std::string& signalName);
     const SignalBase<int>& getSignal (const std::string& signalName) const;
     std::ostream& displaySignalList(std::ostream& os) const;
diff --git a/src/dgraph/entity.cpp b/src/dgraph/entity.cpp
index 8831af4..44c402c 100644
--- a/src/dgraph/entity.cpp
+++ b/src/dgraph/entity.cpp
@@ -132,6 +132,12 @@ signalDeregistration( const std::string& signame )
 }
 
 
+std::string Entity::getDocString () const
+{
+  std::string docString ("No header documentation.");
+  return docString;
+}
+
 #define __DG_ENTITY_GET_SIGNAL__(ITER_TYPE) \
   SignalMap::ITER_TYPE sigkey = signalMap.find(signame); \
   if( sigkey == signalMap.end () ) /* key does NOT exist */ \
-- 
GitLab