PVHolder Class Reference

The base class from which the PVDataHolder and PVCtrlHolder classes are derived. More...

#include <PVHolder.h>

Inheritance diagram for PVHolder:
PVCtrlHolder PVDataHolder

List of all members.

Public Types

typedef boost::shared_ptr
< CAFE_DATATYPE_UNION[]> 
ValPtr
typedef boost::shared_ptr
< double[]> 
ValDPtr
typedef boost::shared_ptr< float[]> ValFPtr
typedef boost::shared_ptr< short[]> ValSPtr
typedef boost::shared_ptr< int[]> ValIPtr
typedef boost::shared_ptr
< unsigned char[]> 
ValChPtr
typedef boost::shared_ptr
< unsigned short[]> 
ValUSPtr
typedef boost::shared_ptr
< dbr_string_t[]> 
ValStrPtr

Public Member Functions

void setUserNo (unsigned int un)
unsigned int getUserNo ()
void setRule (bool r)
const char * getPV () const
const char * getPVName () const
const char * getPVAlias () const
const char * getDevice () const
const char * getAttribute () const
unsigned int getNelem () const
const unsigned int getSize () const
CAFE_DATATYPE_UNION_SEQ getVal () const
short getAlarmStatus () const
short getAlarmSeverity () const
unsigned int getBeamEventNo () const
bool getRule () const
bool getHasAlarm () const
int getStatus () const
CAFE_DATATYPE getDataTypeClient () const
CAFE_DATATYPE getDataType () const
CAFEStatusCode getStatusCode () const
short getNoEnumStrings () const
char * getEnumString (short indx) const
void setDataType (CAFE_DATATYPE cdt)
void set (double d)
void set (float f)
void set (short s)
void set (long long l)
void set (int l)
void set (unsigned long long l)
void setString (std::string str)
void setDouble (double d)
void setInt (int l)
void setVString (vector< std::string > Vstr)
void setVDouble (vector< double > Vd)
void setVInt (vector< int > Vl)
void set (unsigned int l)
void set (unsigned short us)
void set (unsigned char ch)
void set (dbr_string_t str)
void set (std::string str)
void set (double *d)
void set (float *f)
void set (short *s)
void set (long long *l)
void set (int *l)
void set (unsigned int *l)
void set (unsigned short *us)
void set (unsigned char *ch)
void set (dbr_string_t *str)
void set (std::string *str)
std::string concatToString ()
double getDouble (unsigned int idx)
float getFloat (unsigned int idx)
short getShort (unsigned int idx)
int getInt (unsigned int idx)
int getLong (unsigned int idx)
unsigned short getEnum (unsigned int idx)
unsigned short getUShort (unsigned int idx)
unsigned char getChar (unsigned int idx)
dbr_string_t * getString (unsigned int idx)
boost::shared_ptr< vector
< double > > 
getAsVDouble ()
boost::shared_ptr< vector
< float > > 
getAsVFloat ()
boost::shared_ptr< vector< int > > getAsVInt ()
boost::shared_ptr< vector
< string > > 
getAsVString ()
ValDPtr getDouble ()
ValFPtr getFloat ()
ValSPtr getShort ()
ValIPtr getInt ()
ValIPtr getLong ()
ValUSPtr getEnum ()
ValUSPtr getUShort ()
ValChPtr getChar ()
ValStrPtr getString ()
double getAsDouble ()
double getAsDouble (unsigned int idx) throw (std::out_of_range)
float getAsFloat ()
float getAsFloat (unsigned int idx) throw (std::out_of_range)
short getAsShort ()
short getAsShort (unsigned int idx) throw (std::out_of_range)
int getAsLong ()
int getAsLong (unsigned int idx) throw (std::out_of_range)
unsigned short getAsEnum ()
unsigned short getAsEnum (unsigned int idx) throw (std::out_of_range)
unsigned short getAsUShort ()
unsigned short getAsUShort (unsigned int idx) throw (std::out_of_range)
unsigned char getAsChar ()
unsigned char getAsChar (unsigned int idx) throw (std::out_of_range)
unsigned char getAsUChar ()
unsigned char getAsUChar (unsigned int idx) throw (std::out_of_range)
unsigned int getAsULong ()
unsigned int getAsULong (unsigned int idx) throw (std::out_of_range)
long long getAsLongLong ()
long long getAsLongLong (unsigned int idx) throw (std::out_of_range)
unsigned long long getAsULongLong ()
unsigned long long getAsULongLong (unsigned int idx) throw (std::out_of_range)
int getAsInt ()
int getAsInt (unsigned int idx) throw (std::out_of_range)
unsigned int getAsUInt ()
unsigned int getAsUInt (unsigned int idx) throw (std::out_of_range)
string getEnumIntegerValueAsString ()
string getAsString ()
string getAsString (unsigned int idx) throw (std::out_of_range)
char * getAsDbr_string_t ()
char * getAsDbr_string_t (unsigned int idx) throw (std::out_of_range)
double getAsDouble (CAFE_DATATYPE_UNION cdu)
float getAsFloat (CAFE_DATATYPE_UNION cdu)
short getAsShort (CAFE_DATATYPE_UNION cdu)
int getAsLong (CAFE_DATATYPE_UNION cdu)
unsigned short getAsEnum (CAFE_DATATYPE_UNION cdu)
unsigned short getAsUShort (CAFE_DATATYPE_UNION cdu)
char getAsChar (CAFE_DATATYPE_UNION cdu)
unsigned char getAsUChar (CAFE_DATATYPE_UNION cdu)
string getAsString (CAFE_DATATYPE_UNION cdu)
char * getAsDbr_string_t (CAFE_DATATYPE_UNION cdu)

