Represent the “signature” or protocol of a listener in the context of topics.
__init__ |
Inputs |
getAllArgs |
|
getOptionalArgs |
|
getRequiredArgs |
Return a tuple of names indicating which call arguments |
CallArgsInfo
¶Represent the “signature” or protocol of a listener in the context of topics.
__init__
(self, func, firstArgIdx)¶Inputs: - Args and defaultVals are the complete set of arguments and
default values as obtained form inspect.getargspec();
After construction, - self.allParams will contain the subset of ‘args’ without first
firstArgIdx items,
For instance, listener(self, arg1, arg2=AUTO_TOPIC, arg3=None) will have self.allParams = (arg1, arg2, arg3), self.numRequired=1, and self.autoTopicArgName = ‘arg2’, whereas listener(self, arg1, arg3=None) will have self.allParams = (arg1, arg3), self.numRequired=1, and self.autoTopicArgName = None.
getAllArgs
(self)¶getOptionalArgs
(self)¶getRequiredArgs
(self)¶Return a tuple of names indicating which call arguments are required to be present when pub.sendMessage(...) is called.