| 150 | }; |
| 151 | |
| 152 | struct Method : public Command |
| 153 | { |
| 154 | Method(const G4AnyMethod& fun, void* obj, G4UIcommand* cmd) |
| 155 | : Command(cmd, fun.ArgType()), method(fun), object(obj) |
| 156 | {} |
| 157 | Method() = default; |
| 158 | G4AnyMethod method; |
| 159 | void* object = nullptr; |
| 160 | }; |
| 161 | |
| 162 | // Declare Methods |
| 163 |