Class representing bjam action defined from Python. The function must register the action to execute.
| 70 | engine = get_manager().engine() |
| 71 | |
| 72 | class RCAction: |
| 73 | """Class representing bjam action defined from Python. |
| 74 | The function must register the action to execute.""" |
| 75 | |
| 76 | def __init__(self, action_name, function): |
| 77 | self.action_name = action_name |
| 78 | self.function = function |
| 79 | |
| 80 | def __call__(self, targets, sources, property_set): |
| 81 | if self.function: |
| 82 | self.function(targets, sources, property_set) |
| 83 | |
| 84 | # FIXME: What is the proper way to dispatch actions? |
| 85 | def rc_register_action(action_name, function = None): |
no outgoing calls
no test coverage detected