| 53 | |
| 54 | |
| 55 | Rig::Rig(rig_model_t rig_model) { |
| 56 | theRig = rig_init(rig_model); |
| 57 | if (!theRig) |
| 58 | THROW(new RigException ("Rig initialization error")); |
| 59 | |
| 60 | caps = theRig->caps; |
| 61 | theRig->callbacks.freq_event = &hamlibpp_freq_event; |
| 62 | theRig->state.obj = (rig_ptr_t)this; |
| 63 | } |
| 64 | |
| 65 | Rig::~Rig() { |
| 66 | theRig->state.obj = NULL; |