Build Feat :param command: command root (without ?) :param doc: docstring to be applied to the feature
(command, doc, **kwargs)
| 44 | INTSTR = (int, str) |
| 45 | |
| 46 | def ofeat(command, doc, **kwargs): |
| 47 | """Build Feat |
| 48 | |
| 49 | :param command: command root (without ?) |
| 50 | :param doc: docstring to be applied to the feature |
| 51 | """ |
| 52 | |
| 53 | def _get(self): |
| 54 | response = self.query(command + '?') |
| 55 | return response |
| 56 | |
| 57 | def _set(self, value): |
| 58 | self.query('{} {}'.format(command, value)) |
| 59 | |
| 60 | return Feat(_get, _set, doc=doc, **kwargs) |
| 61 | |
| 62 | |
| 63 | class IXBX(MessageBasedDriver): |