The epics easy channel access data input implementation.
More...
#include <ezca/EpicsInput.h>
The epics easy channel access data input implementation.
It was first implementation for access EPICS data in DABC, now is preferable to use ezca::Monitor class
Definition at line 37 of file EpicsInput.h.
◆ EpicsInput()
ezca::EpicsInput::EpicsInput |
( |
const std::string & |
name = "" | ) |
|
◆ ~EpicsInput()
ezca::EpicsInput::~EpicsInput |
( |
| ) |
|
|
virtual |
◆ ResetDescriptors()
void ezca::EpicsInput::ResetDescriptors |
( |
| ) |
|
|
inlineprotected |
◆ NumLongRecords()
unsigned ezca::EpicsInput::NumLongRecords |
( |
| ) |
const |
|
inlineprotected |
◆ GetLongRecord()
const std::string& ezca::EpicsInput::GetLongRecord |
( |
unsigned |
i | ) |
const |
|
inlineprotected |
◆ NumDoubleRecords()
unsigned ezca::EpicsInput::NumDoubleRecords |
( |
| ) |
const |
|
inlineprotected |
◆ GetDoubleRecord()
const std::string& ezca::EpicsInput::GetDoubleRecord |
( |
unsigned |
i | ) |
const |
|
inlineprotected |
◆ CA_GetLong()
int ezca::EpicsInput::CA_GetLong |
( |
const std::string & |
name, |
|
|
long & |
val |
|
) |
| |
|
protected |
◆ CA_GetDouble()
int ezca::EpicsInput::CA_GetDouble |
( |
const std::string & |
name, |
|
|
double & |
val |
|
) |
| |
|
protected |
◆ CA_ErrorString()
std::string ezca::EpicsInput::CA_ErrorString |
( |
| ) |
|
|
protected |
Return error string with error description.
Definition at line 268 of file EpicsInput.cxx.
◆ CA_RetCode()
const char * ezca::EpicsInput::CA_RetCode |
( |
int |
ret | ) |
|
|
protected |
◆ Close()
bool ezca::EpicsInput::Close |
( |
| ) |
|
|
protected |
◆ Read_Init()
Initialize data input, using port and command.
This is generic virtual method to initialize input, using configurations from Port and (or) from the Command
- Parameters
-
[in] | wrk | reference on input port |
[in] | cmd | reference on command object |
- Returns
- false when method fails
Reimplemented from dabc::DataInput.
Definition at line 57 of file EpicsInput.cxx.
◆ Read_Size()
unsigned ezca::EpicsInput::Read_Size |
( |
| ) |
|
|
virtual |
Defines required buffer size for next operation.
- Returns
- 0..di_ValidSize - size of buffer for next read operation (di_ValidSize = 0xFFFFFFF0)
- di_EndOfStream - this is end of stream, normal close of the input
- di_DfltBufSize - any non-zero buffer can be provided
- di_Repeat - nothing to read now, try again as soon as possible
- di_RepeatTimeOut - nothing to read now, try again after timeout
- di_CallBack - input will activate transport via callback
- di_Error - error, close input
Reimplemented from dabc::DataInput.
Definition at line 97 of file EpicsInput.cxx.
◆ Read_Complete()
unsigned ezca::EpicsInput::Read_Complete |
( |
dabc::Buffer & |
buf | ) |
|
|
virtual |
Complete reading of the buffer from source,.
- Returns
- di_Ok - buffer filled and ready
- di_EndOfStream - this is end of stream, normal close of the input
- di_SkipBuffer - skip buffer
- di_Error - error, skip buffer and close input
- di_Repeat - not ready, call again as soon as possible
- di_RepeatTimeOut - not ready, call again after timeout
Reimplemented from dabc::DataInput.
Definition at line 164 of file EpicsInput.cxx.
◆ Read_Timeout()
virtual double ezca::EpicsInput::Read_Timeout |
( |
| ) |
|
|
inlinevirtual |
Provide timeout value.
- Returns
- timeout in seconds
When Read_Size or Read_Complete operations returns di_RepeatTimeout argument, specified timeout will be used before next operation will be done
Reimplemented from dabc::DataInput.
Definition at line 136 of file EpicsInput.h.
◆ fName
std::string ezca::EpicsInput::fName |
|
protected |
◆ fTimeout
double ezca::EpicsInput::fTimeout |
|
protected |
◆ fSubeventId
unsigned ezca::EpicsInput::fSubeventId |
|
protected |
◆ fLastFlagValue
long ezca::EpicsInput::fLastFlagValue |
|
protected |
Remember previous flag value which should be change to start readout.
Definition at line 48 of file EpicsInput.h.
◆ fEventNumber
long ezca::EpicsInput::fEventNumber |
|
protected |
Event number, read from EPICS record.
Definition at line 51 of file EpicsInput.h.
◆ fCounter
long ezca::EpicsInput::fCounter |
|
protected |
Counter of events, used as mbs event id when event number is not provided.
Definition at line 54 of file EpicsInput.h.
◆ fEzcaTimeout
double ezca::EpicsInput::fEzcaTimeout |
|
protected |
◆ fEzcaRetryCnt
int ezca::EpicsInput::fEzcaRetryCnt |
|
protected |
Number of retry in ezca readout.
Definition at line 60 of file EpicsInput.h.
◆ fEzcaDebug
bool ezca::EpicsInput::fEzcaDebug |
|
protected |
Switch on/off epics debug messages.
Definition at line 63 of file EpicsInput.h.
◆ fEzcaAutoError
bool ezca::EpicsInput::fEzcaAutoError |
|
protected |
◆ fUpdateFlagRecord
std::string ezca::EpicsInput::fUpdateFlagRecord |
|
protected |
◆ fIDNumberRecord
std::string ezca::EpicsInput::fIDNumberRecord |
|
protected |
◆ fUpdateCommandReceiver
std::string ezca::EpicsInput::fUpdateCommandReceiver |
|
protected |
◆ fLongRecords
std::vector<std::string> ezca::EpicsInput::fLongRecords |
|
protected |
◆ fLongValues
std::vector<long> ezca::EpicsInput::fLongValues |
|
protected |
◆ fLongRes
std::vector<bool> ezca::EpicsInput::fLongRes |
|
protected |
◆ fDoubleRecords
std::vector<std::string> ezca::EpicsInput::fDoubleRecords |
|
protected |
◆ fDoubleValues
std::vector<double> ezca::EpicsInput::fDoubleValues |
|
protected |
◆ fDoubleRes
std::vector<bool> ezca::EpicsInput::fDoubleRes |
|
protected |
The documentation for this class was generated from the following files: