ISIS Logo
NetShrVar
An EPICS support module to export National Instruments Network Shared Variables as process variables
Public Types | Public Member Functions | Public Attributes | List of all members
NvItem Struct Reference

details about a network shared variable we have connected to an asyn parameter More...

Public Types

enum  { Read =0x1, Write =0x2, BufferedRead =0x4, BufferedWrite =0x8 }
 

Public Member Functions

 NvItem (const char *nv_name_, const char *type_, unsigned access_, int field_)
 
void report (const std::string &name, FILE *fp)
 helper for asyn driver report function More...
 
void report (FILE *fp, const char *conn_type, void *handle, bool buffered)
 

Public Attributes

enum NvItem:: { ... }  NvAccessMode
 possible access modes to network shared variable More...
 
std::string nv_name
 full path to network shared variable More...
 
std::string type
 type as specified in the XML file e.g. float64array More...
 
unsigned access
 combination of NvAccessMode More...
 
int field
 if we refer to a struct, this is the index of the field (starting at 0), otherwise it is -1 More...
 
int id
 asyn parameter id, -1 if not assigned More...
 
std::vector< char > array_data
 only used for array parameters, contains cached copy of data as this is not stored in usual asyn parameter map More...
 
CNVSubscriber subscriber
 
CNVBufferedSubscriber b_subscriber
 
CNVWriter writer
 
CNVBufferedWriter b_writer
 

Detailed Description

details about a network shared variable we have connected to an asyn parameter

Definition at line 117 of file NetShrVarInterface.cpp.

Member Enumeration Documentation

anonymous enum
Enumerator
Read 
Write 
BufferedRead 
BufferedWrite 

Definition at line 119 of file NetShrVarInterface.cpp.

Constructor & Destructor Documentation

NvItem::NvItem ( const char *  nv_name_,
const char *  type_,
unsigned  access_,
int  field_ 
)
inline

Definition at line 130 of file NetShrVarInterface.cpp.

References nv_name.

Member Function Documentation

void NvItem::report ( const std::string &  name,
FILE *  fp 
)
inline

helper for asyn driver report function

Definition at line 136 of file NetShrVarInterface.cpp.

References array_data, b_subscriber, b_writer, field, nv_name, subscriber, type, and writer.

Referenced by NetShrVarInterface::report().

void NvItem::report ( FILE *  fp,
const char *  conn_type,
void *  handle,
bool  buffered 
)
inline

Definition at line 152 of file NetShrVarInterface.cpp.

References connectionStatus(), and ERROR_CHECK.

Member Data Documentation

unsigned NvItem::access
std::vector<char> NvItem::array_data

only used for array parameters, contains cached copy of data as this is not stored in usual asyn parameter map

Definition at line 125 of file NetShrVarInterface.cpp.

Referenced by report().

CNVBufferedSubscriber NvItem::b_subscriber
CNVBufferedWriter NvItem::b_writer
int NvItem::field

if we refer to a struct, this is the index of the field (starting at 0), otherwise it is -1

Definition at line 123 of file NetShrVarInterface.cpp.

Referenced by report(), and NetShrVarInterface::setValueCNV().

int NvItem::id

asyn parameter id, -1 if not assigned

Definition at line 124 of file NetShrVarInterface.cpp.

Referenced by NetShrVarInterface::connectVars(), NetShrVarInterface::createParams(), and NetShrVarInterface::updateValues().

std::string NvItem::nv_name

full path to network shared variable

Definition at line 120 of file NetShrVarInterface.cpp.

Referenced by NetShrVarInterface::connectVars(), NvItem(), report(), NetShrVarInterface::setValueCNV(), and NetShrVarInterface::updateValues().

enum { ... } NvItem::NvAccessMode

possible access modes to network shared variable

CNVSubscriber NvItem::subscriber

Definition at line 126 of file NetShrVarInterface.cpp.

Referenced by NetShrVarInterface::connectVars(), and report().

std::string NvItem::type

type as specified in the XML file e.g. float64array

Definition at line 121 of file NetShrVarInterface.cpp.

Referenced by NetShrVarInterface::createParams(), and report().

CNVWriter NvItem::writer

The documentation for this struct was generated from the following file:
Copyright © 2013 Science and Technology Facilities Council | Generated by   doxygen 1.8.5