Psana::EpicsLib Namespace Reference


Classes

struct  EpicsValue
struct  DBRTypeTraits
struct  PVTypeTraits
struct  EpicsValue< PVClass, std::string >
struct  EpicsValue< Epics::EpicsPvCtrlString, ValueType >
struct  EpicsValue< Epics::EpicsPvTimeString, ValueType >
struct  DBRTypeTraits< Epics::dbr_time_string >
struct  DBRTypeTraits< Epics::dbr_time_enum >
struct  DBRTypeTraits< Epics::dbr_time_char >
struct  DBRTypeTraits< Epics::dbr_time_short >
struct  DBRTypeTraits< Epics::dbr_time_long >
struct  DBRTypeTraits< Epics::dbr_time_float >
struct  DBRTypeTraits< Epics::dbr_time_double >
struct  DBRTypeTraits< Epics::dbr_sts_string >
struct  DBRTypeTraits< Epics::dbr_ctrl_enum >
struct  DBRTypeTraits< Epics::dbr_ctrl_char >
struct  DBRTypeTraits< Epics::dbr_ctrl_short >
struct  DBRTypeTraits< Epics::dbr_ctrl_long >
struct  DBRTypeTraits< Epics::dbr_ctrl_float >
struct  DBRTypeTraits< Epics::dbr_ctrl_double >
struct  PVTypeTraits< Epics::EpicsPvTimeString >
struct  PVTypeTraits< Epics::EpicsPvTimeEnum >
struct  PVTypeTraits< Epics::EpicsPvTimeChar >
struct  PVTypeTraits< Epics::EpicsPvTimeShort >
struct  PVTypeTraits< Epics::EpicsPvTimeLong >
struct  PVTypeTraits< Epics::EpicsPvTimeFloat >
struct  PVTypeTraits< Epics::EpicsPvTimeDouble >
struct  PVTypeTraits< Epics::EpicsPvCtrlString >
struct  PVTypeTraits< Epics::EpicsPvCtrlEnum >
struct  PVTypeTraits< Epics::EpicsPvCtrlChar >
struct  PVTypeTraits< Epics::EpicsPvCtrlShort >
struct  PVTypeTraits< Epics::EpicsPvCtrlLong >
struct  PVTypeTraits< Epics::EpicsPvCtrlFloat >
struct  PVTypeTraits< Epics::EpicsPvCtrlDouble >
struct  EpicsValue< Epics::EpicsPvCtrlString, std::string >
struct  EpicsValue< Epics::EpicsPvTimeString, std::string >

Functions

template<typename ValueType>
ValueType getEpicsValue (const Epics::EpicsPvHeader &pv, int index)


Function Documentation

template<typename ValueType>
ValueType Psana::EpicsLib::getEpicsValue ( const Epics::EpicsPvHeader &  pv,
int  index 
)

Function which extracts value from EPICS PV and converts it to requested type.

Exceptions:
boost::numeric::bad_numeric_cast in case of overflows
boost::bad_lexical_cast if string vale cannot be converted to number
std::invalid_argument if PV has unexpected type

Definition at line 135 of file EpicsLib.h.

References Psana::Epics::DBR_CTRL_CHAR, Psana::Epics::DBR_CTRL_DOUBLE, Psana::Epics::DBR_CTRL_ENUM, Psana::Epics::DBR_CTRL_FLOAT, Psana::Epics::DBR_CTRL_LONG, Psana::Epics::DBR_CTRL_SHORT, Psana::Epics::DBR_CTRL_STRING, Psana::Epics::DBR_TIME_CHAR, Psana::Epics::DBR_TIME_DOUBLE, Psana::Epics::DBR_TIME_ENUM, Psana::Epics::DBR_TIME_FLOAT, Psana::Epics::DBR_TIME_LONG, Psana::Epics::DBR_TIME_SHORT, Psana::Epics::DBR_TIME_STRING, and Psana::Epics::EpicsPvHeader::dbrType().


Generated on 19 Dec 2016 for PSANAclasses by  doxygen 1.4.7