00001
00002
00003
00004
00005 #include "gpibc/gumi.hxx"
00006 #include "umic/umi.hxx"
00007 #ifndef _GUMI_MSGS_HXX_
00008 #define _GUMI_MSGS_HXX_
00009 typedef INdepUmi100::Time UmiTime;
00010 namespace INdepGpib100 {
00011
00012
00013
00014
00015
00016
00017
00018
00019 class GpibTermOut {
00020 u_int _chEos;
00021 u_int _fEnd;
00022 u_int _fEoiEos;
00023 u_int _fEos7;
00024 u_int _fHighSpeed;
00025 public:
00026 friend xistream& xunmarsh(xistream &xi, GpibTermOut&);
00027 friend xostream& xmarshal(xostream &xo, const GpibTermOut&);
00028 #ifndef _MM_NO_IOSTREAM
00029 friend std::ostream& operator<<(std::ostream &os, const GpibTermOut&);
00030 #endif
00031 char chEos() const { return (char) _chEos; }
00032 GpibTermOut& chEos(char __chEos) { _chEos=__chEos ; return *this; }
00033 bool fEnd() const { return _fEnd!= 0 ; }
00034 GpibTermOut& fEnd(bool __fEnd) { _fEnd=__fEnd ; return *this; }
00035 bool fEoiEos() const { return _fEoiEos!= 0 ; }
00036 GpibTermOut& fEoiEos(bool __fEoiEos) { _fEoiEos=__fEoiEos ; return *this; }
00037 bool fEos7() const { return _fEos7!= 0 ; }
00038 GpibTermOut& fEos7(bool __fEos7) { _fEos7=__fEos7 ; return *this; }
00039 bool fHighSpeed() const { return _fHighSpeed!= 0 ; }
00040 GpibTermOut& fHighSpeed(bool __fHighSpeed) { _fHighSpeed=__fHighSpeed ; return *this; }
00041
00042 GpibTermOut():_chEos(0),_fEnd(false),_fEoiEos(false),_fEos7(false),_fHighSpeed(false) { }
00043 GpibTermOut(char chEos,bool fEnd,bool fEoiEos,bool fEos7,bool fHighSpeed):_chEos(chEos),_fEnd(fEnd),_fEoiEos(fEoiEos),_fEos7(fEos7),_fHighSpeed(fHighSpeed) { }
00044 ~GpibTermOut() {}
00045 };
00046
00047
00048
00049
00050
00051
00052
00053 class GpibTermIn {
00054 u_int _cEos;
00055 u_int _fDelEnd;
00056 u_int _fEos7;
00057 u_int _mpchEos[3];
00058 public:
00059 friend xistream& xunmarsh(xistream &xi, GpibTermIn&);
00060 friend xostream& xmarshal(xostream &xo, const GpibTermIn&);
00061 #ifndef _MM_NO_IOSTREAM
00062 friend std::ostream& operator<<(std::ostream &os, const GpibTermIn&);
00063 #endif
00064 u_int cEos() const { return _cEos; }
00065 GpibTermIn& cEos(u_int __cEos) { _cEos=__cEos ; return *this; }
00066 bool fDelEnd() const { return _fDelEnd!= 0 ; }
00067 GpibTermIn& fDelEnd(bool __fDelEnd) { _fDelEnd=__fDelEnd ; return *this; }
00068 bool fEos7() const { return _fEos7!= 0 ; }
00069 GpibTermIn& fEos7(bool __fEos7) { _fEos7=__fEos7 ; return *this; }
00070 char chEos(int i) const { return (char) _mpchEos[i]; }
00071 void chEos( int i, char __chEos) { _mpchEos[i]=__chEos ; }
00072
00073 GpibTermIn():_cEos(0),_fDelEnd(true),_fEos7(false) { }
00074 GpibTermIn(u_int cEos,bool fDelEnd,bool fEos7):_cEos(cEos),_fDelEnd(fDelEnd),_fEos7(fEos7) { }
00075 ~GpibTermIn() {}
00076 };
00077
00078
00079
00080
00081
00082
00083
00084 class GpibIfConf {
00085 u_int _fSc;
00086 u_int _iPa;
00087 u_int _fSa;
00088 u_int _iSa;
00089 public:
00090 friend xistream& xunmarsh(xistream &xi, GpibIfConf&);
00091 friend xostream& xmarshal(xostream &xo, const GpibIfConf&);
00092 #ifndef _MM_NO_IOSTREAM
00093 friend std::ostream& operator<<(std::ostream &os, const GpibIfConf&);
00094 #endif
00095 bool fSc() const { return _fSc!= 0 ; }
00096 GpibIfConf& fSc(bool __fSc) { _fSc=__fSc ; return *this; }
00097 u_int iPa() const { return _iPa; }
00098 GpibIfConf& iPa(u_int __iPa) { _iPa=__iPa ; return *this; }
00099 bool fSa() const { return _fSa!= 0 ; }
00100 GpibIfConf& fSa(bool __fSa) { _fSa=__fSa ; return *this; }
00101 u_int iSa() const { return _iSa; }
00102 GpibIfConf& iSa(u_int __iSa) { _iSa=__iSa ; return *this; }
00103
00104 GpibIfConf():_fSc(false),_iPa(0),_fSa(false),_iSa(0) { }
00105 GpibIfConf(bool fSc,u_int iPa,bool fSa,u_int iSa):_fSc(fSc),_iPa(iPa),_fSa(fSa),_iSa(iSa) { }
00106 ~GpibIfConf() {}
00107 };
00108
00109
00110
00111
00112
00113
00114
00115 class GpibInfo {
00116 u_int _eArch;
00117 u_int _cIntr;
00118 u_int _fLinec;
00119 public:
00120 friend xistream& xunmarsh(xistream &xi, GpibInfo&);
00121 friend xostream& xmarshal(xostream &xo, const GpibInfo&);
00122 #ifndef _MM_NO_IOSTREAM
00123 friend std::ostream& operator<<(std::ostream &os, const GpibInfo&);
00124 #endif
00125 u_int eArch() const { return _eArch; }
00126 GpibInfo& eArch(u_int __eArch) { _eArch=__eArch ; return *this; }
00127 u_int cIntr() const { return _cIntr; }
00128 GpibInfo& cIntr(u_int __cIntr) { _cIntr=__cIntr ; return *this; }
00129 u_int fLinec() const { return _fLinec; }
00130 GpibInfo& fLinec(u_int __fLinec) { _fLinec=__fLinec ; return *this; }
00131
00132 GpibInfo():_eArch(0),_cIntr(0),_fLinec(0) { }
00133 GpibInfo(u_int eArch,u_int cIntr,u_int fLinec):_eArch(eArch),_cIntr(cIntr),_fLinec(fLinec) { }
00134 ~GpibInfo() {}
00135 };
00136
00137
00138
00139
00140
00141
00142
00143 class GpibNop:public Umi::UmiControl {
00144 public:
00145 friend xistream& xunmarsh(xistream &xi, GpibNop&);
00146 friend xostream& xmarshal(xostream &xo, const GpibNop&);
00147 #ifndef _MM_NO_IOSTREAM
00148 friend std::ostream& operator<<(std::ostream &os, const GpibNop&);
00149 #endif
00150
00151 GpibNop(int e=0x4, size_t s=0);
00152 ~GpibNop() {}
00153 };
00154
00155
00156
00157
00158
00159
00160
00161 class GpibPeek:public Umi::UmiControl {
00162 u_int _iPort;
00163 public:
00164 friend xistream& xunmarsh(xistream &xi, GpibPeek&);
00165 friend xostream& xmarshal(xostream &xo, const GpibPeek&);
00166 #ifndef _MM_NO_IOSTREAM
00167 friend std::ostream& operator<<(std::ostream &os, const GpibPeek&);
00168 #endif
00169 u_int iPort() const { return _iPort; }
00170 GpibPeek& iPort(u_int __iPort) { _iPort=__iPort ; return *this; }
00171
00172 GpibPeek(int e=0x5, size_t s=0);
00173 ~GpibPeek() {}
00174 };
00175
00176
00177
00178
00179
00180
00181
00182 class GpibPoke:public GpibPeek {
00183 u_int _iVal;
00184 public:
00185 friend xistream& xunmarsh(xistream &xi, GpibPoke&);
00186 friend xostream& xmarshal(xostream &xo, const GpibPoke&);
00187 #ifndef _MM_NO_IOSTREAM
00188 friend std::ostream& operator<<(std::ostream &os, const GpibPoke&);
00189 #endif
00190 u_int iVal() const { return _iVal; }
00191 GpibPoke& iVal(u_int __iVal) { _iVal=__iVal ; return *this; }
00192
00193 GpibPoke(int e=0x6, size_t s=0);
00194 ~GpibPoke() {}
00195 };
00196
00197
00198
00199
00200
00201
00202
00203 class GpibSta:public Umi::UmiControl {
00204 u_int _iStb;
00205 u_int _fMss;
00206 u_int _fNew;
00207 public:
00208 friend xistream& xunmarsh(xistream &xi, GpibSta&);
00209 friend xostream& xmarshal(xostream &xo, const GpibSta&);
00210 #ifndef _MM_NO_IOSTREAM
00211 friend std::ostream& operator<<(std::ostream &os, const GpibSta&);
00212 #endif
00213 u_int iStb() const { return _iStb; }
00214 GpibSta& iStb(u_int __iStb) { _iStb=__iStb ; return *this; }
00215 bool fMss() const { return _fMss!= 0 ; }
00216 GpibSta& fMss(bool __fMss) { _fMss=__fMss ; return *this; }
00217 bool fNew() const { return _fNew!= 0 ; }
00218 GpibSta& fNew(bool __fNew) { _fNew=__fNew ; return *this; }
00219
00220 GpibSta(int e=0x7, size_t s=0);
00221 ~GpibSta() {}
00222 };
00223
00224
00225
00226
00227
00228
00229
00230 class GpibTrf:public Umi::UmiControl {
00231 UmiTime _tiTmo;
00232 u_int _iTrans;
00233 u_int _fLast;
00234 public:
00235 friend xistream& xunmarsh(xistream &xi, GpibTrf&);
00236 friend xostream& xmarshal(xostream &xo, const GpibTrf&);
00237 #ifndef _MM_NO_IOSTREAM
00238 friend std::ostream& operator<<(std::ostream &os, const GpibTrf&);
00239 #endif
00240 const UmiTime& tiTmo() const { return _tiTmo; }
00241 void tiTmo( const UmiTime& __tiTmo) {_tiTmo=__tiTmo ; }
00242 u_int iTrans() const { return _iTrans; }
00243 GpibTrf& iTrans(u_int __iTrans) { _iTrans=__iTrans ; return *this; }
00244 bool fLast() const { return _fLast!= 0 ; }
00245 GpibTrf& fLast(bool __fLast) { _fLast=__fLast ; return *this; }
00246
00247 GpibTrf(int e=0x8, size_t s=0);
00248 ~GpibTrf() {}
00249 };
00250
00251
00252
00253
00254
00255
00256
00257 class GpibInit:public Umi::UmiControl {
00258 GpibIfConf _ifConfig;
00259 public:
00260 friend xistream& xunmarsh(xistream &xi, GpibInit&);
00261 friend xostream& xmarshal(xostream &xo, const GpibInit&);
00262 #ifndef _MM_NO_IOSTREAM
00263 friend std::ostream& operator<<(std::ostream &os, const GpibInit&);
00264 #endif
00265 const GpibIfConf& ifConfig() const { return _ifConfig; }
00266 void ifConfig( const GpibIfConf& __ifConfig) {_ifConfig=__ifConfig ; }
00267
00268 GpibInit(int e=0x9, size_t s=0);
00269 ~GpibInit() {}
00270 };
00271
00272
00273
00274
00275
00276
00277
00278 class GpibFini:public Umi::UmiControl {
00279 public:
00280 friend xistream& xunmarsh(xistream &xi, GpibFini&);
00281 friend xostream& xmarshal(xostream &xo, const GpibFini&);
00282 #ifndef _MM_NO_IOSTREAM
00283 friend std::ostream& operator<<(std::ostream &os, const GpibFini&);
00284 #endif
00285
00286 GpibFini(int e=0xa, size_t s=0);
00287 ~GpibFini() {}
00288 };
00289
00290
00291
00292
00293
00294
00295
00296 class GpibCmd:public GpibTrf {
00297 public:
00298 friend xistream& xunmarsh(xistream &xi, GpibCmd&);
00299 friend xostream& xmarshal(xostream &xo, const GpibCmd&);
00300 #ifndef _MM_NO_IOSTREAM
00301 friend std::ostream& operator<<(std::ostream &os, const GpibCmd&);
00302 #endif
00303
00304 GpibCmd(int e=0xb, size_t s=0);
00305 ~GpibCmd() {}
00306 };
00307
00308
00309
00310
00311
00312
00313
00314 class GpibCwr:public GpibTrf {
00315 GpibTermOut _termOut;
00316 public:
00317 friend xistream& xunmarsh(xistream &xi, GpibCwr&);
00318 friend xostream& xmarshal(xostream &xo, const GpibCwr&);
00319 #ifndef _MM_NO_IOSTREAM
00320 friend std::ostream& operator<<(std::ostream &os, const GpibCwr&);
00321 #endif
00322 const GpibTermOut& termOut() const { return _termOut; }
00323 void termOut( const GpibTermOut& __termOut) {_termOut=__termOut ; }
00324
00325 GpibCwr(int e=0xc, size_t s=0);
00326 ~GpibCwr() {}
00327 };
00328
00329
00330
00331
00332
00333
00334
00335 class GpibCrd:public Umi::UmiControl {
00336 GpibTermIn _termIn;
00337 UmiTime _tiTmo;
00338 u_int _cMax;
00339 public:
00340 friend xistream& xunmarsh(xistream &xi, GpibCrd&);
00341 friend xostream& xmarshal(xostream &xo, const GpibCrd&);
00342 #ifndef _MM_NO_IOSTREAM
00343 friend std::ostream& operator<<(std::ostream &os, const GpibCrd&);
00344 #endif
00345 const GpibTermIn& termIn() const { return _termIn; }
00346 void termIn( const GpibTermIn& __termIn) {_termIn=__termIn ; }
00347 const UmiTime& tiTmo() const { return _tiTmo; }
00348 void tiTmo( const UmiTime& __tiTmo) {_tiTmo=__tiTmo ; }
00349 u_int cMax() const { return _cMax; }
00350 GpibCrd& cMax(u_int __cMax) { _cMax=__cMax ; return *this; }
00351
00352 GpibCrd(int e=0xd, size_t s=0);
00353 ~GpibCrd() {}
00354 };
00355
00356
00357
00358
00359
00360
00361
00362 class GpibResp:public Umi::UmiControl {
00363 u_int _eErr;
00364 u_int _iErr;
00365 u_int _fStat;
00366 public:
00367 friend xistream& xunmarsh(xistream &xi, GpibResp&);
00368 friend xostream& xmarshal(xostream &xo, const GpibResp&);
00369 #ifndef _MM_NO_IOSTREAM
00370 friend std::ostream& operator<<(std::ostream &os, const GpibResp&);
00371 #endif
00372 u_int eErr() const { return _eErr; }
00373 GpibResp& eErr(u_int __eErr) { _eErr=__eErr ; return *this; }
00374 u_int iErr() const { return _iErr; }
00375 GpibResp& iErr(u_int __iErr) { _iErr=__iErr ; return *this; }
00376 u_int fStat() const { return _fStat; }
00377 GpibResp& fStat(u_int __fStat) { _fStat=__fStat ; return *this; }
00378
00379 GpibResp(int e=0xe, size_t s=0);
00380 ~GpibResp() {}
00381 };
00382
00383
00384
00385
00386
00387
00388
00389 class GpibRdResp:public GpibResp {
00390 u_int _fDel;
00391 u_int _fDelEnd;
00392 public:
00393 friend xistream& xunmarsh(xistream &xi, GpibRdResp&);
00394 friend xostream& xmarshal(xostream &xo, const GpibRdResp&);
00395 #ifndef _MM_NO_IOSTREAM
00396 friend std::ostream& operator<<(std::ostream &os, const GpibRdResp&);
00397 #endif
00398 bool fDel() const { return _fDel!= 0 ; }
00399 GpibRdResp& fDel(bool __fDel) { _fDel=__fDel ; return *this; }
00400 bool fDelEnd() const { return _fDelEnd!= 0 ; }
00401 GpibRdResp& fDelEnd(bool __fDelEnd) { _fDelEnd=__fDelEnd ; return *this; }
00402
00403 GpibRdResp(int e=0xf, size_t s=0);
00404 ~GpibRdResp() {}
00405 };
00406
00407
00408
00409
00410
00411
00412
00413 class GpibWrResp:public GpibResp {
00414 u_int _cTrans;
00415 public:
00416 friend xistream& xunmarsh(xistream &xi, GpibWrResp&);
00417 friend xostream& xmarshal(xostream &xo, const GpibWrResp&);
00418 #ifndef _MM_NO_IOSTREAM
00419 friend std::ostream& operator<<(std::ostream &os, const GpibWrResp&);
00420 #endif
00421 u_int cTrans() const { return _cTrans; }
00422 GpibWrResp& cTrans(u_int __cTrans) { _cTrans=__cTrans ; return *this; }
00423
00424 GpibWrResp(int e=0x10, size_t s=0);
00425 ~GpibWrResp() {}
00426 };
00427
00428
00429
00430
00431
00432
00433
00434 class GpibInfoResp:public GpibResp {
00435 GpibInfo _info;
00436 public:
00437 friend xistream& xunmarsh(xistream &xi, GpibInfoResp&);
00438 friend xostream& xmarshal(xostream &xo, const GpibInfoResp&);
00439 #ifndef _MM_NO_IOSTREAM
00440 friend std::ostream& operator<<(std::ostream &os, const GpibInfoResp&);
00441 #endif
00442 const GpibInfo& info() const { return _info; }
00443 void info( const GpibInfo& __info) {_info=__info ; }
00444
00445 GpibInfoResp(int e=0x11, size_t s=0);
00446 ~GpibInfoResp() {}
00447 };
00448
00449
00450
00451
00452
00453
00454
00455 class GpibIfc:public Umi::UmiControl {
00456 UmiTime _ti;
00457 public:
00458 friend xistream& xunmarsh(xistream &xi, GpibIfc&);
00459 friend xostream& xmarshal(xostream &xo, const GpibIfc&);
00460 #ifndef _MM_NO_IOSTREAM
00461 friend std::ostream& operator<<(std::ostream &os, const GpibIfc&);
00462 #endif
00463 const UmiTime& ti() const { return _ti; }
00464 void ti( const UmiTime& __ti) {_ti=__ti ; }
00465
00466 GpibIfc(int e=0x12, size_t s=0);
00467 ~GpibIfc() {}
00468 };
00469
00470
00471
00472
00473
00474
00475
00476 class GpibRen:public Umi::UmiControl {
00477 u_int _fSet;
00478 public:
00479 friend xistream& xunmarsh(xistream &xi, GpibRen&);
00480 friend xostream& xmarshal(xostream &xo, const GpibRen&);
00481 #ifndef _MM_NO_IOSTREAM
00482 friend std::ostream& operator<<(std::ostream &os, const GpibRen&);
00483 #endif
00484 bool fSet() const { return _fSet!= 0 ; }
00485 GpibRen& fSet(bool __fSet) { _fSet=__fSet ; return *this; }
00486
00487 GpibRen(int e=0x13, size_t s=0);
00488 ~GpibRen() {}
00489 };
00490
00491
00492
00493
00494
00495
00496
00497 class GpibWait:public Umi::UmiControl {
00498 UmiTime _ti;
00499 u_int _fWait;
00500 u_int _fClear;
00501 public:
00502 friend xistream& xunmarsh(xistream &xi, GpibWait&);
00503 friend xostream& xmarshal(xostream &xo, const GpibWait&);
00504 #ifndef _MM_NO_IOSTREAM
00505 friend std::ostream& operator<<(std::ostream &os, const GpibWait&);
00506 #endif
00507 const UmiTime& ti() const { return _ti; }
00508 void ti( const UmiTime& __ti) {_ti=__ti ; }
00509 u_int fWait() const { return _fWait; }
00510 GpibWait& fWait(u_int __fWait) { _fWait=__fWait ; return *this; }
00511 u_int fClear() const { return _fClear; }
00512 GpibWait& fClear(u_int __fClear) { _fClear=__fClear ; return *this; }
00513
00514 GpibWait(int e=0x14, size_t s=0);
00515 ~GpibWait() {}
00516 };
00517
00518
00519
00520
00521
00522
00523
00524 class GpibLnReq:public Umi::UmiControl {
00525 public:
00526 friend xistream& xunmarsh(xistream &xi, GpibLnReq&);
00527 friend xostream& xmarshal(xostream &xo, const GpibLnReq&);
00528 #ifndef _MM_NO_IOSTREAM
00529 friend std::ostream& operator<<(std::ostream &os, const GpibLnReq&);
00530 #endif
00531
00532 GpibLnReq(int e=0x15, size_t s=0);
00533 ~GpibLnReq() {}
00534 };
00535
00536
00537
00538
00539
00540
00541
00542 class GpibLnResp:public GpibResp {
00543 u_int _fStat;
00544 public:
00545 friend xistream& xunmarsh(xistream &xi, GpibLnResp&);
00546 friend xostream& xmarshal(xostream &xo, const GpibLnResp&);
00547 #ifndef _MM_NO_IOSTREAM
00548 friend std::ostream& operator<<(std::ostream &os, const GpibLnResp&);
00549 #endif
00550 u_int fStat() const { return _fStat; }
00551 GpibLnResp& fStat(u_int __fStat) { _fStat=__fStat ; return *this; }
00552
00553 GpibLnResp(int e=0x16, size_t s=0);
00554 ~GpibLnResp() {}
00555 };
00556
00557
00558
00559
00560
00561
00562
00563 class GpibCsm:public Umi::UmiControl {
00564 u_int _fCa;
00565 u_int _fTcs;
00566 public:
00567 friend xistream& xunmarsh(xistream &xi, GpibCsm&);
00568 friend xostream& xmarshal(xostream &xo, const GpibCsm&);
00569 #ifndef _MM_NO_IOSTREAM
00570 friend std::ostream& operator<<(std::ostream &os, const GpibCsm&);
00571 #endif
00572 bool fCa() const { return _fCa!= 0 ; }
00573 GpibCsm& fCa(bool __fCa) { _fCa=__fCa ; return *this; }
00574 bool fTcs() const { return _fTcs!= 0 ; }
00575 GpibCsm& fTcs(bool __fTcs) { _fTcs=__fTcs ; return *this; }
00576
00577 GpibCsm(int e=0x17, size_t s=0);
00578 ~GpibCsm() {}
00579 };
00580
00581
00582
00583
00584
00585
00586
00587 class GpibIst:public Umi::UmiControl {
00588 u_int _fIst;
00589 public:
00590 friend xistream& xunmarsh(xistream &xi, GpibIst&);
00591 friend xostream& xmarshal(xostream &xo, const GpibIst&);
00592 #ifndef _MM_NO_IOSTREAM
00593 friend std::ostream& operator<<(std::ostream &os, const GpibIst&);
00594 #endif
00595 bool fIst() const { return _fIst!= 0 ; }
00596 GpibIst& fIst(bool __fIst) { _fIst=__fIst ; return *this; }
00597
00598 GpibIst(int e=0x18, size_t s=0);
00599 ~GpibIst() {}
00600 };
00601
00602
00603
00604
00605
00606
00607
00608 class GpibRtl:public Umi::UmiControl {
00609 public:
00610 friend xistream& xunmarsh(xistream &xi, GpibRtl&);
00611 friend xostream& xmarshal(xostream &xo, const GpibRtl&);
00612 #ifndef _MM_NO_IOSTREAM
00613 friend std::ostream& operator<<(std::ostream &os, const GpibRtl&);
00614 #endif
00615
00616 GpibRtl(int e=0x19, size_t s=0);
00617 ~GpibRtl() {}
00618 };
00619
00620
00621
00622
00623
00624
00625
00626 class GpibPpc:public Umi::UmiControl {
00627 u_int _fEnable;
00628 u_int _fSPPP;
00629 public:
00630 friend xistream& xunmarsh(xistream &xi, GpibPpc&);
00631 friend xostream& xmarshal(xostream &xo, const GpibPpc&);
00632 #ifndef _MM_NO_IOSTREAM
00633 friend std::ostream& operator<<(std::ostream &os, const GpibPpc&);
00634 #endif
00635 bool fEnable() const { return _fEnable!= 0 ; }
00636 GpibPpc& fEnable(bool __fEnable) { _fEnable=__fEnable ; return *this; }
00637 u_int fSPPP() const { return _fSPPP; }
00638 GpibPpc& fSPPP(u_int __fSPPP) { _fSPPP=__fSPPP ; return *this; }
00639
00640 GpibPpc(int e=0x1a, size_t s=0);
00641 ~GpibPpc() {}
00642 };
00643
00644
00645
00646
00647
00648
00649
00650 class GpibRpp:public Umi::UmiControl {
00651 public:
00652 friend xistream& xunmarsh(xistream &xi, GpibRpp&);
00653 friend xostream& xmarshal(xostream &xo, const GpibRpp&);
00654 #ifndef _MM_NO_IOSTREAM
00655 friend std::ostream& operator<<(std::ostream &os, const GpibRpp&);
00656 #endif
00657
00658 GpibRpp(int e=0x1b, size_t s=0);
00659 ~GpibRpp() {}
00660 };
00661
00662
00663
00664
00665
00666
00667
00668 class GpibRppResp:public GpibResp {
00669 u_int _fPpr;
00670 public:
00671 friend xistream& xunmarsh(xistream &xi, GpibRppResp&);
00672 friend xostream& xmarshal(xostream &xo, const GpibRppResp&);
00673 #ifndef _MM_NO_IOSTREAM
00674 friend std::ostream& operator<<(std::ostream &os, const GpibRppResp&);
00675 #endif
00676 u_int fPpr() const { return _fPpr; }
00677 GpibRppResp& fPpr(u_int __fPpr) { _fPpr=__fPpr ; return *this; }
00678
00679 GpibRppResp(int e=0x1c, size_t s=0);
00680 ~GpibRppResp() {}
00681 };
00682
00683
00684
00685
00686
00687
00688
00689 class GpibDeviceStatus:public Umi::UmiControl {
00690 u_int _fStat;
00691 public:
00692 friend xistream& xunmarsh(xistream &xi, GpibDeviceStatus&);
00693 friend xostream& xmarshal(xostream &xo, const GpibDeviceStatus&);
00694 #ifndef _MM_NO_IOSTREAM
00695 friend std::ostream& operator<<(std::ostream &os, const GpibDeviceStatus&);
00696 #endif
00697 u_int fStat() const { return _fStat; }
00698 GpibDeviceStatus& fStat(u_int __fStat) { _fStat=__fStat ; return *this; }
00699
00700 GpibDeviceStatus(int e=0x1d, size_t s=0);
00701 ~GpibDeviceStatus() {}
00702 };
00703
00704
00705
00706
00707
00708
00709
00710 class GpibDeviceOutput:public Umi::UmiControl {
00711 u_int _fEND;
00712 public:
00713 friend xistream& xunmarsh(xistream &xi, GpibDeviceOutput&);
00714 friend xostream& xmarshal(xostream &xo, const GpibDeviceOutput&);
00715 #ifndef _MM_NO_IOSTREAM
00716 friend std::ostream& operator<<(std::ostream &os, const GpibDeviceOutput&);
00717 #endif
00718 bool fEND() const { return _fEND!= 0 ; }
00719 GpibDeviceOutput& fEND(bool __fEND) { _fEND=__fEND ; return *this; }
00720
00721 GpibDeviceOutput(int e=0x1e, size_t s=0);
00722 ~GpibDeviceOutput() {}
00723 };
00724
00725
00726
00727
00728
00729
00730
00731 class GpibDeviceInitAck:public Umi::UmiControl {
00732 public:
00733 friend xistream& xunmarsh(xistream &xi, GpibDeviceInitAck&);
00734 friend xostream& xmarshal(xostream &xo, const GpibDeviceInitAck&);
00735 #ifndef _MM_NO_IOSTREAM
00736 friend std::ostream& operator<<(std::ostream &os, const GpibDeviceInitAck&);
00737 #endif
00738
00739 GpibDeviceInitAck(int e=0x1f, size_t s=0);
00740 ~GpibDeviceInitAck() {}
00741 };
00742
00743
00744
00745
00746
00747
00748
00749 class GpibDeviceInput:public GpibDeviceStatus {
00750 u_int _fEND;
00751 public:
00752 friend xistream& xunmarsh(xistream &xi, GpibDeviceInput&);
00753 friend xostream& xmarshal(xostream &xo, const GpibDeviceInput&);
00754 #ifndef _MM_NO_IOSTREAM
00755 friend std::ostream& operator<<(std::ostream &os, const GpibDeviceInput&);
00756 #endif
00757 bool fEND() const { return _fEND!= 0 ; }
00758 GpibDeviceInput& fEND(bool __fEND) { _fEND=__fEND ; return *this; }
00759
00760 GpibDeviceInput(int e=0x20, size_t s=0);
00761 ~GpibDeviceInput() {}
00762 };
00763
00764
00765
00766
00767
00768
00769
00770 class GpibDeviceEvent:public GpibDeviceStatus {
00771 u_int _eEvent;
00772 public:
00773 friend xistream& xunmarsh(xistream &xi, GpibDeviceEvent&);
00774 friend xostream& xmarshal(xostream &xo, const GpibDeviceEvent&);
00775 #ifndef _MM_NO_IOSTREAM
00776 friend std::ostream& operator<<(std::ostream &os, const GpibDeviceEvent&);
00777 #endif
00778 u_int eEvent() const { return _eEvent; }
00779 GpibDeviceEvent& eEvent(u_int __eEvent) { _eEvent=__eEvent ; return *this; }
00780
00781 GpibDeviceEvent(int e=0x21, size_t s=0);
00782 ~GpibDeviceEvent() {}
00783 };
00784
00785
00786
00787
00788
00789
00790
00791 class GpibDeviceStatusReport:public Umi::UmiControl {
00792 u_int _fStb;
00793 u_int _fSre;
00794 u_int _fForce;
00795 public:
00796 friend xistream& xunmarsh(xistream &xi, GpibDeviceStatusReport&);
00797 friend xostream& xmarshal(xostream &xo, const GpibDeviceStatusReport&);
00798 #ifndef _MM_NO_IOSTREAM
00799 friend std::ostream& operator<<(std::ostream &os, const GpibDeviceStatusReport&);
00800 #endif
00801 u_int fStb() const { return _fStb; }
00802 GpibDeviceStatusReport& fStb(u_int __fStb) { _fStb=__fStb ; return *this; }
00803 u_int fSre() const { return _fSre; }
00804 GpibDeviceStatusReport& fSre(u_int __fSre) { _fSre=__fSre ; return *this; }
00805 u_int fForce() const { return _fForce; }
00806 GpibDeviceStatusReport& fForce(u_int __fForce) { _fForce=__fForce ; return *this; }
00807
00808 GpibDeviceStatusReport(int e=0x22, size_t s=0);
00809 ~GpibDeviceStatusReport() {}
00810 };
00811
00812 inline bool isGpibNop(const Umi::UmiControl *puc) { return ((puc->eType() & 0x4)==0x4); }
00813 extern GpibNop* pGpibNop(Umi::UmiControl *);
00814 inline const GpibNop* pGpibNop(const Umi::UmiControl *puc) { return pGpibNop(const_cast<Umi::UmiControl*>(puc)); }
00815 inline bool isGpibPeek(const Umi::UmiControl *puc) { return ((puc->eType() & 0x5)==0x5); }
00816 extern GpibPeek* pGpibPeek(Umi::UmiControl *);
00817 inline const GpibPeek* pGpibPeek(const Umi::UmiControl *puc) { return pGpibPeek(const_cast<Umi::UmiControl*>(puc)); }
00818 inline bool isGpibPoke(const Umi::UmiControl *puc) { return ((puc->eType() & 0x6)==0x6); }
00819 extern GpibPoke* pGpibPoke(Umi::UmiControl *);
00820 inline const GpibPoke* pGpibPoke(const Umi::UmiControl *puc) { return pGpibPoke(const_cast<Umi::UmiControl*>(puc)); }
00821 inline bool isGpibSta(const Umi::UmiControl *puc) { return ((puc->eType() & 0x7)==0x7); }
00822 extern GpibSta* pGpibSta(Umi::UmiControl *);
00823 inline const GpibSta* pGpibSta(const Umi::UmiControl *puc) { return pGpibSta(const_cast<Umi::UmiControl*>(puc)); }
00824 inline bool isGpibTrf(const Umi::UmiControl *puc) { return ((puc->eType() & 0x8)==0x8); }
00825 extern GpibTrf* pGpibTrf(Umi::UmiControl *);
00826 inline const GpibTrf* pGpibTrf(const Umi::UmiControl *puc) { return pGpibTrf(const_cast<Umi::UmiControl*>(puc)); }
00827 inline bool isGpibInit(const Umi::UmiControl *puc) { return ((puc->eType() & 0x9)==0x9); }
00828 extern GpibInit* pGpibInit(Umi::UmiControl *);
00829 inline const GpibInit* pGpibInit(const Umi::UmiControl *puc) { return pGpibInit(const_cast<Umi::UmiControl*>(puc)); }
00830 inline bool isGpibFini(const Umi::UmiControl *puc) { return ((puc->eType() & 0xa)==0xa); }
00831 extern GpibFini* pGpibFini(Umi::UmiControl *);
00832 inline const GpibFini* pGpibFini(const Umi::UmiControl *puc) { return pGpibFini(const_cast<Umi::UmiControl*>(puc)); }
00833 inline bool isGpibCmd(const Umi::UmiControl *puc) { return ((puc->eType() & 0xb)==0xb); }
00834 extern GpibCmd* pGpibCmd(Umi::UmiControl *);
00835 inline const GpibCmd* pGpibCmd(const Umi::UmiControl *puc) { return pGpibCmd(const_cast<Umi::UmiControl*>(puc)); }
00836 inline bool isGpibCwr(const Umi::UmiControl *puc) { return ((puc->eType() & 0xc)==0xc); }
00837 extern GpibCwr* pGpibCwr(Umi::UmiControl *);
00838 inline const GpibCwr* pGpibCwr(const Umi::UmiControl *puc) { return pGpibCwr(const_cast<Umi::UmiControl*>(puc)); }
00839 inline bool isGpibCrd(const Umi::UmiControl *puc) { return ((puc->eType() & 0xd)==0xd); }
00840 extern GpibCrd* pGpibCrd(Umi::UmiControl *);
00841 inline const GpibCrd* pGpibCrd(const Umi::UmiControl *puc) { return pGpibCrd(const_cast<Umi::UmiControl*>(puc)); }
00842 inline bool isGpibResp(const Umi::UmiControl *puc) { return ((puc->eType() & 0xe)==0xe); }
00843 extern GpibResp* pGpibResp(Umi::UmiControl *);
00844 inline const GpibResp* pGpibResp(const Umi::UmiControl *puc) { return pGpibResp(const_cast<Umi::UmiControl*>(puc)); }
00845 inline bool isGpibRdResp(const Umi::UmiControl *puc) { return ((puc->eType() & 0xf)==0xf); }
00846 extern GpibRdResp* pGpibRdResp(Umi::UmiControl *);
00847 inline const GpibRdResp* pGpibRdResp(const Umi::UmiControl *puc) { return pGpibRdResp(const_cast<Umi::UmiControl*>(puc)); }
00848 inline bool isGpibWrResp(const Umi::UmiControl *puc) { return ((puc->eType() & 0x10)==0x10); }
00849 extern GpibWrResp* pGpibWrResp(Umi::UmiControl *);
00850 inline const GpibWrResp* pGpibWrResp(const Umi::UmiControl *puc) { return pGpibWrResp(const_cast<Umi::UmiControl*>(puc)); }
00851 inline bool isGpibInfoResp(const Umi::UmiControl *puc) { return ((puc->eType() & 0x11)==0x11); }
00852 extern GpibInfoResp* pGpibInfoResp(Umi::UmiControl *);
00853 inline const GpibInfoResp* pGpibInfoResp(const Umi::UmiControl *puc) { return pGpibInfoResp(const_cast<Umi::UmiControl*>(puc)); }
00854 inline bool isGpibIfc(const Umi::UmiControl *puc) { return ((puc->eType() & 0x12)==0x12); }
00855 extern GpibIfc* pGpibIfc(Umi::UmiControl *);
00856 inline const GpibIfc* pGpibIfc(const Umi::UmiControl *puc) { return pGpibIfc(const_cast<Umi::UmiControl*>(puc)); }
00857 inline bool isGpibRen(const Umi::UmiControl *puc) { return ((puc->eType() & 0x13)==0x13); }
00858 extern GpibRen* pGpibRen(Umi::UmiControl *);
00859 inline const GpibRen* pGpibRen(const Umi::UmiControl *puc) { return pGpibRen(const_cast<Umi::UmiControl*>(puc)); }
00860 inline bool isGpibWait(const Umi::UmiControl *puc) { return ((puc->eType() & 0x14)==0x14); }
00861 extern GpibWait* pGpibWait(Umi::UmiControl *);
00862 inline const GpibWait* pGpibWait(const Umi::UmiControl *puc) { return pGpibWait(const_cast<Umi::UmiControl*>(puc)); }
00863 inline bool isGpibLnReq(const Umi::UmiControl *puc) { return ((puc->eType() & 0x15)==0x15); }
00864 extern GpibLnReq* pGpibLnReq(Umi::UmiControl *);
00865 inline const GpibLnReq* pGpibLnReq(const Umi::UmiControl *puc) { return pGpibLnReq(const_cast<Umi::UmiControl*>(puc)); }
00866 inline bool isGpibLnResp(const Umi::UmiControl *puc) { return ((puc->eType() & 0x16)==0x16); }
00867 extern GpibLnResp* pGpibLnResp(Umi::UmiControl *);
00868 inline const GpibLnResp* pGpibLnResp(const Umi::UmiControl *puc) { return pGpibLnResp(const_cast<Umi::UmiControl*>(puc)); }
00869 inline bool isGpibCsm(const Umi::UmiControl *puc) { return ((puc->eType() & 0x17)==0x17); }
00870 extern GpibCsm* pGpibCsm(Umi::UmiControl *);
00871 inline const GpibCsm* pGpibCsm(const Umi::UmiControl *puc) { return pGpibCsm(const_cast<Umi::UmiControl*>(puc)); }
00872 inline bool isGpibIst(const Umi::UmiControl *puc) { return ((puc->eType() & 0x18)==0x18); }
00873 extern GpibIst* pGpibIst(Umi::UmiControl *);
00874 inline const GpibIst* pGpibIst(const Umi::UmiControl *puc) { return pGpibIst(const_cast<Umi::UmiControl*>(puc)); }
00875 inline bool isGpibRtl(const Umi::UmiControl *puc) { return ((puc->eType() & 0x19)==0x19); }
00876 extern GpibRtl* pGpibRtl(Umi::UmiControl *);
00877 inline const GpibRtl* pGpibRtl(const Umi::UmiControl *puc) { return pGpibRtl(const_cast<Umi::UmiControl*>(puc)); }
00878 inline bool isGpibPpc(const Umi::UmiControl *puc) { return ((puc->eType() & 0x1a)==0x1a); }
00879 extern GpibPpc* pGpibPpc(Umi::UmiControl *);
00880 inline const GpibPpc* pGpibPpc(const Umi::UmiControl *puc) { return pGpibPpc(const_cast<Umi::UmiControl*>(puc)); }
00881 inline bool isGpibRpp(const Umi::UmiControl *puc) { return ((puc->eType() & 0x1b)==0x1b); }
00882 extern GpibRpp* pGpibRpp(Umi::UmiControl *);
00883 inline const GpibRpp* pGpibRpp(const Umi::UmiControl *puc) { return pGpibRpp(const_cast<Umi::UmiControl*>(puc)); }
00884 inline bool isGpibRppResp(const Umi::UmiControl *puc) { return ((puc->eType() & 0x1c)==0x1c); }
00885 extern GpibRppResp* pGpibRppResp(Umi::UmiControl *);
00886 inline const GpibRppResp* pGpibRppResp(const Umi::UmiControl *puc) { return pGpibRppResp(const_cast<Umi::UmiControl*>(puc)); }
00887 inline bool isGpibDeviceStatus(const Umi::UmiControl *puc) { return ((puc->eType() & 0x1d)==0x1d); }
00888 extern GpibDeviceStatus* pGpibDeviceStatus(Umi::UmiControl *);
00889 inline const GpibDeviceStatus* pGpibDeviceStatus(const Umi::UmiControl *puc) { return pGpibDeviceStatus(const_cast<Umi::UmiControl*>(puc)); }
00890 inline bool isGpibDeviceOutput(const Umi::UmiControl *puc) { return ((puc->eType() & 0x1e)==0x1e); }
00891 extern GpibDeviceOutput* pGpibDeviceOutput(Umi::UmiControl *);
00892 inline const GpibDeviceOutput* pGpibDeviceOutput(const Umi::UmiControl *puc) { return pGpibDeviceOutput(const_cast<Umi::UmiControl*>(puc)); }
00893 inline bool isGpibDeviceInitAck(const Umi::UmiControl *puc) { return ((puc->eType() & 0x1f)==0x1f); }
00894 extern GpibDeviceInitAck* pGpibDeviceInitAck(Umi::UmiControl *);
00895 inline const GpibDeviceInitAck* pGpibDeviceInitAck(const Umi::UmiControl *puc) { return pGpibDeviceInitAck(const_cast<Umi::UmiControl*>(puc)); }
00896 inline bool isGpibDeviceInput(const Umi::UmiControl *puc) { return ((puc->eType() & 0x20)==0x20); }
00897 extern GpibDeviceInput* pGpibDeviceInput(Umi::UmiControl *);
00898 inline const GpibDeviceInput* pGpibDeviceInput(const Umi::UmiControl *puc) { return pGpibDeviceInput(const_cast<Umi::UmiControl*>(puc)); }
00899 inline bool isGpibDeviceEvent(const Umi::UmiControl *puc) { return ((puc->eType() & 0x21)==0x21); }
00900 extern GpibDeviceEvent* pGpibDeviceEvent(Umi::UmiControl *);
00901 inline const GpibDeviceEvent* pGpibDeviceEvent(const Umi::UmiControl *puc) { return pGpibDeviceEvent(const_cast<Umi::UmiControl*>(puc)); }
00902 inline bool isGpibDeviceStatusReport(const Umi::UmiControl *puc) { return ((puc->eType() & 0x22)==0x22); }
00903 extern GpibDeviceStatusReport* pGpibDeviceStatusReport(Umi::UmiControl *);
00904 inline const GpibDeviceStatusReport* pGpibDeviceStatusReport(const Umi::UmiControl *puc) { return pGpibDeviceStatusReport(const_cast<Umi::UmiControl*>(puc)); }
00905
00906 #define MSG_GpibNop 0x4
00907 #define MSG_GpibPeek 0x5
00908 #define MSG_GpibPoke 0x6
00909 #define MSG_GpibSta 0x7
00910 #define MSG_GpibTrf 0x8
00911 #define MSG_GpibInit 0x9
00912 #define MSG_GpibFini 0xa
00913 #define MSG_GpibCmd 0xb
00914 #define MSG_GpibCwr 0xc
00915 #define MSG_GpibCrd 0xd
00916 #define MSG_GpibResp 0xe
00917 #define MSG_GpibRdResp 0xf
00918 #define MSG_GpibWrResp 0x10
00919 #define MSG_GpibInfoResp 0x11
00920 #define MSG_GpibIfc 0x12
00921 #define MSG_GpibRen 0x13
00922 #define MSG_GpibWait 0x14
00923 #define MSG_GpibLnReq 0x15
00924 #define MSG_GpibLnResp 0x16
00925 #define MSG_GpibCsm 0x17
00926 #define MSG_GpibIst 0x18
00927 #define MSG_GpibRtl 0x19
00928 #define MSG_GpibPpc 0x1a
00929 #define MSG_GpibRpp 0x1b
00930 #define MSG_GpibRppResp 0x1c
00931 #define MSG_GpibDeviceStatus 0x1d
00932 #define MSG_GpibDeviceOutput 0x1e
00933 #define MSG_GpibDeviceInitAck 0x1f
00934 #define MSG_GpibDeviceInput 0x20
00935 #define MSG_GpibDeviceEvent 0x21
00936 #define MSG_GpibDeviceStatusReport 0x22
00937
00938 class Gpib_gco_Proto:public Umi::UmiProto {
00939 public:
00940 xistream& unmarsh(xistream &, const Umi::UmiControl &, Umi::UmiControl *) const;
00941 xostream& marshal(xostream &, const Umi::UmiControl *) const ;
00942 Gpib_gco_Proto();
00943 ~Gpib_gco_Proto();
00944 };
00945
00946 class Gpib_gti_Proto:public Umi::UmiProto {
00947 public:
00948 xistream& unmarsh(xistream &, const Umi::UmiControl &, Umi::UmiControl *) const;
00949 xostream& marshal(xostream &, const Umi::UmiControl *) const ;
00950 Gpib_gti_Proto();
00951 ~Gpib_gti_Proto();
00952 };
00953
00954 class Gpib_gdi_Proto:public Umi::UmiProto {
00955 public:
00956 xistream& unmarsh(xistream &, const Umi::UmiControl &, Umi::UmiControl *) const;
00957 xostream& marshal(xostream &, const Umi::UmiControl *) const ;
00958 Gpib_gdi_Proto();
00959 ~Gpib_gdi_Proto();
00960 };
00961
00962 #define PROTID_gco "(/Int1:bool,Int1:u_int,Int1:bool,Int1:u_int/)(/Int1:char,Int1:bool,Int1:bool,Int1:bool,Int1:bool/)(/Int1:u_int,Int1:bool,Int1:bool,Int1:char/)(/Int4:u_int,Int1:bool/(/Int4:u_int,Int4:u_int/))((/Int4:u_int,Int1:bool/(/Int4:u_int,Int4:u_int/))//)((/Int4:u_int,Int1:bool/(/Int4:u_int,Int4:u_int/))//(/Int1:char,Int1:bool,Int1:bool,Int1:bool,Int1:bool/))(/Int4:u_int/(/Int1:u_int,Int1:bool,Int1:bool,Int1:char/),(/Int4:u_int,Int4:u_int/))(//(/Int1:bool,Int1:u_int,Int1:bool,Int1:u_int/))(//)(/Int4:u_int,Int4:u_int,Int4:u_int/)((/Int4:u_int,Int4:u_int,Int4:u_int/)/Int1:bool,Int1:bool/)((/Int4:u_int,Int4:u_int,Int4:u_int/)/Int4:u_int/)(/Int1:u_int,Int4:u_int,Int4:u_int/)((/Int4:u_int,Int4:u_int,Int4:u_int/)//(/Int1:u_int,Int4:u_int,Int4:u_int/))(//(/Int4:u_int,Int4:u_int/))(/Int4:u_int,Int4:u_int/(/Int4:u_int,Int4:u_int/))(/Int1:bool/)(/Int2:u_int,Int1:bool,Int1:bool/)(//)((/Int4:u_int,Int4:u_int,Int4:u_int/)/Int4:u_int/)(/Int1:bool,Int1:bool/)(/Int1:bool/)(//)(/Int1:bool,Int1:u_int/)(//)((/Int4:u_int,Int4:u_int,Int4:u_int/)/Int1:u_int/)"
00963
00964 #define PROTID_gti "(/Int1:u_int/)((/Int1:u_int/)/Int1:u_int/)(//)(/Int4:u_int,Int4:u_int,Int4:u_int/)((/Int4:u_int,Int4:u_int,Int4:u_int/)//(/Int1:u_int,Int4:u_int,Int4:u_int/))"
00965
00966 #define PROTID_gdi "(/Int4:u_int/)((/Int4:u_int/)/Int1:bool/)((/Int4:u_int/)/Int4:u_int/)(/Int1:bool/)(//)(/Int4:u_int,Int4:u_int,Int4:u_int/)"
00967 }
00968 #endif