trunk/src/emu/machine/netlist.h
| r26110 | r26111 | |
| 188 | 188 | }; |
| 189 | 189 | |
| 190 | 190 | // optional device finder |
| 191 | | class netlist_mame_device::optional_output : public netlist_mame_device::output_finder<false, net_output_t> |
| 191 | class netlist_mame_device::optional_output : public netlist_mame_device::output_finder<false, netlist_output_t> |
| 192 | 192 | { |
| 193 | 193 | public: |
| 194 | | optional_output(device_t &base, const char *tag, const char *output) : output_finder<false, net_output_t>(base, tag, output) { } |
| 194 | optional_output(device_t &base, const char *tag, const char *output) : output_finder<false, netlist_output_t>(base, tag, output) { } |
| 195 | 195 | |
| 196 | 196 | virtual ~optional_output() {}; |
| 197 | 197 | |
| r26110 | r26111 | |
| 221 | 221 | }; |
| 222 | 222 | |
| 223 | 223 | // optional device finder |
| 224 | | class netlist_mame_device::optional_param : public netlist_mame_device::output_finder<false, net_param_t> |
| 224 | class netlist_mame_device::optional_param : public netlist_mame_device::output_finder<false, netlist_param_t> |
| 225 | 225 | { |
| 226 | 226 | public: |
| 227 | | optional_param(device_t &base, const char *tag, const char *output) : output_finder<false, net_param_t>(base, tag, output) { } |
| 227 | optional_param(device_t &base, const char *tag, const char *output) : output_finder<false, netlist_param_t>(base, tag, output) { } |
| 228 | 228 | |
| 229 | 229 | virtual bool OnDeviceStart() |
| 230 | 230 | { |
| r26110 | r26111 | |
| 235 | 235 | }; |
| 236 | 236 | |
| 237 | 237 | // required devices are similar but throw an error if they are not found |
| 238 | | class netlist_mame_device::required_param : public netlist_mame_device::output_finder<true, net_param_t> |
| 238 | class netlist_mame_device::required_param : public netlist_mame_device::output_finder<true, netlist_param_t> |
| 239 | 239 | { |
| 240 | 240 | public: |
| 241 | | required_param(device_t &base, const char *tag, const char *output) : output_finder<true, net_param_t>(base, tag, output) { } |
| 241 | required_param(device_t &base, const char *tag, const char *output) : output_finder<true, netlist_param_t>(base, tag, output) { } |
| 242 | 242 | |
| 243 | 243 | virtual bool OnDeviceStart() |
| 244 | 244 | { |