29 class BACKEND_IMPEXP
Rig
48 void setConf(
token_t token,
const char *val);
49 void setConf(
const char *name,
const char *val);
50 void getConf(
token_t token,
char *val);
51 void getConf(
const char *name,
char *val);
52 token_t tokenLookup(
const char *name);
80 void getParm(
setting_t parm,
float& valf);
97 const char * getInfo(
void);
120 unsigned int power2mW(
float power,
freq_t freq,
rmode_t mode);
121 float mW2power(
unsigned int mwpower,
freq_t freq,
rmode_t mode);
122 void setTrn(
int trn);
148 void setSplitVFO(
split_t split,
171 virtual int FreqEvent(
vfo_t,
freq_t, rig_ptr_t)
const
179 virtual int VFOEvent(
vfo_t, rig_ptr_t)
const
183 virtual int PTTEvent(
vfo_t,
ptt_t, rig_ptr_t)
const
187 virtual int DCDEvent(
vfo_t,
dcd_t, rig_ptr_t)
const
195 # if ((__GNUG__ <= 2) && (__GNUC_MINOR__ < 8))
202 #if defined(__GNUG__)
203 # if HAVE_BUILTIN_H || HAVE_GXX_BUILTIN_H || HAVE_GPP_BUILTIN_H
204 # if ETIP_NEEDS_MATH_H
205 # if ETIP_NEEDS_MATH_EXCEPTION
207 # define exception math_exception
212 # define exception builtin_exception
213 # if HAVE_GPP_BUILTIN_H
214 # include <gpp/builtin.h>
215 # elif HAVE_GXX_BUILTIN_H
216 # include <g++/builtin.h>
218 # include <builtin.h>
222 #elif defined (__SUNPRO_CC)
223 # include <generic.h>
240 #if !(defined(__GNUG__)||defined(__SUNPRO_CC))
241 extern "C" void exit(
int);
254 : message(msg), errorno(err)
258 : message(
rigerror(err)), errorno(err)
270 std::cerr <<
"Rig exception: " << message << std::endl;
272 virtual const char *classname()
const
281 #if defined(__GNUG__)
282 # if ((__GNUG__ <= 2) && (__GNUC_MINOR__ < 8))
283 (*lib_error_handler)(e ? e->classname() :
"", e ? e->message :
"");
287 #elif defined(__SUNPRO_CC)
288 genericerror(1, ((e != 0) ? (
char *)(e->message) :
""));
292 std::cerr << e->message << endl;
302 #endif // _RIGCLASS_H