This is Unofficial EPICS BASE Doxygen Site
pvahelper.h File Reference
#include <deque>
#include <epicsGuard.h>
#include <pv/pvAccess.h>
+ Include dependency graph for pvahelper.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  BaseChannel
 
struct  BaseMonitor
 
struct  BaseMonitor::no_overflow
 
struct  BaseChannelProviderFactory< CP >
 

Functions

template<typename T , typename A >
bool getS (const epics::pvData::PVStructurePtr &S, const char *name, A &val)
 

Function Documentation

template<typename T , typename A >
bool getS ( const epics::pvData::PVStructurePtr S,
const char *  name,
A &  val 
)

Definition at line 11 of file pvahelper.h.

12 {
13  epics::pvData::PVScalarPtr F(S->getSubField<epics::pvData::PVScalar>(name));
14  if(F)
15  val = F->getAs<T>();
16  return !!F;
17 }
PVScalar is the base class for each scalar field.
Definition: pvData.h:272
std::tr1::shared_ptr< PVScalar > PVScalarPtr
Definition: pvData.h:77