Public Attributes

ValPtr val
boost::shared_ptr< vector
< double > > 
ValVD_ptr
boost::shared_ptr< vector
< float > > 
ValVF_ptr
boost::shared_ptr< vector< int > > ValVI_ptr
boost::shared_ptr< vector
< string > > 
ValVStr_ptr
ValDPtr ValD_ptr
ValFPtr ValF_ptr
ValSPtr ValS_ptr
ValIPtr ValI_ptr
ValChPtr ValCh_ptr
ValUSPtr ValUS_ptr
ValStrPtr ValStr_ptr

Protected Member Functions

void verifyIndex (unsigned int idx)
bool isIndexOutOfRange (unsigned int idx)

Protected Attributes

char pv [PVNAME_SIZE]
char pvAlias [PVNAME_SIZE]
char device [PVNAME_SIZE]
char attrib [PVNAME_SIZE]
CAFE_DATATYPE dataTypeNative
CAFE_DATATYPE dataType
CAFEDataTypeCode cafeDataTypeCode
CAFEStatusCode cafeStatusCode
chtype dbrDataType
unsigned int size
unsigned int nelem
short alarmStatus
short alarmSeverity
unsigned int userNo
unsigned int beamEventNo
bool rule
bool hasAlarm
int status
short noStr
char strs [MAX_ENUM_STATES][MAX_ENUM_STRING_SIZE]
CAFEConvert< double > renderDouble
CAFEConvert< float > renderFloat
CAFEConvert< short > renderShort
CAFEConvert< intrenderLong
CAFEConvert< unsigned short > renderEnum
CAFEConvert< unsigned char > renderUChar
CAFEConvert< dbr_string_t > renderString
CAFEConvert< char > renderChar
CAFEConvert< unsigned intrenderULong
CAFEConvert< long longrenderLongLong
CAFEConvert< unsigned long longrenderULongLong
CAFEConvert< intrenderInt
CAFEConvert< unsigned intrenderUInt

Detailed Description

The base class from which the PVDataHolder and PVCtrlHolder classes are derived.


Member Typedef Documentation

typedef boost::shared_ptr<unsigned char []> PVHolder::ValChPtr
typedef boost::shared_ptr<double []> PVHolder::ValDPtr
typedef boost::shared_ptr<float []> PVHolder::ValFPtr
typedef boost::shared_ptr<int []> PVHolder::ValIPtr
typedef boost::shared_ptr<CAFE_DATATYPE_UNION []> PVHolder::ValPtr
typedef boost::shared_ptr<short []> PVHolder::ValSPtr
typedef boost::shared_ptr<dbr_string_t []> PVHolder::ValStrPtr
typedef boost::shared_ptr<unsigned short []> PVHolder::ValUSPtr

Member Function Documentation

std::string PVHolder::concatToString (  )  [inline]

References CAFE_CHAR, dataTypeNative, nelem, and val.

short PVHolder::getAlarmSeverity (  )  const [inline]

References alarmSeverity.

Referenced by main().

short PVHolder::getAlarmStatus (  )  const [inline]

References alarmStatus.

Referenced by main().

