File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,7 @@ namespace dynamicgraph
84
84
}
85
85
virtual const std::string& getClassName () const = 0;
86
86
virtual std::string getDocString () const ;
87
+ bool hasSignal ( const std::string & signame ) const ;
87
88
SignalBase<int >& getSignal (const std::string& signalName);
88
89
const SignalBase<int >& getSignal (const std::string& signalName) const ;
89
90
std::ostream& displaySignalList (std::ostream& os) const ;
Original file line number Diff line number Diff line change @@ -149,6 +149,11 @@ std::string Entity::getDocString () const
149
149
return *(sigkey ->second) ;
150
150
151
151
152
+ bool Entity::
153
+ hasSignal ( const string & signame ) const
154
+ {
155
+ return (!(signalMap.find (signame) == signalMap.end ()));
156
+ }
152
157
153
158
SignalBase<int >& Entity::
154
159
getSignal ( const string & signame )
You can’t perform that action at this time.
0 commit comments