#include <device.hh>
Public Member Functions | |
virtual | ~Device () |
Virtual destructor. | |
virtual const string & | nomen () const =0 |
Get nomenclature of device. | |
virtual const string & | eqMod () const =0 |
Get equipment model of device. | |
virtual const string & | eqModVersion () const =0 |
Get equipment model version of device. | |
virtual AccDevRetStatus | read (const Property &property, SLong vrtAcc, const AccData ¶, AccData &data, AccStamp &stamp, AccEFICD &eficd)=0 |
Synchronous read. | |
virtual AccDevRetStatus | write (const Property &property, SLong vrtAcc, const AccData ¶, const AccData &data)=0 |
Synchronous write. | |
virtual AccDevRetStatus | call (const Property &property, SLong vrtAcc, const AccData ¶)=0 |
Synchronous call. | |
virtual AsynchId | requestRead (const Property &property, SLong vrtAcc, const AccData ¶, Callback *cb)=0 |
Asynchronous read request One asynchronous answer via callback. | |
virtual AsynchId | requestWrite (const Property &property, SLong vrtAcc, const AccData ¶, const AccData &data, Callback *cb)=0 |
Asynchronous write request One asynchronous answer via callback. | |
virtual AsynchId | requestCall (const Property &property, SLong vrtAcc, const AccData ¶, Callback *cb)=0 |
Asynchronous call request One asynchronous answer via callback. | |
virtual void | cancelRequest (const AsynchId &asyncId)=0 |
Cancel request. | |
virtual AsynchId | connectRead (const Property &property, SLong vrtAcc, const AccData ¶, const Connection &con, Callback *cb)=0 |
Asynchronous read connection One or more asynchronous answers via callback. | |
virtual AsynchId | connectWrite (const Property &property, SLong vrtAcc, const AccData ¶, const AccData &data, const Connection &con, Callback *cb)=0 |
Asynchronous write connection One or more asynchronous answers via callback. | |
virtual AsynchId | connectCall (const Property &property, SLong vrtAcc, const AccData ¶, const Connection &con, Callback *cb)=0 |
Asynchronous call connection One or more asynchronous answers via callback. | |
virtual void | disconnect (const AsynchId &asyncId)=0 |
Disconnect a connection. |
This class defines the application program interface to the accelerator devices.
K.Hoeppner
virtual ~Device | ( | ) | [inline, virtual] |
Virtual destructor.
virtual AccDevRetStatus call | ( | const Property & | property, | |
SLong | vrtAcc, | |||
const AccData & | para | |||
) | [pure virtual] |
Synchronous call.
property | Property | |
vrtAcc | Virtual accelerator | |
para | Parameter |
AccDevException | All warnings, errors or fatal errors |
virtual void cancelRequest | ( | const AsynchId & | asyncId | ) | [pure virtual] |
Cancel request.
Cancel a request that was setup using one of the methods requestRead(), requestWrite() or requestCall().
On successful return of cancelRequest(), it is guaranteed that no user callback method (response(), readResponse()) is active any more.
asyncId | ID of requested command to be cancelled. |
AccDevException | All warnings, errors or fatal errors. If primStat() of exception is ODA-W-DISCONNUNSAFE, user's callback may still be active. |
virtual AsynchId connectCall | ( | const Property & | property, | |
SLong | vrtAcc, | |||
const AccData & | para, | |||
const Connection & | con, | |||
Callback * | cb | |||
) | [pure virtual] |
Asynchronous call connection One or more asynchronous answers via callback.
property | Property | |
vrtAcc | Virtual accelerator | |
para | Parameter | |
con | Connection specification | |
cb | Callback, method response() will be called |
AccDevException | All warnings, errors or fatal errors |
virtual AsynchId connectRead | ( | const Property & | property, | |
SLong | vrtAcc, | |||
const AccData & | para, | |||
const Connection & | con, | |||
Callback * | cb | |||
) | [pure virtual] |
Asynchronous read connection One or more asynchronous answers via callback.
property | Property | |
vrtAcc | Virtual accelerator | |
para | Parameter | |
con | Connection specification | |
cb | Callback, method readResponse() will be called |
AccDevException | All warnings, errors or fatal errors |
virtual AsynchId connectWrite | ( | const Property & | property, | |
SLong | vrtAcc, | |||
const AccData & | para, | |||
const AccData & | data, | |||
const Connection & | con, | |||
Callback * | cb | |||
) | [pure virtual] |
Asynchronous write connection One or more asynchronous answers via callback.
property | Property | |
vrtAcc | Virtual accelerator | |
para | Parameter | |
data | Data | |
con | Connection specification | |
cb | Callback, method response() will be called |
AccDevException | All warnings, errors or fatal errors |
virtual void disconnect | ( | const AsynchId & | asyncId | ) | [pure virtual] |
Disconnect a connection.
Disconnect a connecion that was setup using one of the methods connectRead(), connectWrite() or connectCall().
On successful return of disconnect(), it is guaranteed that no user callback method (response(), readResponse()) is active any more. Keep in mind that this is true only if no other connection uses this callback object too.
asyncId | ID of requested command to be cancelled. |
AccDevException | All warnings, errors or fatal errors. If primStat() of exception is ODA-W-DISCONNUNSAFE, user's callback may still be active. |
virtual const string& eqMod | ( | ) | const [pure virtual] |
Get equipment model of device.
virtual const string& eqModVersion | ( | ) | const [pure virtual] |
Get equipment model version of device.
virtual const string& nomen | ( | ) | const [pure virtual] |
Get nomenclature of device.
virtual AccDevRetStatus read | ( | const Property & | property, | |
SLong | vrtAcc, | |||
const AccData & | para, | |||
AccData & | data, | |||
AccStamp & | stamp, | |||
AccEFICD & | eficd | |||
) | [pure virtual] |
Synchronous read.
property | Property | |
vrtAcc | Virtual accelerator | |
para | Parameter | |
data | Data | |
stamp | Time and event stamp | |
eficd | EFICD information |
AccDevException | All warnings, errors or fatal errors |
virtual AsynchId requestCall | ( | const Property & | property, | |
SLong | vrtAcc, | |||
const AccData & | para, | |||
Callback * | cb | |||
) | [pure virtual] |
Asynchronous call request One asynchronous answer via callback.
property | Property | |
vrtAcc | Virtual accelerator | |
para | Parameter | |
cb | Callback, method response() will be called |
AccDevException | All warnings, errors or fatal errors |
virtual AsynchId requestRead | ( | const Property & | property, | |
SLong | vrtAcc, | |||
const AccData & | para, | |||
Callback * | cb | |||
) | [pure virtual] |
Asynchronous read request One asynchronous answer via callback.
property | Property | |
vrtAcc | Virtual accelerator | |
para | Parameter | |
cb | Callback, method readResponse() will be called |
AccDevException | All warnings, errors or fatal errors |
virtual AsynchId requestWrite | ( | const Property & | property, | |
SLong | vrtAcc, | |||
const AccData & | para, | |||
const AccData & | data, | |||
Callback * | cb | |||
) | [pure virtual] |
Asynchronous write request One asynchronous answer via callback.
property | Property | |
vrtAcc | Virtual accelerator | |
para | Parameter | |
data | Data | |
cb | Callback, method response() will be called |
AccDevException | All warnings, errors or fatal errors |
virtual AccDevRetStatus write | ( | const Property & | property, | |
SLong | vrtAcc, | |||
const AccData & | para, | |||
const AccData & | data | |||
) | [pure virtual] |
Synchronous write.
property | Property | |
vrtAcc | Virtual accelerator | |
para | Parameter | |
data | Data |
AccDevException | All warnings, errors or fatal errors |