char PVHolder::getAsChar ( CAFE_DATATYPE_UNION  cdu  )  [inline]
unsigned char PVHolder::getAsChar ( unsigned int  idx  )  throw (std::out_of_range) [inline]
unsigned char PVHolder::getAsChar (  )  [inline]
char* PVHolder::getAsDbr_string_t ( CAFE_DATATYPE_UNION  cdu  )  [inline]
char* PVHolder::getAsDbr_string_t ( unsigned int  idx  )  throw (std::out_of_range) [inline]
char* PVHolder::getAsDbr_string_t (  )  [inline]
double PVHolder::getAsDouble ( CAFE_DATATYPE_UNION  cdu  )  [inline]
double PVHolder::getAsDouble ( unsigned int  idx  )  throw (std::out_of_range) [inline]
double PVHolder::getAsDouble (  )  [inline]
unsigned short PVHolder::getAsEnum ( CAFE_DATATYPE_UNION  cdu  )  [inline]
unsigned short PVHolder::getAsEnum ( unsigned int  idx  )  throw (std::out_of_range) [inline]
unsigned short PVHolder::getAsEnum (  )  [inline]
float PVHolder::getAsFloat ( CAFE_DATATYPE_UNION  cdu  )  [inline]
float PVHolder::getAsFloat ( unsigned int  idx  )  throw (std::out_of_range) [inline]
float PVHolder::getAsFloat (  )  [inline]
int PVHolder::getAsInt ( unsigned int  idx  )  throw (std::out_of_range) [inline]
int PVHolder::getAsInt (  )  [inline]

References dataType, CAFEConvert< CTYPE >::get(), renderInt, and val.

Referenced by getAsVInt().

int PVHolder::getAsLong ( CAFE_DATATYPE_UNION  cdu  )  [inline]
int PVHolder::getAsLong ( unsigned int  idx  )  throw (std::out_of_range) [inline]
int PVHolder::getAsLong (  )  [inline]
long long PVHolder::getAsLongLong ( unsigned int  idx  )  throw (std::out_of_range) [inline]
long long PVHolder::getAsLongLong (  )  [inline]
short PVHolder::getAsShort ( CAFE_DATATYPE_UNION  cdu  )  [inline]
short PVHolder::getAsShort ( unsigned int  idx  )  throw (std::out_of_range) [inline]
short PVHolder::getAsShort (  )  [inline]
string PVHolder::getAsString ( CAFE_DATATYPE_UNION  cdu  )  [inline]
string PVHolder::getAsString ( unsigned int  idx  )  throw (std::out_of_range) [inline]
string PVHolder::getAsString (  )  [inline]
unsigned char PVHolder::getAsUChar ( CAFE_DATATYPE_UNION  cdu  )  [inline]
unsigned char PVHolder::getAsUChar ( unsigned int  idx  )  throw (std::out_of_range) [inline]
unsigned char PVHolder::getAsUChar (  )  [inline]
unsigned int PVHolder::getAsUInt ( unsigned int  idx  )  throw (std::out_of_range) [inline]
unsigned int PVHolder::getAsUInt (  )  [inline]
unsigned int PVHolder::getAsULong ( unsigned int  idx  )  throw (std::out_of_range) [inline]
unsigned int PVHolder::getAsULong (  )  [inline]

References dataType, CAFEConvert< CTYPE >::get(), renderULong, and val.

Referenced by main().

unsigned long long PVHolder::getAsULongLong ( unsigned int  idx  )  throw (std::out_of_range) [inline]
unsigned long long PVHolder::getAsULongLong (  )  [inline]

References dataType, CAFEConvert< CTYPE >::get(), renderULongLong, and val.

Referenced by main().

unsigned short PVHolder::getAsUShort ( CAFE_DATATYPE_UNION  cdu  )  [inline]
unsigned short PVHolder::getAsUShort ( unsigned int  idx  )  throw (std::out_of_range) [inline]
unsigned short PVHolder::getAsUShort (  )  [inline]
boost::shared_ptr<vector<double> > PVHolder::getAsVDouble (  )  [inline]
boost::shared_ptr<vector<float> > PVHolder::getAsVFloat (  )  [inline]
boost::shared_ptr<vector<int> > PVHolder::getAsVInt (  )  [inline]
boost::shared_ptr<vector<string> > PVHolder::getAsVString (  )  [inline]

References getAsString(), nelem, and ValVStr_ptr.

const char* PVHolder::getAttribute (  )  const [inline]

References attrib.

Referenced by Connect::getPVData(), and main().

unsigned int PVHolder::getBeamEventNo (  )  const [inline]

References beamEventNo.

ValChPtr PVHolder::getChar (  )  [inline]
unsigned char PVHolder::getChar ( unsigned int  idx  )  [inline]

References val.

CAFE_DATATYPE PVHolder::getDataType (  )  const [inline]

References dataType.

Referenced by main().

CAFE_DATATYPE PVHolder::getDataTypeClient (  )  const [inline]

References dataType.

const char* PVHolder::getDevice (  )  const [inline]

References device.

Referenced by Connect::getPVData(), and main().

ValDPtr PVHolder::getDouble (  )  [inline]
double PVHolder::getDouble ( unsigned int  idx  )  [inline]

References val.

ValUSPtr PVHolder::getEnum (  )  [inline]
unsigned short PVHolder::getEnum ( unsigned int  idx  )  [inline]

References val.

string PVHolder::getEnumIntegerValueAsString (  )  [inline]
char* PVHolder::getEnumString ( short  indx  )  const [inline]

Reimplemented in PVCtrlHolder.

References strs.

ValFPtr PVHolder::getFloat (  )  [inline]
float PVHolder::getFloat ( unsigned int  idx  )  [inline]

References val.

bool PVHolder::getHasAlarm (  )  const [inline]

References hasAlarm.

Referenced by main().

ValIPtr PVHolder::getInt (  )  [inline]
int PVHolder::getInt ( unsigned int  idx  )  [inline]

References val.

ValIPtr PVHolder::getLong (  )  [inline]
int PVHolder::getLong ( unsigned int  idx  )  [inline]

References val.

unsigned int PVHolder::getNelem (  )  const [inline]
short PVHolder::getNoEnumStrings (  )  const [inline]

Reimplemented in PVCtrlHolder.

References noStr.

const char* PVHolder::getPV ( void   )  const [inline]

References pv.

Referenced by main().

const char* PVHolder::getPVAlias ( void   )  const [inline]

References pvAlias.

Referenced by main().

const char* PVHolder::getPVName (  )  const [inline]

References pv.

bool PVHolder::getRule (  )  const [inline]

References rule.

Referenced by CAFE::groupGet(), and CAFE::groupSet().

ValSPtr PVHolder::getShort (  )  [inline]
short PVHolder::getShort ( unsigned int  idx  )  [inline]

References val.

const unsigned int PVHolder::getSize (  )  const [inline]

References size.

Referenced by main().

int PVHolder::getStatus ( void   )  const [inline]

References status.

Referenced by CAFE::getCacheNoWait(), and main().

CAFEStatusCode PVHolder::getStatusCode (  )  const [inline]

References cafeStatusCode.

ValStrPtr PVHolder::getString (  )  [inline]
dbr_string_t* PVHolder::getString ( unsigned int  idx  )  [inline]
unsigned int PVHolder::getUserNo (  )  [inline]

References userNo.

ValUSPtr PVHolder::getUShort (  )  [inline]
unsigned short PVHolder::getUShort ( unsigned int  idx  )  [inline]

References val.

CAFE_DATATYPE_UNION_SEQ PVHolder::getVal (  )  const [inline]

References val.

Referenced by main().

bool PVHolder::isIndexOutOfRange ( unsigned int  idx  )  [inline, protected]
void PVHolder::set ( std::string *  str  )  [inline]

References CAFE_STRING, dataType, nelem, and val.

void PVHolder::set ( dbr_string_t *  str  )  [inline]

References CAFE_STRING, dataType, nelem, and val.

void PVHolder::set ( unsigned char *  ch  )  [inline]

References CAFE_CHAR, dataType, nelem, and val.

void PVHolder::set ( unsigned short *  us  )  [inline]

References CAFE_ENUM, dataType, nelem, and val.

void PVHolder::set ( unsigned int l  )  [inline]

References CAFE_LONG, dataType, int, nelem, and val.

void PVHolder::set ( int l  )  [inline]

References CAFE_LONG, dataType, nelem, and val.

void PVHolder::set ( long long l  )  [inline]

References CAFE_LONG, dataType, int, nelem, and val.

void PVHolder::set ( short *  s  )  [inline]

References CAFE_SHORT, dataType, nelem, and val.

void PVHolder::set ( float *  f  )  [inline]

References CAFE_FLOAT, dataType, nelem, and val.

void PVHolder::set ( double *  d  )  [inline]

References CAFE_DOUBLE, dataType, nelem, and val.

void PVHolder::set ( std::string  str  )  [inline]

References CAFE_STRING, dataType, and val.

void PVHolder::set ( dbr_string_t  str  )  [inline]

References CAFE_STRING, dataType, and val.

void PVHolder::set ( unsigned char  ch  )  [inline]

References CAFE_CHAR, dataType, and val.

void PVHolder::set ( unsigned short  us  )  [inline]

References CAFE_ENUM, dataType, and val.

void PVHolder::set ( unsigned int  l  )  [inline]

