Skip to content
Snippets Groups Projects
Commit 0bde3f81 authored by Florent Lamiraux's avatar Florent Lamiraux
Browse files

Add method Entity::getDocString.

parent 69b422c7
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
......@@ -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 */ \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment