#include <handleHelper.h>
Public Member Functions | |
HandleHelper () | |
~HandleHelper () | |
int | setSTS (unsigned int _handle, dbr_short_t a, dbr_short_t s, epicsTimeStamp ets) |
Sets the alarm, severity ts in conduit (used by get method WITH_CALLBACK). | |
int | checkConsistency () |
Checks what's in the hash table against actual ca server data Do for all handles. | |
int | checkConsistency (unsigned int _handle) |
Checks what's in the hash table against actual ca server data. | |
int | setChannelDeviceAttribute (std::string deliminator) |
Given the deliminator, sets the device/attribute components of the epics channel, for all handles. | |
int | setChannelDeviceAttribute (unsigned int _handle, std::string deliminator) |
Given the deliminator, sets the device/attribute components of the epics channel for a givem handle. | |
int | getChannelDevice (unsigned int _handle, std::string &device) |
Retrieves device name for a given handle. | |
int | getChannelAttribute (unsigned int _handle, std::string &attribute) |
Retrieves attribute name for a given handle. | |
int | getChannelRegalia (unsigned int _handle, ChannelRegalia &channelInfo) |
Retrieves channel meta deta held in the ChannelRegalia object. | |
int | getChannelRequestStatusGetClassName (unsigned int _handle, ChannelRequestStatus &crsClassName) |
Retrieves channel meta deta held in ChannelRequestStatusGetClassName object. | |
int | getChannelRequestStatusGetSTSACK (unsigned int _handle, ChannelRequestStatus &crsSTSACK) |
Retrieves channel meta deta held in ChannelRequestStatusGetSTSACK object. | |
int | getChannelRequestStatusGetCtrl (unsigned int _handle, ChannelRequestStatus &crsCtrl) |
Retrieves channel meta deta held in ChannelRequestStatusGetCtrl object. | |
int | getChannelRequestStatusGet (unsigned int _handle, ChannelRequestStatus &crs) |
Retrieves channel meta deta held in ChannelRequestStatusGet object. | |
ca_client_context * | getContextFromPV (const char *_pv) |
Retrieves context for a first matching of this process variable. | |
ca_client_context * | getContextFromHandle (unsigned int _handle) |
Retrieves the ca_client_context for first matching of handle. | |
const char * | getPVFromHandle (unsigned int _handle) |
Retrieves the process variable from a given handle. | |
const char * | getPVFromHandle (unsigned int _handle, ca_client_context *ccc) |
Retrieves the process variable from a given handle. | |
const char * | getPV (unsigned int _handle) |
const char * | getPVAlias (unsigned int _handle) |
Retrieves the process variable from a given handle. | |
const char * | getPVAlias (unsigned int _handle, ca_client_context *ccc) |
Retrieves the process variable from a given handle. | |
unsigned int | getHandleFromPV (const char *_pv) |
Retrieves handle for a given process variable. | |
unsigned int | getHandleFromPV (const char *_pv, ca_client_context *ccc) |
Retrieves handle for a given process variable. | |
unsigned int | getHandleFromPVAlias (const char *_pv) |
Retrieves handle for a given process variable. | |
unsigned int | getHandleFromPVAlias (const char *_pv, ca_client_context *ccc) |
Retrieves handle for a given process variable alias. | |
std::vector< unsigned int > | getHandlesFromPVs (std::vector< std::string > pvV, ca_client_context *ccc) |
Rerieves vector of handles for given vector of PVs. | |
std::vector< unsigned int > | getHandlesFromPVs (std::vector< std::string > pvV) |
Rerieves vector of handles for given vector of PVs. | |
std::vector< unsigned int > | getDisconnectedHandlesFromWithinGroupV (unsigned int gh) |
Retrieves all handles belonging to a group referenced by its groupHandle. | |
std::vector< unsigned int > | getHandlesFromWithinGroupV (unsigned int gh) |
Retrieves all handles belonging to a group referenced by its groupHandle. | |
unsigned int * | getHandlesFromWithinGroup (unsigned int gh) |
Retrieves all handles belonging to a group referenced by its groupHandle. | |
unsigned int | getHandleFromPVWithinGroup (const char *_pv, unsigned int gh) |
Retrieves handle for a given process variable with a CAFE group. | |
unsigned int | getHandleFromPVWithinGroup (const char *_pv, ca_client_context *ccc, unsigned int gh) |
Retrieves handle for a given process variable with a CAFE group within a give ca context. | |
int | getStatus (unsigned int h) |
Retrieves last cached status information for given handle. | |
int | getTimeStamp (unsigned int h, epicsTimeStamp &ts) |
Retrieves last cached timestamp information for given handle. | |
etsNorm | getEpicsTimeStampAsUInt32 (unsigned int h) |
etsDate | getEpicsTimeStampAsDate (unsigned int h) |
etsDate | epicsTimeStampToDate (epicsTimeStamp ts) |
etsDate | etsNormToDate (etsNorm ts) |
etsDate | unixTimeToDate (etsNorm ts) |
int | getPulseID (unsigned int h, unsigned int &pulseID) |
unsigned int | getPulseIDFromTS (epicsTimeStamp ts) |
int | getAlarmStatusSeverity (unsigned int h, dbr_short_t as[2]) |
Retrieves last cached status information for given handle. | |
int | getAlarmStatusSeverityAsString (unsigned int h, std::string asas[2]) |
Retrieves last cached status information for given handle. | |
unsigned int | getNoHandles () |
Retrieves the total number of handled. | |
unsigned int | getNextFreeHandle () |
Retrieves the next available handle. | |
bool | isChannelConnected (unsigned int handle) |
Method returns true if channel is connected, else false. | |
bool | allChannelsConnected () |
Method returns true if all channels are connected, else false. | |
bool | allChannelsWithinGroupConnected () |
Method returns true if all channels are connected, else false. | |
bool | allChannelsWithinGroupConnectedV (std::vector< unsigned int >) |
Method returns true if all channels within the given vector of groups handles are connected, else false. | |
int | printHandle (unsigned int h) |
Prints Conduit member values for all given handle. | |
int | printHandlesV (std::vector< unsigned int > handleV) |
Prints Conduit member values for all given handles. | |
int | printHandles (unsigned int *handleArray, unsigned int nHandles) |
Prints Conduit member values for all given handles. | |
unsigned int | printHandles () |
Prints Conduit member values for all Conduit objects (handles). | |
unsigned int | printChannels () |
unsigned int | printDisconnectedHandles () |
Prints Conduit member values for all disconnected CAFEConduit objects (handles). | |
unsigned int | printDisconnectedChannels () |
unsigned int | getDisconnectedHandles (std::vector< unsigned int > &, std::vector< std::string > &) |
Retrieves a list of disconnected PVs and their handles. | |
unsigned int | getConnectedHandles (std::vector< unsigned int > &, std::vector< std::string > &) |
Retrieves a list of connected PVs and their handles. | |
unsigned int | getHandles (std::vector< unsigned int > &, std::vector< std::string > &) |
Retrieves a list of handles and PVs, whether connected or disconnected. | |
unsigned int | getHandleStates (std::vector< unsigned int > &, std::vector< std::string > &, std::vector< unsigned short > &) |
Retrieves a list of handles and PVs, whether connected or disconnected. | |
unsigned int | printMonitors () |
Prints Conduit member values for all Conduit objects (handles) that have a monitor. | |
std::vector< unsigned int > | getHandlesWithMonitors () |
Return a vector of handles that have monitors If a handle has n monitors it appears n time in the return vector. Monitors in waiting are als included in the count. | |
int | getMonitorHandlesAndActions (std::vector< unsigned int > &handleV, std::vector< std::string > &actionV) |
HandleHelper::getMonitorHandlesAndActions retrieves list of handles and their actions to perform on change of value . | |
int | setCafeDbrTypeV (std::vector< unsigned int > _handleV, CAFENUM::DBR_TYPE cdt) |
Sets the cafeDbrType (e.g. DBR_TIME) and associated dbrDataTpe (e.g. DBR_TIME_zzz). | |
int | setCafeDbrType (unsigned int _handle, CAFENUM::DBR_TYPE cdt) |
Sets the cafeDbrType (e.g. DBR_TIME) and associated dbrDataTpe (e.g. DBR_TIME_zzz). | |
int | getCafeDbrType (unsigned int _handle, CAFENUM::DBR_TYPE &cdt) |
Gets the cafeDbrType (e.g. DBR_TIME). | |
bool | isEnum (unsigned int _handle) |
Retrieves whether pv is of enumerated type. | |
short | getEnumFromString (unsigned int _handle, std::string enumStringValue) |
Retrieves enum unsigned short state of enumerated string type. | |
std::string | getStringFromEnum (unsigned int _handle, unsigned short enumValue) |
int | getDataTypeNative (unsigned int _handle, chtype &ndt) |
Retrieves the native data type from ChannelRegalia object. | |
int | getDataTypeRequest (unsigned int _handle, chtype &rdt) |
Gets the dataType requested (e.g. DBR_STRING etc.). | |
int | eraseMonitorAction (unsigned int _handle) |
HandleHelper::eraseMonitorAction . | |
int | clearMonitorAction (unsigned int _handle) |
HandleHelper::clearMonitorAction . | |
int | clearMonitorAction () |
HandleHelper::clearMonitorAction for all handles . | |
int | addMonitorAction (unsigned int _handle, std::string mAction) |
HandleHelper::addMonitorAction . | |
int | getMonitorAction (unsigned int _handle, std::vector< std::string > &msV) |
HandleHelper::getMonitorAction. | |
std::vector< std::string > | getMonitorAction (bool onlyIfNewData) |
HandleHelper::getMonitorAction retrieves list of actions to perform on change of value If input boolean is true; then only oustantanding actions are listed. | |
int | getMonitorPolicyVector (unsigned int _handle, std::vector< MonitorPolicy > &mpV) |
Gets the MonitorPolicyVector. | |
int | getMonitorPolicyInWaitingVector (unsigned int _handle, std::vector< MonitorPolicy > &mpV) |
Gets the MonitorPolicyVector. | |
int | getNmonitor (unsigned int _handle) |
Gets Number of MonitorPolicyVectors. | |
int | getNmonitorData (unsigned int _handle) |
Gets Number of MonitorPolicyVectors for <= DBR_TIME type. | |
int | getNmonitorCtrl (unsigned int _handle) |
Gets Number of MonitorPolicyVectors for CTRL_ type. | |
std::vector< unsigned int > | getMonitorIDs (unsigned int _handle) |
Gets vector of MonitorIDs. | |
std::vector< unsigned int > | getMonitorIDsInWaiting (unsigned int _handle) |
Gets vector of MonitorIDs in waiting (value=0), i.e., waiting for channel connection. | |
unsigned int | getUsrArgsAsUInt (unsigned int _handle) |
Gets the user arg as uint in event callback; meant for retrieving the current monitor ID. | |
chtype | getDataTypeCB (unsigned int _handle) |
Gets the datatype of handle from within the callback function. | |
chtype | getDbrDataTypeCB (unsigned int _handle) |
Gets the dbrdatatype of handle from within the callback function. | |
CAFENUM::DBR_TYPE | getCafeDbrTypeCB (unsigned int _handle) |
Gets the cafeDbrType of handle from within the callback function. | |
int | setNelem () |
Sets the no of elements to read out from an array, e.g. waveform, to native value for all handles. | |
unsigned int | setNelem (unsigned int _handle) |
Sets the no of elements to read out from an array, e.g. waveform, to native value. | |
unsigned int | setNelemToNative (unsigned int _handle) |
unsigned int | setNelem (unsigned int _handle, unsigned int _nelem) |
Sets the no of elements to read out from an array, e.g. waveform. | |
unsigned int | setNelemToRetrieveFromCache (unsigned int _handle) |
Sets the no of elements to read out from an cached array to native value, e.g. waveform. | |
unsigned int | setNelemToRetrieveFromCache (unsigned int _handle, unsigned int _nelem) |
Sets the no of elements to read out from an cached array, e.g. waveform. | |
unsigned int | setNelemToRetrieveFromCtrlCache (unsigned int _handle) |
Sets the no of elements to read out from an cached array to min(native, ) value, e.g. waveform. | |
unsigned int | setNelemToRetrieveFromCtrlCache (unsigned int _handle, unsigned int _nelem) |
Sets the no of elements to read out from an cached array, e.g. waveform. | |
unsigned int | getNelemToRetrieveFromCache (unsigned int _handle) |
Gets the no of elements to be read out from a cached array, e.g. waveform. | |
unsigned int | getNelemToRetrieveFromCtrlCache (unsigned int _handle) |
Gets the no of elements to be read out from a cached array, e.g. waveform. | |
unsigned int | getNelemClient (unsigned int _handle) |
Retrieves the no of elements to read out from an array, e.g. waveform as requested by client. | |
unsigned int | getNelemNative (unsigned int _handle) |
Retrieves the no of native elements. | |
unsigned int | getNelemRequest (unsigned int _handle) |
Retrieves the no of elements to read out from an array, e.g. waveform as delivered to ca. | |
int | getNelem (unsigned int _handle, unsigned int &c, unsigned int &n, unsigned int &r) |
Retrieves the no of elements as initiated by client, no of native elements, no of elements requested to ca. | |
unsigned int | setNelemCtrl (unsigned int _handle, unsigned int _nelem) |
Sets the no of elements to read out from an array, e.g. waveform, via DBR_CTRL. | |
unsigned int | getNelemRequestCtrl (unsigned int _handle) |
Retrieves the no of elements read out from an array e.g. waveform, as delivered to ca through DBR_CTRL. | |
unsigned int | getNelemClientCtrl (unsigned int _handle) |
Retrieves the no of elements read out from an array e.g. waveform, as delivered to ca through DBR_CTRL. | |
unsigned int | setOffset (unsigned int _handle, unsigned int _offset) |
Sets the offset; give element no from which data should be returned. | |
unsigned int | getOffset (unsigned int _handle) |
Retrieves the offset; gives element no from which data should be returned. | |
unsigned int | getOffsetLast (unsigned int _handle) |
Retrieves the last offset; gives element no from which data was actually returned. | |
void | setFirstAndLastArrayElements (unsigned int _handle, unsigned int _start, unsigned int _last) |
int | setMapPulseIDBufferSize (unsigned int _handle, unsigned short _bufferSize) |
Sets the buffer size for map<pulseID,pvdata> for use in cafe bsread. | |
int | setMapPulseIDBufferSizeAll (unsigned short _bufferSize) |
Sets the buffer size for map<pulseID,pvdata> for use in cafe bsread for all handles. | |
unsigned int | getGroupHandleFromGroupName (const char *_groupName) |
unsigned int | getGroupHandleFromGroupName (const char *_groupName, ca_client_context *ccc) |
Retrieves groupHandle from groupName from within a given ca context. | |
std::string | getGroupNameFromGroupHandle (unsigned int groupHandle) |
Retrieves groupName from grouphanlde. | |
unsigned int | getGroupNPV (unsigned int gHandle) |
Retrieves number of process variables within a group as identified by the groupHandle. | |
unsigned int | getGroupNPV (const char *_groupName, ca_client_context *ccc) |
Retrieves number of process variables within a group for a given ca client context. | |
unsigned int | getGroupNPV (const char *_groupName) |
void | removeLeadingAndTrailingSpacesDbrString (const char *_pv, char pvStripped[MAX_STRING_SIZE]) |
Removes leading and trailing blanks. | |
void | removeLeadingAndTrailingSpacesPseudo (const char *_pv, char pvStripped[PVGROUP_PSEUDO_SIZE]) |
Removes leading and trailing blanks. | |
void | removeLeadingAndTrailingSpaces (const char *_pv, char pvStripped[PVNAME_SIZE]) |
Removes leading and trailing blanks. | |
unsigned int | convertToUniqueNumber (const char *pv, ca_client_context *ccc, unsigned int ghs) |
Produces a unique identifier from the pvName, ca_client_context, group handle size for entry into hash table. | |
unsigned int | convertToUniqueNumber (const char *pv, ca_client_context *ccc) |
Produces a unique identifier from the pvName and ca_client_context for entry into hash table. | |
CAFENUM::DBR_TYPE | convertToCAFEDbrTypeClass (const chtype _chtype) const |
enum CAFENUM::DBR_TYPE {DBR_PRIMITIVE=333,DBR_STS,DBR_TIME, DBR_GR,DBR_CTRL,DBR_NONE}; Extracts the CAFENUM::DBR_TYPE from the channel type | |
std::string | concatToString (dbr_char_t *inChar, unsigned int nChar) |
Concatinates dbr_char_t(unsigned char) into a string. | |
Public Attributes | |
etsNorm | _etsNorm |
etsDate | _etsDate |
Private Attributes | |
CAFEStatus | cafeStatus |
cafeConduit_set::iterator | itcs |
cafeGroup_set::iterator | itgs |
ChannelRequestMetaDataClient | channelRequestMetaDataClient |
ChannelRequestMetaData | channelRequestMetaData |
ChannelRequestMetaDataClient | channelRequestMetaCtrlClient |
ChannelRequestMetaData | channelRequestMetaCtrl |
ChannelDeviceAttribute | channelDeviceAttribute |
CAFEDataTypeCode | cafeDataTypeCode |
PrintErrorPolicy | printErrorPolicy |
HandleHelper::HandleHelper | ( | ) | [inline] |
HandleHelper::~HandleHelper | ( | ) | [inline] |
HandleHelper::addMonitorAction
.
_handle | input: handle identifying Conduit object | |
monitorAction | input: string giviing the monitor action |
References cs, ECAFE_INVALID_HANDLE, and ICAFE_NORMAL.
bool HandleHelper::allChannelsConnected | ( | ) |
Method returns true if all channels are connected, else false.
Referenced by Connect::openNowAndWait().
bool HandleHelper::allChannelsWithinGroupConnected | ( | ) |
Method returns true if all channels are connected, else false.
Referenced by Connect::openGroupNowAndWait().
bool HandleHelper::allChannelsWithinGroupConnectedV | ( | std::vector< unsigned int > | grpID | ) |
Method returns true if all channels within the given vector of groups handles are connected, else false.
grpID | input: vector of group handles |
References __METHOD__, and getDisconnectedHandlesFromWithinGroupV().
Referenced by Connect::openGroupNowAndWaitForInputGroups().
Checks what's in the hash table against actual ca server data.
_handle | input : Conduit object reference |
References __METHOD__, cafeMutex, cafeStatus, cs, ECAFE_INCONSISTENT_CONTAINER_CORRECTED, ECAFE_INVALID_HANDLE, ECAFE_NULLCHID, ChannelRegalia::getChannelID(), ChannelRegalia::getConnectionState(), ChannelRegalia::getDataType(), PrintErrorPolicy::getInvalidHandle(), ChannelRegalia::getNelem(), ChannelRegalia::getReadAccess(), ChannelRegalia::getWriteAccess(), ICAFE_CS_CONN, ICAFE_CS_DISCONN, ICAFE_NORMAL, MUTEX, printErrorPolicy, CAFEStatus::report(), ChannelRegalia::setCafeConnectionState(), ChannelRegalia::setConnectFlag(), ChannelRegalia::setConnectionState(), ChannelRegalia::setDataType(), ChannelRegalia::setNelem(), ChannelRegalia::setReadAccess(), and ChannelRegalia::setWriteAccess().
int HandleHelper::checkConsistency | ( | ) |
Checks what's in the hash table against actual ca server data
Do for all handles.
References cs, ICAFE_NORMAL, and itcs.
Referenced by Granules::channelExecutePut(), Granules::channelVerifyGet(), Granules::channelVerifyGetCtrl(), and Granules::channelVerifyPut().
int HandleHelper::clearMonitorAction | ( | ) |
HandleHelper::clearMonitorAction for all handles
.
References cs, ICAFE_NORMAL, and itcs.
HandleHelper::clearMonitorAction
.
_handle | input: handle identifying Conduit object |
References cs, ECAFE_INVALID_HANDLE, and ICAFE_NORMAL.
std::string Helper::concatToString | ( | dbr_char_t * | inpChar, | |
unsigned int | nChar | |||
) | [inherited] |
Concatinates dbr_char_t(unsigned char) into a string.
inpChar | input: Array of dbr_char_t data types | |
nChar | input: size of array |
CAFENUM::DBR_TYPE Helper::convertToCAFEDbrTypeClass | ( | const chtype | _chtype | ) | const [inherited] |
enum CAFENUM::DBR_TYPE {DBR_PRIMITIVE=333,DBR_STS,DBR_TIME, DBR_GR,DBR_CTRL,DBR_NONE};
Extracts the CAFENUM::DBR_TYPE from the channel type
_chtype | input: channel type |
References CAFENUM::DBR_CLASS, CAFENUM::DBR_CTRL, CAFENUM::DBR_GR, CAFENUM::DBR_NONE, CAFENUM::DBR_PRIMITIVE, CAFENUM::DBR_PUT, CAFENUM::DBR_STS, CAFENUM::DBR_STSACK, and CAFENUM::DBR_TIME.
Referenced by Granules::channelVerifyGet(), Granules::channelVerifyGetCtrl(), Granules::channelVerifyPut(), Conduit::getPVCtrlHolder(), Conduit::getPVDataHolder(), and change_eventHandlerArgs::operator()().
unsigned int Helper::convertToUniqueNumber | ( | const char * | pv, | |
ca_client_context * | ccc | |||
) | [inherited] |
Produces a unique identifier from the pvName and ca_client_context for entry into hash table.
pv | input: process variable name | |
ccc | input: current context |
References int.
unsigned int Helper::convertToUniqueNumber | ( | const char * | pv, | |
ca_client_context * | ccc, | |||
unsigned int | ghs | |||
) | [inherited] |
Produces a unique identifier from the pvName, ca_client_context, group handle size
for entry into hash table.
pv | input: process variable name | |
ccc | input: current context | |
ghs | input: size of gs (group handle set) |
References int.
etsDate HandleHelper::epicsTimeStampToDate | ( | epicsTimeStamp | ts | ) | [inline] |
References _etsDate, etsDate::day, etsDate::hour, long, etsDate::min, etsDate::mon, etsDate::nsec, etsDate::sec, and etsDate::year.
HandleHelper::eraseMonitorAction
.
_handle | input: handle identifying Conduit object |
References cs, ECAFE_INVALID_HANDLE, and ICAFE_NORMAL.
References _etsDate, etsDate::day, etsDate::hour, long, etsDate::min, etsDate::mon, etsDate::nsec, etsNorm::nsec, etsDate::sec, etsNorm::secPastEpoch, and etsDate::year.
Retrieves last cached status information for given handle.
_handle | input: handle | |
as | output: alarmStatus [0] and alarmSeverity [1] in array of dbr_short_t[2] |
References __METHOD__, cafeStatus, cs, ECAFE_INVALID_HANDLE, PrintErrorPolicy::getInvalidHandle(), ICAFE_NORMAL, printErrorPolicy, and CAFEStatus::report().
Retrieves last cached status information for given handle.
_handle | input: handle | |
asas | output: alarmStatus [0] and alarmSeverity [1] in array of dbr_short_t[2] |
References __METHOD__, cafeStatus, cs, ECAFE_INVALID_HANDLE, PrintErrorPolicy::getInvalidHandle(), ICAFE_NORMAL, printErrorPolicy, and CAFEStatus::report().
int HandleHelper::getCafeDbrType | ( | unsigned int | _handle, | |
CAFENUM::DBR_TYPE & | cdt | |||
) |
Gets the cafeDbrType (e.g. DBR_TIME).
_handle | input: Conduit object reference | |
cdt | output: CAFENUM::DBR_TYPE |
References __METHOD__, cafeStatus, channelRequestMetaData, cs, ECAFE_INVALID_HANDLE, ChannelRequestMetaData::getCafeDbrType(), ICAFE_NORMAL, CAFEStatus::report(), and Connect::status.
Referenced by CAFE::get(), getNmonitorCtrl(), and getNmonitorData().
CAFENUM::DBR_TYPE HandleHelper::getCafeDbrTypeCB | ( | unsigned int | _handle | ) |
Gets the cafeDbrType of handle from within the callback function.
_handle | input: handle |
References __METHOD__, cafeStatus, cs, CAFENUM::DBR_NONE, ECAFE_INVALID_HANDLE, PrintErrorPolicy::getInvalidHandle(), printErrorPolicy, and CAFEStatus::report().
Retrieves attribute name for a given handle.
_handle | input: handle to Conduit Objecte | |
attribute | output: attribute name |
References __METHOD__, cafeStatus, cs, ECAFE_INVALID_HANDLE, PrintErrorPolicy::getInvalidHandle(), ICAFE_NORMAL, printErrorPolicy, and CAFEStatus::report().
Retrieves device name for a given handle.
_handle | input: handle to Conduit Objecte | |
device | output: device name |
References __METHOD__, cafeStatus, cs, ECAFE_INVALID_HANDLE, PrintErrorPolicy::getInvalidHandle(), ICAFE_NORMAL, printErrorPolicy, and CAFEStatus::report().
int HandleHelper::getChannelRegalia | ( | unsigned int | _handle, | |
ChannelRegalia & | channelInfo | |||
) |
Retrieves channel meta deta held in the ChannelRegalia object.
_handle | input: handle | |
channelInfo | output: ChannelRegalia object |
References __METHOD__, cafeStatus, cs, ECAFE_INVALID_HANDLE, PrintErrorPolicy::getInvalidHandle(), ICAFE_NORMAL, printErrorPolicy, and CAFEStatus::report().
Referenced by CAFE::snapshot2XML().
int HandleHelper::getChannelRequestStatusGet | ( | unsigned int | _handle, | |
ChannelRequestStatus & | crs | |||
) |
Retrieves channel meta deta held in ChannelRequestStatusGet object.
_handle | input: handle | |
crs | output: ChannelRequestStatus instance |
References __METHOD__, cafeStatus, cs, ECAFE_INVALID_HANDLE, PrintErrorPolicy::getInvalidHandle(), ICAFE_NORMAL, printErrorPolicy, and CAFEStatus::report().
Referenced by Connect::createChannel(), and Connect::initCallbackComplete().
int HandleHelper::getChannelRequestStatusGetClassName | ( | unsigned int | _handle, | |
ChannelRequestStatus & | crsClassName | |||
) |
Retrieves channel meta deta held in ChannelRequestStatusGetClassName object.
_handle | input: handle | |
crsClassName | output: ChannelRequestStatus instance |
References __METHOD__, cafeStatus, cs, ECAFE_INVALID_HANDLE, PrintErrorPolicy::getInvalidHandle(), ICAFE_NORMAL, printErrorPolicy, and CAFEStatus::report().
int HandleHelper::getChannelRequestStatusGetCtrl | ( | unsigned int | _handle, | |
ChannelRequestStatus & | crsCtrl | |||
) |
Retrieves channel meta deta held in ChannelRequestStatusGetCtrl object.
_handle | input: handle | |
crsCtrl | output: ChannelRequestStatus instance |
References __METHOD__, cafeStatus, cs, ECAFE_INVALID_HANDLE, PrintErrorPolicy::getInvalidHandle(), ICAFE_NORMAL, printErrorPolicy, and CAFEStatus::report().
Referenced by Connect::initCallbackComplete(), and main().
int HandleHelper::getChannelRequestStatusGetSTSACK | ( | unsigned int | _handle, | |
ChannelRequestStatus & | crsSTSACK | |||
) |
Retrieves channel meta deta held in ChannelRequestStatusGetSTSACK object.
_handle | input: handle | |
crsSTSACK | output: ChannelRequestStatus instance |
References __METHOD__, cafeStatus, cs, ECAFE_INVALID_HANDLE, PrintErrorPolicy::getInvalidHandle(), ICAFE_NORMAL, printErrorPolicy, and CAFEStatus::report().
Referenced by Connect::initCallbackComplete().
ca_client_context * HandleHelper::getContextFromHandle | ( | unsigned int | handle | ) |
Retrieves the ca_client_context for first matching of handle.
handle | input: handle |
References __METHOD__, cs, and itcs.
Referenced by Connect::getClientContext().
ca_client_context * HandleHelper::getContextFromPV | ( | const char * | _pv | ) |
Retrieves context for a first matching of this process variable.
_pv | input: process variable |
References cs, itcs, PVNAME_SIZE, and Helper::removeLeadingAndTrailingSpaces().
Referenced by Connect::getClientContext().
chtype HandleHelper::getDataTypeCB | ( | unsigned int | _handle | ) |
Gets the datatype of handle from within the callback function.
_handle | input: handle |
References __METHOD__, cafeStatus, cs, ECAFE_INVALID_HANDLE, PrintErrorPolicy::getInvalidHandle(), long, printErrorPolicy, and CAFEStatus::report().
Retrieves the native data type from ChannelRegalia object.
_handle | input: handle | |
ndt | output: CAFE_DATATYPE object |
References __METHOD__, cafeStatus, cs, ECAFE_INVALID_HANDLE, PrintErrorPolicy::getInvalidHandle(), ICAFE_NORMAL, printErrorPolicy, and CAFEStatus::report().
Referenced by CAFE::getWFAsString(), and CAFE::getWFAsStringCache().
Gets the dataType requested (e.g. DBR_STRING etc.).
_handle | input: Conduit object reference | |
rdt | output: DBR_XXX |
References __METHOD__, cafeStatus, channelRequestMetaData, cs, ECAFE_INVALID_HANDLE, ChannelRequestMetaData::getDataType(), PrintErrorPolicy::getInvalidHandle(), ICAFE_NORMAL, printErrorPolicy, CAFEStatus::report(), and Connect::status.
chtype HandleHelper::getDbrDataTypeCB | ( | unsigned int | _handle | ) |
Gets the dbrdatatype of handle from within the callback function.
_handle | input: handle |
References __METHOD__, cafeStatus, cs, ECAFE_INVALID_HANDLE, PrintErrorPolicy::getInvalidHandle(), long, printErrorPolicy, and CAFEStatus::report().
unsigned int HandleHelper::getDisconnectedHandles | ( | std::vector< unsigned int > & | dhV, | |
std::vector< std::string > & | pvV | |||
) |
Retrieves a list of disconnected PVs and their handles.
dhV | output: Vector<unsigned int> of disconnected handles | |
pvV | output: Vector<string> of corresponding disconnected PVs |
Referenced by Connect::getDisconnectedHandles(), and main().
vector< unsigned int > HandleHelper::getDisconnectedHandlesFromWithinGroupV | ( | unsigned int | _groupHandle | ) |
Retrieves all handles belonging to a group referenced by its groupHandle.
_groupHandle | input: groupHandle |
References cafeStatus, cs, ECAFE_UNKNOWN_GROUP, gs, itgs, and CAFEStatus::report().
Referenced by allChannelsWithinGroupConnectedV().
short HandleHelper::getEnumFromString | ( | unsigned int | _handle, | |
std::string | enumStringValue | |||
) |
Retrieves enum unsigned short state of enumerated string type.
_handle | input: handle | |
enumStringValue | input: enum string state |
References __METHOD__, cafeStatus, cs, ECAFE_INVALID_HANDLE, PVCtrlHolder::getEnumFromString(), PrintErrorPolicy::getInvalidHandle(), getNelemRequestCtrl(), ICAFE_NORMAL, printErrorPolicy, CAFEStatus::report(), PVCtrlHolder::setNelem(), and setNelemToRetrieveFromCache().
Referenced by main(), Instant< dbr_short_t >::setAndGetDbrString(), and Instant< dbr_short_t >::setAndGetString().
References _etsDate, etsDate::day, getTimeStamp(), etsDate::hour, long, etsDate::min, etsDate::mon, etsDate::nsec, etsDate::sec, and etsDate::year.
References _etsNorm, getTimeStamp(), etsNorm::nsec, and etsNorm::secPastEpoch.
unsigned int HandleHelper::getGroupHandleFromGroupName | ( | const char * | _groupName, | |
ca_client_context * | ccc | |||
) |
unsigned int HandleHelper::getGroupHandleFromGroupName | ( | const char * | _groupName | ) | [inline] |
Referenced by Connect::groupClose().
std::string HandleHelper::getGroupNameFromGroupHandle | ( | unsigned int | _groupHandle | ) |
Retrieves groupName from grouphanlde.
_groupHandle | input: handle to groupConduit object |
References cafeStatus, ECAFE_UNKNOWN_GROUP, gs, itgs, and CAFEStatus::report().
Referenced by CAFE::groupAttach(), Connect::groupClose(), and CAFE::groupFetch().
unsigned int HandleHelper::getGroupNPV | ( | const char * | _groupName | ) | [inline] |
References getGroupNPV().
unsigned int HandleHelper::getGroupNPV | ( | const char * | _groupName, | |
ca_client_context * | ccc | |||
) |
Retrieves number of process variables within a group as identified by the groupHandle.
_groupHandle | input: handle to groupConduit object |
References cafeStatus, ECAFE_UNKNOWN_GROUP, gs, itgs, and CAFEStatus::report().
Referenced by getGroupNPV().
unsigned int HandleHelper::getHandleFromPV | ( | const char * | _pv, | |
ca_client_context * | ccc | |||
) |
Retrieves handle for a given process variable.
_pv | input: process variable | |
ccc | input: ca_client_context |
References cs, getHandleFromPVAlias(), itcs, PVNAME_SIZE, and Helper::removeLeadingAndTrailingSpaces().
unsigned int HandleHelper::getHandleFromPV | ( | const char * | _pv | ) |
Retrieves handle for a given process variable.
_pv | input: process variable |
Referenced by CAFE::getCache(), Connect::getHandleFromPV(), main(), Connect::monitorStopPulseID(), Connect::printStatus(), and Connect::printStatusIfError().
unsigned int HandleHelper::getHandleFromPVAlias | ( | const char * | _pv, | |
ca_client_context * | ccc | |||
) |
Retrieves handle for a given process variable alias.
_pv | input: process variable alias | |
ccc | input: ca_client_context |
References cs, itcs, PVNAME_SIZE, and Helper::removeLeadingAndTrailingSpaces().
unsigned int HandleHelper::getHandleFromPVAlias | ( | const char * | _pv | ) |
Retrieves handle for a given process variable.
_pv | input: process variable |
Referenced by getHandleFromPV().
unsigned int HandleHelper::getHandleFromPVWithinGroup | ( | const char * | _pv, | |
ca_client_context * | ccc, | |||
unsigned int | gh | |||
) |
Retrieves handle for a given process variable with a CAFE group within a give ca context.
_pv | input: process variable | |
ccc | input: ca_client_context | |
gh | input: groupHandle |
References cs, itcs, PVNAME_SIZE, and Helper::removeLeadingAndTrailingSpaces().
Retrieves handle for a given process variable with a CAFE group.
_pv | input: process variable | |
gh | input: groupHandle |
Referenced by Connect::getHandleFromPVWithinGroup(), and CAFE::snapshot2XML().
std::vector< unsigned int > HandleHelper::getHandlesFromPVs | ( | std::vector< std::string > | pvV | ) |
Rerieves vector of handles for given vector of PVs.
pvV | input: vector of PVS |
References getHandlesFromPVs().
std::vector< unsigned int > HandleHelper::getHandlesFromPVs | ( | std::vector< std::string > | pvV, | |
ca_client_context * | ccc | |||
) |
Rerieves vector of handles for given vector of PVs.
pvV | input: vector of PVS | |
ccc | input: ca_client_context * |
References cs, itcs, PVNAME_SIZE, and Helper::removeLeadingAndTrailingSpaces().
Referenced by getHandlesFromPVs().
Retrieves all handles belonging to a group referenced by its groupHandle.
_groupHandle | input: groupHandle |
References cafeStatus, ECAFE_UNKNOWN_GROUP, gs, itgs, and CAFEStatus::report().
Referenced by CAFE::getPVArray(), and CAFE::setVVString().
Retrieves all handles belonging to a group referenced by its groupHandle.
_groupHandle | input: groupHandle |
References cafeStatus, ECAFE_UNKNOWN_GROUP, gs, itgs, and CAFEStatus::report().
unsigned int HandleHelper::getHandleStates | ( | std::vector< unsigned int > & | dhV, | |
std::vector< std::string > & | pvV, | |||
std::vector< unsigned short > & | connV | |||
) |
Retrieves a list of handles and PVs, whether connected or disconnected.
dhV | output: Vector<unsigned int> of all handles | |
pvV | output: Vector<string> of corresponding PVs | |
connV | output: Vector<unsigned short> of connection states |
Referenced by main().
vector< unsigned int > HandleHelper::getHandlesWithMonitors | ( | ) |
Return a vector of handles that have monitors If a handle has n monitors it appears n time in the return vector. Monitors in waiting are als included in the count.
References cs, getMonitorIDs(), getMonitorIDsInWaiting(), and itcs.
vector< string > HandleHelper::getMonitorAction | ( | bool | onlyIfNewData | ) |
HandleHelper::getMonitorAction retrieves list of actions to perform on change of value
If input boolean is true; then only oustantanding actions are listed.
onlyIfNewData | input: boolean to |
HandleHelper::getMonitorAction.
_handle | input: handle identifying Conduit object | |
msV | output: vector<string> giving the monitor actions |
References cs, ECAFE_INVALID_HANDLE, and ICAFE_NORMAL.
Referenced by getMonitorHandlesAndActions().
int HandleHelper::getMonitorHandlesAndActions | ( | std::vector< unsigned int > & | handleV, | |
std::vector< std::string > & | actionV | |||
) |
HandleHelper::getMonitorHandlesAndActions retrieves list of handles and their actions to perform on change of value
.
handleV | output: Vector of handles | |
actionV | output: Vector of monitor actios |
References cs, getMonitorAction(), getMonitorIDs(), getMonitorIDsInWaiting(), ICAFE_NORMAL, and itcs.
Gets vector of MonitorIDs.
_handle | input : Conduit object reference |
References getMonitorPolicyVector().
Referenced by getHandlesWithMonitors(), getMonitorHandlesAndActions(), printDisconnectedHandles(), printHandle(), printHandles(), printHandlesV(), and printMonitors().
Gets vector of MonitorIDs in waiting (value=0), i.e., waiting for channel connection.
_handle | input : Conduit object reference |
References getMonitorPolicyInWaitingVector().
Referenced by getHandlesWithMonitors(), getMonitorHandlesAndActions(), printHandle(), printHandles(), printHandlesV(), and printMonitors().
int HandleHelper::getMonitorPolicyInWaitingVector | ( | unsigned int | _handle, | |
std::vector< MonitorPolicy > & | mpV | |||
) |
Gets the MonitorPolicyVector.
_handle | input : Conduit object reference | |
mpV | output: vector<MonitorPolicy> |
References cafeStatus, cs, ECAFE_INVALID_HANDLE, PrintErrorPolicy::getInvalidHandle(), ICAFE_NORMAL, printErrorPolicy, CAFEStatus::report(), and Connect::status.
Referenced by getMonitorIDsInWaiting().
int HandleHelper::getMonitorPolicyVector | ( | unsigned int | _handle, | |
std::vector< MonitorPolicy > & | mpV | |||
) |
Gets the MonitorPolicyVector.
_handle | input : Conduit object reference | |
mpV | output: vector<MonitorPolicy> |
References cafeStatus, cs, ECAFE_INVALID_HANDLE, PrintErrorPolicy::getInvalidHandle(), ICAFE_NORMAL, printErrorPolicy, CAFEStatus::report(), and Connect::status.
Referenced by Instant< CTYPE >::compareAndMatchMany(), CAFE::get(), getMonitorIDs(), getNmonitor(), getNmonitorCtrl(), getNmonitorData(), Instant< CTYPE >::matchMany(), Instant< CTYPE >::setAndMatch(), and Instant< CTYPE >::setAndMatchMany().
int HandleHelper::getNelem | ( | unsigned int | _handle, | |
unsigned int & | c, | |||
unsigned int & | n, | |||
unsigned int & | r | |||
) |
Retrieves the no of elements as initiated by client, no of native elements, no of elements requested to ca.
_handle | input: Conduit object reference | |
c | output: no of elements as stated by client | |
n | output: no of native elements | |
r | output: no of elements as requested to ca |
References __METHOD__, cafeStatus, cs, ECAFE_INVALID_HANDLE, PrintErrorPolicy::getInvalidHandle(), ICAFE_NORMAL, printErrorPolicy, and CAFEStatus::report().
Retrieves the no of elements to read out from an array, e.g. waveform as requested by client.
_handle | input: Conduit object reference |
References __METHOD__, cafeStatus, cs, ECAFE_INVALID_HANDLE, PrintErrorPolicy::getInvalidHandle(), printErrorPolicy, and CAFEStatus::report().
Referenced by Instant< CTYPE >::compareAndMatchMany(), CAFE::get(), Connect::getNelemClient(), CAFE::groupGet(), CAFE::groupSet(), main(), Instant< CTYPE >::matchMany(), Instant< CTYPE >::set(), CAFE::set(), Instant< CTYPE >::setAndGet(), Instant< CTYPE >::setAndMatch(), Instant< CTYPE >::setAndMatchMany(), Instant< CTYPE >::setMany(), Instant< dbr_short_t >::setManyString(), CAFE::setNelemToOne(), and CAFE::setNelemToPrevious().
Retrieves the no of elements read out from an array e.g. waveform, as delivered to ca through DBR_CTRL.
_handle | input: Conduit object reference |
References __METHOD__, cafeStatus, cs, ECAFE_INVALID_HANDLE, PrintErrorPolicy::getInvalidHandle(), printErrorPolicy, and CAFEStatus::report().
Retrieves the no of native elements.
_handle | input: Conduit object reference |
References __METHOD__, cafeStatus, cs, ECAFE_INVALID_HANDLE, PrintErrorPolicy::getInvalidHandle(), printErrorPolicy, and CAFEStatus::report().
Referenced by CAFEBS::BSDataHolder::BSDataHolder(), Instant< CTYPE >::compareAndMatchMany(), CAFE::get(), Instant< CTYPE >::getCache(), Connect::getNelemNative(), main(), Instant< CTYPE >::matchMany(), Instant< CTYPE >::set(), CAFE::set(), Instant< CTYPE >::setAndMatchMany(), and CAFE::setNelemToPrevious().
Retrieves the no of elements to read out from an array, e.g. waveform as delivered to ca.
_handle | input: Conduit object reference |
References __METHOD__, cafeStatus, cs, ECAFE_INVALID_HANDLE, PrintErrorPolicy::getInvalidHandle(), printErrorPolicy, and CAFEStatus::report().
Referenced by Instant< CTYPE >::compareAndMatchMany(), CAFE::get(), CAFE::getCache(), Connect::getNelemRequest(), main(), Instant< CTYPE >::matchMany(), Instant< CTYPE >::setAndMatch(), Instant< CTYPE >::setAndMatchMany(), Instant< CTYPE >::setMany(), Instant< dbr_short_t >::setManyString(), and CAFE::setNelemToRetrieveFromCacheToOne().
Retrieves the no of elements read out from an array e.g. waveform, as delivered to ca through DBR_CTRL.
_handle | input: Conduit object reference |
References __METHOD__, cafeStatus, cs, ECAFE_INVALID_HANDLE, PrintErrorPolicy::getInvalidHandle(), printErrorPolicy, and CAFEStatus::report().
Referenced by getEnumFromString(), getStringFromEnum(), and isEnum().
Gets the no of elements to be read out from a cached array, e.g. waveform.
_handle | input: Conduit object reference |
References __METHOD__, cafeStatus, channelRequestMetaData, cs, ECAFE_INVALID_HANDLE, PrintErrorPolicy::getInvalidHandle(), ChannelRequestMetaData::getNelem(), ChannelRequestMetaData::getNelemCache(), ChannelRequestMetaData::getOffset(), printErrorPolicy, and CAFEStatus::report().
Referenced by main(), and CAFE::setNelemToRetrieveFromCacheToOne().
Gets the no of elements to be read out from a cached array, e.g. waveform.
_handle | input: Conduit object reference |
References __METHOD__, cafeStatus, channelRequestMetaCtrl, cs, ECAFE_INVALID_HANDLE, PrintErrorPolicy::getInvalidHandle(), ChannelRequestMetaData::getNelem(), ChannelRequestMetaData::getNelemCache(), ChannelRequestMetaData::getOffset(), printErrorPolicy, and CAFEStatus::report().
Referenced by main().
unsigned int HandleHelper::getNextFreeHandle | ( | ) |
Retrieves the next available handle.
References __METHOD__, cs, getNoHandles(), and itcs.
Gets Number of MonitorPolicyVectors.
_handle | input : Conduit object reference |
References getMonitorPolicyVector().
Gets Number of MonitorPolicyVectors for CTRL_ type.
_handle | input : Conduit object reference |
References CAFENUM::DBR_CTRL, CAFENUM::DBR_GR, getCafeDbrType(), and getMonitorPolicyVector().
Referenced by CAFE::getCtrlCache().
Gets Number of MonitorPolicyVectors for <= DBR_TIME type.
_handle | input : Conduit object reference |
References CAFENUM::DBR_TIME, getCafeDbrType(), and getMonitorPolicyVector().
Referenced by Instant< CTYPE >::get(), CAFE::get(), Instant< CTYPE >::getCache(), and CAFE::getCache().
unsigned int HandleHelper::getNoHandles | ( | ) |
Retrieves the total number of handled.
Referenced by getNextFreeHandle().
Retrieves the offset; gives element no from which data should be returned.
_handle | input: Conduit object reference |
References __METHOD__, cafeStatus, channelRequestMetaDataClient, cs, ECAFE_INVALID_HANDLE, PrintErrorPolicy::getInvalidHandle(), ChannelRequestMetaData::getOffset(), printErrorPolicy, and CAFEStatus::report().
Retrieves the last offset; gives element no from which data was actually returned.
_handle | input: Conduit object reference |
References __METHOD__, cafeStatus, channelRequestMetaData, cs, ECAFE_INVALID_HANDLE, PrintErrorPolicy::getInvalidHandle(), ChannelRequestMetaData::getOffset(), printErrorPolicy, and CAFEStatus::report().
References getTimeStamp(), and ICAFE_NORMAL.
unsigned int HandleHelper::getPulseIDFromTS | ( | epicsTimeStamp | ts | ) | [inline] |
const char* HandleHelper::getPV | ( | unsigned int | _handle | ) | [inline] |
References getPVFromHandle().
const char * HandleHelper::getPVAlias | ( | unsigned int | handle, | |
ca_client_context * | ccc | |||
) |
Retrieves the process variable from a given handle.
handle | input: handle | |
ccc | input: ca_client_context |
References __METHOD__, cs, PrintErrorPolicy::getInvalidHandle(), itcs, and printErrorPolicy.
const char * HandleHelper::getPVAlias | ( | unsigned int | handle | ) |
Retrieves the process variable from a given handle.
handle | input: handle |
const char * HandleHelper::getPVFromHandle | ( | unsigned int | handle, | |
ca_client_context * | ccc | |||
) |
Retrieves the process variable from a given handle.
handle | input: handle | |
ccc | input: ca_client_context |
References __METHOD__, cs, PrintErrorPolicy::getInvalidHandle(), itcs, and printErrorPolicy.
const char * HandleHelper::getPVFromHandle | ( | unsigned int | handle | ) |
Retrieves the process variable from a given handle.
handle | input: handle |
Referenced by Instant< CTYPE >::compareAndMatchMany(), Connect::createChannel(), CAFE::get(), getPV(), Connect::getPVData(), Connect::getPVFromHandle(), Connect::initCallbackComplete(), Instant< CTYPE >::matchMany(), Instant< CTYPE >::setAndGet(), Instant< dbr_short_t >::setAndGetDbrString(), Instant< dbr_short_t >::setAndGetString(), Instant< CTYPE >::setAndMatch(), Instant< CTYPE >::setAndMatchMany(), Instant< CTYPE >::setMany(), and Instant< dbr_short_t >::setManyString().
Retrieves last cached status information for given handle.
_handle | input: handle |
References __METHOD__, cafeStatus, cs, ECAFE_INVALID_HANDLE, PrintErrorPolicy::getInvalidHandle(), printErrorPolicy, and CAFEStatus::report().
Referenced by Instant< CTYPE >::compareAndMatchMany(), Instant< CTYPE >::matchMany(), Instant< CTYPE >::setAndMatch(), Instant< CTYPE >::setAndMatchMany(), Instant< CTYPE >::setMany(), and Instant< dbr_short_t >::setManyString().
string HandleHelper::getStringFromEnum | ( | unsigned int | _handle, | |
unsigned short | enumValue | |||
) |
Retrieves last cached timestamp information for given handle.
_handle | input: handle | |
ts | output: epicsTimeStamp |
References __METHOD__, cafeStatus, cs, ECAFE_INVALID_HANDLE, PrintErrorPolicy::getInvalidHandle(), ICAFE_NORMAL, printErrorPolicy, and CAFEStatus::report().
Referenced by getEpicsTimeStampAsDate(), getEpicsTimeStampAsUInt32(), and getPulseID().
Gets the user arg as uint in event callback; meant for retrieving the current monitor ID.
_handle | input: handle |
References __METHOD__, cafeStatus, cs, ECAFE_INVALID_HANDLE, PrintErrorPolicy::getInvalidHandle(), long, printErrorPolicy, and CAFEStatus::report().
bool HandleHelper::isChannelConnected | ( | unsigned int | handle | ) |
Method returns true if channel is connected, else false.
handle | input: handle |
References cs.
Referenced by Instant< CTYPE >::compareAndMatchMany(), Connect::initCallbackComplete(), Instant< CTYPE >::matchMany(), Instant< CTYPE >::setAndMatch(), Instant< CTYPE >::setAndMatchMany(), Instant< CTYPE >::setMany(), and Instant< dbr_short_t >::setManyString().
bool HandleHelper::isEnum | ( | unsigned int | _handle | ) |
Retrieves whether pv is of enumerated type.
_handle | input: handle |
References __METHOD__, cafeStatus, cs, ECAFE_INVALID_HANDLE, PrintErrorPolicy::getInvalidHandle(), getNelemRequestCtrl(), PVCtrlHolder::getNoEnumStrings(), ICAFE_NORMAL, printErrorPolicy, CAFEStatus::report(), PVCtrlHolder::setNelem(), and setNelemToRetrieveFromCtrlCache().
Referenced by Connect::isEnum().
unsigned int HandleHelper::printChannels | ( | ) | [inline] |
References printHandles().
unsigned int HandleHelper::printDisconnectedChannels | ( | ) | [inline] |
References printDisconnectedChannels().
Referenced by printDisconnectedChannels().
unsigned int HandleHelper::printDisconnectedHandles | ( | void | ) |
Prints Conduit member values for all disconnected CAFEConduit objects (handles).
References cs, getMonitorIDs(), and itcs.
Referenced by Connect::printDisconnectedHandles().
Prints Conduit member values for all given handle.
References __METHOD__, cafeDataTypeCode, cafeStatus, cs, ECAFE_INVALID_HANDLE, getMonitorIDs(), getMonitorIDsInWaiting(), PolicyHelper::getSGTimeout(), PolicyHelper::getTimeout(), gs, ICAFE_NORMAL, CAFEDataTypeCode::message(), and CAFEStatus::report().
Referenced by Granules::channelExecuteGet(), Granules::channelExecuteGetCtrl(), Granules::channelExecutePut(), Instant< CTYPE >::compareAndMatchMany(), Instant< CTYPE >::getCache(), Instant< CTYPE >::matchMany(), Connect::printHandle(), Instant< CTYPE >::setAndMatch(), Instant< CTYPE >::setAndMatchMany(), Instant< CTYPE >::setMany(), and Instant< dbr_short_t >::setManyString().
unsigned int HandleHelper::printHandles | ( | void | ) |
Prints Conduit member values for all Conduit objects (handles).
References cafeDataTypeCode, cs, getMonitorIDs(), getMonitorIDsInWaiting(), PolicyHelper::getSGTimeout(), PolicyHelper::getTimeout(), gs, itcs, and CAFEDataTypeCode::message().
Referenced by printChannels().
Prints Conduit member values for all given handles.
References __METHOD__, cafeDataTypeCode, cafeStatus, cs, ECAFE_INVALID_HANDLE, getMonitorIDs(), getMonitorIDsInWaiting(), PolicyHelper::getSGTimeout(), PolicyHelper::getTimeout(), gs, ICAFE_NORMAL, CAFEDataTypeCode::message(), and CAFEStatus::report().
Referenced by Connect::printHandles().
Prints Conduit member values for all given handles.
References __METHOD__, cafeDataTypeCode, cafeStatus, cs, ECAFE_INVALID_HANDLE, getMonitorIDs(), getMonitorIDsInWaiting(), PolicyHelper::getSGTimeout(), PolicyHelper::getTimeout(), gs, ICAFE_NORMAL, CAFEDataTypeCode::message(), and CAFEStatus::report().
unsigned int HandleHelper::printMonitors | ( | ) |
Prints Conduit member values for all Conduit objects (handles) that have a monitor.
References cafeDataTypeCode, cs, getMonitorIDs(), getMonitorIDsInWaiting(), PolicyHelper::getTimeout(), itcs, and CAFEDataTypeCode::message().
void Helper::removeLeadingAndTrailingSpaces | ( | const char * | pv, | |
char | pvStripped[PVNAME_SIZE] | |||
) | [inherited] |
Removes leading and trailing blanks.
pv | input: process variable name | |
pvStripped | output: process variable name stripped of forward and trailing spaces |
Referenced by CAFEBS::BSChannel::BSChannel(), Connect::collectionFetch(), Connect::collectionMemberList(), Connect::devicePositionMap(), Connect::devicePositionOrderedMultiMap(), Connect::devicePositionV(), Connect::fetchIndexOfCollectionMember(), Connect::fetchIndexOfGroupMember(), CAFEBS::BSDataHolder::getAttributeAsDoubleV(), getContextFromPV(), PVCtrlHolder::getEnumFromString(), getHandleFromPV(), getHandleFromPVAlias(), getHandleFromPVWithinGroup(), getHandlesFromPVs(), MemberMap::getIndex(), deviceCollection::getPosition(), Connect::groupCombine(), Connect::groupDefine(), Connect::groupMemberList(), Connect::isCollection(), Connect::isGroup(), Transpose< dbr_string_t >::putString(), Instant< dbr_short_t >::setAndGetDbrString(), Instant< dbr_short_t >::setAndGetString(), Instant< dbr_short_t >::setManyString(), and Connect::setPVAlias().
void Helper::removeLeadingAndTrailingSpacesDbrString | ( | const char * | pv, | |
char | pvStripped[MAX_STRING_SIZE] | |||
) | [inherited] |
Removes leading and trailing blanks.
pv | input: process variable name | |
pvStripped | output: process variable name stripped of forward and trailing spaces |
void Helper::removeLeadingAndTrailingSpacesPseudo | ( | const char * | pv, | |
char | pvStripped[PVGROUP_PSEUDO_SIZE] | |||
) | [inherited] |
Removes leading and trailing blanks.
pv | input: process variable name | |
pvStripped | output: process variable name stripped of forward and trailing spaces |
Referenced by Connect::getPVData().
int HandleHelper::setCafeDbrType | ( | unsigned int | _handle, | |
CAFENUM::DBR_TYPE | cdt | |||
) |
Sets the cafeDbrType (e.g. DBR_TIME) and associated dbrDataTpe (e.g. DBR_TIME_zzz).
_handle | input: Conduit object reference | |
cdt | input: CAFENUM::DBR_TYPE |
References __METHOD__, cafeMutex, cafeStatus, channelRequestMetaData, channelRequestMetaDataClient, cs, ECAFE_INVALID_HANDLE, PrintErrorPolicy::getInvalidHandle(), ICAFE_NORMAL, MUTEX, printErrorPolicy, CAFEStatus::report(), ChannelRequestMetaData::setDbrTypesFromCafeDbrType(), and Connect::status.
Referenced by CAFE::get(), and CAFE::groupGet().
int HandleHelper::setCafeDbrTypeV | ( | std::vector< unsigned int > | _handleV, | |
CAFENUM::DBR_TYPE | cdt | |||
) |
Sets the cafeDbrType (e.g. DBR_TIME) and associated dbrDataTpe (e.g. DBR_TIME_zzz).
_handleV | input: vector<unsigned int> Conduit object references | |
cdt | input: CAFENUM::DBR_TYPE |
References __METHOD__, cafeMutex, cafeStatus, channelRequestMetaData, channelRequestMetaDataClient, cs, ECAFE_INVALID_HANDLE, PrintErrorPolicy::getInvalidHandle(), ICAFE_NORMAL, MUTEX, printErrorPolicy, CAFEStatus::report(), ChannelRequestMetaData::setDbrTypesFromCafeDbrType(), and Connect::status.
Given the deliminator, sets the device/attribute components of the epics channel for a givem handle.
_handle | input: handle to Conduit Objecte | |
deliminator | input: string (at PSI this is ususally a colon, i.e. ":") |
References __METHOD__, cafeMutex, cafeStatus, channelDeviceAttribute, cs, ECAFE_INVALID_HANDLE, PrintErrorPolicy::getInvalidHandle(), ICAFE_NORMAL, ChannelDeviceAttribute::init(), MUTEX, printErrorPolicy, and CAFEStatus::report().
int HandleHelper::setChannelDeviceAttribute | ( | std::string | deliminator | ) |
Given the deliminator, sets the device/attribute components of the epics channel, for all handles.
deliminator | deliminator: string (at PSI this is ususally a colon, i.e. ":") |
References cs, ICAFE_NORMAL, and itcs.
void HandleHelper::setFirstAndLastArrayElements | ( | unsigned int | _handle, | |
unsigned int | _start, | |||
unsigned int | _last | |||
) | [inline] |
References setNelem(), and setOffset().
Sets the buffer size for map<pulseID,pvdata> for use in cafe bsread.
_handle | input: Conduit object reference | |
_bufferSize | input: bufferSize value |
References __METHOD__, cafeMutex, cafeStatus, cs, ECAFE_INVALID_HANDLE, PrintErrorPolicy::getInvalidHandle(), ICAFE_NORMAL, MUTEX, printErrorPolicy, and CAFEStatus::report().
int HandleHelper::setMapPulseIDBufferSizeAll | ( | unsigned short | _bufferSize | ) |
Sets the buffer size for map<pulseID,pvdata> for use in cafe bsread for all handles.
_bufferSize | input: bufferSize value |
References cafeMutex, cs, ICAFE_NORMAL, itcs, and MUTEX.
Sets the no of elements to read out from an array, e.g. waveform.
_handle | input: Conduit object reference | |
_nelem | input: No of elements for ca data transfer |
References __METHOD__, cafeMutex, cafeStatus, channelRequestMetaDataClient, cs, ECAFE_INVALID_HANDLE, PrintErrorPolicy::getInvalidHandle(), MUTEX, printErrorPolicy, CAFEStatus::report(), and ChannelRequestMetaData::setNelem().
Sets the no of elements to read out from an array, e.g. waveform, to native value.
_handle | input: Conduit object reference |
References __METHOD__, cafeMutex, cafeStatus, channelRequestMetaDataClient, cs, ECAFE_INVALID_HANDLE, PrintErrorPolicy::getInvalidHandle(), MUTEX, printErrorPolicy, CAFEStatus::report(), and ChannelRequestMetaData::setNelem().
int HandleHelper::setNelem | ( | ) |
Sets the no of elements to read out from an array, e.g. waveform, to native value for all handles.
References cs, ICAFE_NORMAL, and itcs.
Referenced by Instant< CTYPE >::compareAndMatchMany(), CAFE::groupSet(), main(), Instant< CTYPE >::matchMany(), Instant< CTYPE >::set(), CAFE::set(), Instant< CTYPE >::setAndGet(), Instant< CTYPE >::setAndMatch(), Instant< CTYPE >::setAndMatchMany(), setFirstAndLastArrayElements(), Instant< CTYPE >::setMany(), Instant< dbr_short_t >::setManyString(), setNelemToNative(), CAFE::setNelemToOne(), and CAFE::setNelemToPrevious().
Sets the no of elements to read out from an array, e.g. waveform, via DBR_CTRL.
_handle | input: Conduit object reference | |
_nelem | input: No of elements for ca data transfer |
References __METHOD__, cafeMutex, cafeStatus, channelRequestMetaCtrlClient, cs, ECAFE_INVALID_HANDLE, PrintErrorPolicy::getInvalidHandle(), MAX_NELEM_FOR_CTRL_BUFFER, MUTEX, printErrorPolicy, CAFEStatus::report(), and ChannelRequestMetaData::setNelem().
References setNelem().
Referenced by main().
unsigned int HandleHelper::setNelemToRetrieveFromCache | ( | unsigned int | _handle, | |
unsigned int | _nelem | |||
) |
Sets the no of elements to read out from an cached array, e.g. waveform.
_handle | input: Conduit object reference | |
_nelem | input: No of elements for data transfer from cache |
References __METHOD__, cafeMutex, cafeStatus, channelRequestMetaData, cs, ECAFE_INVALID_HANDLE, PrintErrorPolicy::getInvalidHandle(), ChannelRequestMetaData::getNelem(), ChannelRequestMetaData::getOffset(), MUTEX, printErrorPolicy, CAFEStatus::report(), and ChannelRequestMetaData::setNelemCache().
Sets the no of elements to read out from an cached array to native value, e.g. waveform.
_handle | input: Conduit object reference |
References __METHOD__, cafeMutex, cafeStatus, channelRequestMetaData, cs, ECAFE_INVALID_HANDLE, PrintErrorPolicy::getInvalidHandle(), ChannelRequestMetaData::getNelem(), ChannelRequestMetaData::getOffset(), MUTEX, printErrorPolicy, CAFEStatus::report(), and ChannelRequestMetaData::setNelemCache().
Referenced by Instant< CTYPE >::compareAndMatchMany(), CAFE::get(), Instant< CTYPE >::getCache(), getEnumFromString(), getStringFromEnum(), main(), Instant< CTYPE >::matchMany(), Instant< CTYPE >::setAndMatch(), Instant< CTYPE >::setAndMatchMany(), CAFE::setNelemToRetrieveFromCacheToOne(), and CAFE::setNelemToRetrieveFromCacheToPrevious().
unsigned int HandleHelper::setNelemToRetrieveFromCtrlCache | ( | unsigned int | _handle, | |
unsigned int | _nelem | |||
) |
Sets the no of elements to read out from an cached array, e.g. waveform.
_handle | input: Conduit object reference | |
_nelem | input: No of elements for data transfer from cache |
References __METHOD__, cafeMutex, cafeStatus, channelRequestMetaCtrl, cs, ECAFE_INVALID_HANDLE, PrintErrorPolicy::getInvalidHandle(), ChannelRequestMetaData::getNelem(), ChannelRequestMetaData::getOffset(), MAX_NELEM_FOR_CTRL_BUFFER, MUTEX, printErrorPolicy, CAFEStatus::report(), and ChannelRequestMetaData::setNelemCache().
Sets the no of elements to read out from an cached array to min(native, ) value, e.g. waveform.
_handle | input: Conduit object reference |
References __METHOD__, cafeMutex, cafeStatus, channelRequestMetaCtrl, cs, ECAFE_INVALID_HANDLE, PrintErrorPolicy::getInvalidHandle(), ChannelRequestMetaData::getNelem(), ChannelRequestMetaData::getOffset(), MAX_NELEM_FOR_CTRL_BUFFER, MUTEX, printErrorPolicy, CAFEStatus::report(), and ChannelRequestMetaData::setNelemCache().
Referenced by CAFE::getCtrl(), isEnum(), and main().
Sets the offset; give element no from which data should be returned.
_handle | input: Conduit object reference | |
_offset | input: Offset value |
References __METHOD__, cafeMutex, cafeStatus, channelRequestMetaDataClient, cs, ECAFE_INVALID_HANDLE, PrintErrorPolicy::getInvalidHandle(), MUTEX, printErrorPolicy, CAFEStatus::report(), and ChannelRequestMetaData::setOffset().
Referenced by main(), and setFirstAndLastArrayElements().
Sets the alarm, severity ts in conduit (used by get method WITH_CALLBACK).
_handle | input: Conduit object reference | |
a | input: alarm | |
s | input: severity | |
ets | input: epicsTimeStamp |
References __METHOD__, cafeMutex, cafeStatus, cs, ECAFE_INVALID_HANDLE, PrintErrorPolicy::getInvalidHandle(), ICAFE_NORMAL, MUTEX, printErrorPolicy, CAFEStatus::report(), and Connect::status.
Referenced by Transpose< CTYPE >::get(), Transpose< CAFE_DATATYPE_UNION >::get(), Transpose< dbr_string_t >::get(), and CAFE::get().
References _etsDate, etsDate::day, etsDate::hour, long, etsDate::min, etsDate::mon, etsNorm::nsec, etsDate::nsec, etsDate::sec, etsNorm::secPastEpoch, and etsDate::year.
Referenced by epicsTimeStampToDate(), etsNormToDate(), getEpicsTimeStampAsDate(), and unixTimeToDate().
Referenced by getEpicsTimeStampAsUInt32().
Referenced by printHandle(), printHandles(), printHandlesV(), and printMonitors().
CAFEStatus HandleHelper::cafeStatus [private] |
Referenced by checkConsistency(), getAlarmStatusSeverity(), getAlarmStatusSeverityAsString(), getCafeDbrType(), getCafeDbrTypeCB(), getChannelAttribute(), getChannelDevice(), getChannelRegalia(), getChannelRequestStatusGet(), getChannelRequestStatusGetClassName(), getChannelRequestStatusGetCtrl(), getChannelRequestStatusGetSTSACK(), getDataTypeCB(), getDataTypeNative(), getDataTypeRequest(), getDbrDataTypeCB(), getDisconnectedHandlesFromWithinGroupV(), getEnumFromString(), getGroupNameFromGroupHandle(), getGroupNPV(), getHandlesFromWithinGroup(), getHandlesFromWithinGroupV(), getMonitorPolicyInWaitingVector(), getMonitorPolicyVector(), getNelem(), getNelemClient(), getNelemClientCtrl(), getNelemNative(), getNelemRequest(), getNelemRequestCtrl(), getNelemToRetrieveFromCache(), getNelemToRetrieveFromCtrlCache(), getOffset(), getOffsetLast(), getStatus(), getStringFromEnum(), getTimeStamp(), getUsrArgsAsUInt(), isEnum(), printHandle(), printHandles(), printHandlesV(), setCafeDbrType(), setCafeDbrTypeV(), setChannelDeviceAttribute(), setMapPulseIDBufferSize(), setNelem(), setNelemCtrl(), setNelemToRetrieveFromCache(), setNelemToRetrieveFromCtrlCache(), setOffset(), and setSTS().
Referenced by setChannelDeviceAttribute().
Referenced by getNelemToRetrieveFromCtrlCache(), and setNelemToRetrieveFromCtrlCache().
Referenced by setNelemCtrl().
Referenced by getOffset(), setCafeDbrType(), setCafeDbrTypeV(), setNelem(), and setOffset().
cafeConduit_set::iterator HandleHelper::itcs [private] |
Referenced by allChannelsConnected(), allChannelsWithinGroupConnected(), checkConsistency(), clearMonitorAction(), getConnectedHandles(), getContextFromHandle(), getContextFromPV(), getDisconnectedHandles(), getHandleFromPV(), getHandleFromPVAlias(), getHandleFromPVWithinGroup(), getHandles(), getHandlesFromPVs(), getHandleStates(), getHandlesWithMonitors(), getMonitorAction(), getMonitorHandlesAndActions(), getNextFreeHandle(), getNoHandles(), getPVAlias(), getPVFromHandle(), printDisconnectedHandles(), printHandles(), printMonitors(), setChannelDeviceAttribute(), setMapPulseIDBufferSizeAll(), and setNelem().
cafeGroup_set::iterator HandleHelper::itgs [private] |
Referenced by checkConsistency(), getAlarmStatusSeverity(), getAlarmStatusSeverityAsString(), getCafeDbrTypeCB(), getChannelAttribute(), getChannelDevice(), getChannelRegalia(), getChannelRequestStatusGet(), getChannelRequestStatusGetClassName(), getChannelRequestStatusGetCtrl(), getChannelRequestStatusGetSTSACK(), getDataTypeCB(), getDataTypeNative(), getDataTypeRequest(), getDbrDataTypeCB(), getEnumFromString(), getMonitorPolicyInWaitingVector(), getMonitorPolicyVector(), getNelem(), getNelemClient(), getNelemClientCtrl(), getNelemNative(), getNelemRequest(), getNelemRequestCtrl(), getNelemToRetrieveFromCache(), getNelemToRetrieveFromCtrlCache(), getOffset(), getOffsetLast(), getPVAlias(), getPVFromHandle(), getStatus(), getStringFromEnum(), getTimeStamp(), getUsrArgsAsUInt(), isEnum(), setCafeDbrType(), setCafeDbrTypeV(), setChannelDeviceAttribute(), setMapPulseIDBufferSize(), setNelem(), setNelemCtrl(), setNelemToRetrieveFromCache(), setNelemToRetrieveFromCtrlCache(), setOffset(), and setSTS().