References CAFE_LONG, dataType, int, and val.

void PVHolder::set ( unsigned long long  l  )  [inline]

References CAFE_DOUBLE, CAFE_LONG, dataType, int, and val.

void PVHolder::set ( int  l  )  [inline]

References CAFE_LONG, dataType, and val.

void PVHolder::set ( long long  l  )  [inline]

References CAFE_DOUBLE, CAFE_LONG, dataType, int, and val.

void PVHolder::set ( short  s  )  [inline]

References CAFE_SHORT, dataType, and val.

void PVHolder::set ( float  f  )  [inline]

References CAFE_FLOAT, dataType, and val.

void PVHolder::set ( double  d  )  [inline]
void PVHolder::setDataType ( CAFE_DATATYPE  cdt  )  [inline]

References CAFE_DOUBLE, CAFE_STRING, and dataType.

void PVHolder::setDouble ( double  d  )  [inline]

References CAFE_DOUBLE, dataType, and val.

void PVHolder::setInt ( int  l  )  [inline]

References CAFE_LONG, dataType, and val.

void PVHolder::setRule ( bool  r  )  [inline]

References rule.

void PVHolder::setString ( std::string  str  )  [inline]

References CAFE_STRING, dataType, and val.

void PVHolder::setUserNo ( unsigned int  un  )  [inline]

References userNo.

void PVHolder::setVDouble ( vector< double >  Vd  )  [inline]

References CAFE_DOUBLE, dataType, nelem, and val.

void PVHolder::setVInt ( vector< int Vl  )  [inline]

References CAFE_LONG, dataType, nelem, and val.

void PVHolder::setVString ( vector< std::string >  Vstr  )  [inline]

References CAFE_STRING, dataType, nelem, and val.

void PVHolder::verifyIndex ( unsigned int  idx  )  [inline, protected]

References size.


Member Data Documentation

short PVHolder::alarmSeverity [protected]
short PVHolder::alarmStatus [protected]
char PVHolder::attrib[PVNAME_SIZE] [protected]
unsigned int PVHolder::beamEventNo [protected]
chtype PVHolder::dbrDataType [protected]
char PVHolder::device[PVNAME_SIZE] [protected]
bool PVHolder::hasAlarm [protected]
unsigned int PVHolder::nelem [protected]
short PVHolder::noStr [protected]
char PVHolder::pv[PVNAME_SIZE] [protected]
char PVHolder::pvAlias[PVNAME_SIZE] [protected]
CAFEConvert<char> PVHolder::renderChar [protected]

Referenced by getAsChar().

CAFEConvert<double> PVHolder::renderDouble [protected]

Referenced by getAsDouble().

CAFEConvert<unsigned short> PVHolder::renderEnum [protected]

Referenced by getAsEnum(), and getAsUShort().

CAFEConvert<float> PVHolder::renderFloat [protected]

Referenced by getAsFloat().

Referenced by getAsInt(), and getAsUInt().

Referenced by getAsLong().

Referenced by getAsLongLong().

CAFEConvert<short> PVHolder::renderShort [protected]

Referenced by getAsShort().

CAFEConvert<dbr_string_t> PVHolder::renderString [protected]
CAFEConvert<unsigned char> PVHolder::renderUChar [protected]

Referenced by getAsUChar().

CAFEConvert<unsigned int> PVHolder::renderUInt [protected]
CAFEConvert<unsigned int> PVHolder::renderULong [protected]

Referenced by getAsULong().

Referenced by getAsULongLong().

bool PVHolder::rule [protected]
unsigned int PVHolder::size [protected]
int PVHolder::status [protected]
char PVHolder::strs[MAX_ENUM_STATES][MAX_ENUM_STRING_SIZE] [protected]
unsigned int PVHolder::userNo [protected]

Referenced by getChar().

Referenced by getDouble().

Referenced by getFloat().

Referenced by getInt(), and getLong().

Referenced by getShort().

Referenced by getString().

Referenced by getEnum(), and getUShort().

boost::shared_ptr<vector<double> > PVHolder::ValVD_ptr

Referenced by getAsVDouble(), and getAsVFloat().

boost::shared_ptr<vector<float> > PVHolder::ValVF_ptr

Referenced by getAsVFloat().

boost::shared_ptr<vector<int> > PVHolder::ValVI_ptr

Referenced by getAsVInt().

boost::shared_ptr<vector<string> > PVHolder::ValVStr_ptr

Referenced by getAsVString().


The documentation for this class was generated from the following file:

Generated on 3 May 2017 for CAFE by  doxygen 1.6.1